FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Admin Login bug
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Admin Login bug [message #160606] Sat, 03 October 2009 23:59 Go to next message
krbvroc1 is currently offline  krbvroc1   
Messages: 31
Registered: February 2005
Karma: 0
Member
add to buddy list
ignore all messages by this user
For 2.8.1, I went into the admin control panel.

Under the Global Settings, Primary Forum Options,
I set 'Forum Enabled:' to No.

It tells me that the forums are offline, but I can login as an admin. The login as an admin fails and the apache error_log reports

PHP Notice: Undefined variable: new_sq in /var/www/html/xyz/forums/adm/admloginuser.php

I had to add the following line to adm/admloginuser.php

$GLOBALS['new_sq'] = regen_sq($id); # New line inserted
header('Location: '.$WWW_ROOT.'adm/index.php?S='.$sid.'&SQ='.$new_sq);

I found the above line in some other files. I wonder if someone forgot to add it to the admloginuser since that is not a commonly used path?
Re: Admin Login bug [message #160667 is a reply to message #160606] Sun, 11 October 2009 03:49 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Patch was applied. Thank you so much!

PS: I hope we wil see many more code improvements from you in future.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Some bugs with NNTP on 3.0 RC 1
Next Topic: SMTP server issue
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 13 11:43:06 EST 2017

Total time taken to generate the page: 0.00847 seconds