Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x
Author Message
dirtyrat
New Member
New Member



Joined: May 18, 2007
Posts: 10

PostPosted: Thu Jun 26, 2008 1:32 pm Reply with quote

When a non-God admin is logged in, the "Admin HTTPAuth" line is missing from the Nukesentinel menu. Now, I understand that this is only accessible from the God account but, it is being replaced with the variable "_AB_" instead of the text description.

Two ways around this:
1) in language\nukesentinel\lang-english.php, uncomment the line
Code:
//define('_AB_',' ');

and edit it as
Code:
define('_AB_','Admin HTTPAuth');


2) in admin\modules\nukesentinel\functions.php, in function ipbanmenu, find
Code:
    echo '<td><a href="'.$admin_file.'.php?op=ABAuth">'._AB_HTTPAUTH.'</a></td></tr>'."\n";

  } else {
    echo '<td>'._AB_.'</td></tr>'."\n";

and replace
Code:
._AB_.

with
Code:
._AB_HTTPAUTH.


I believe that the second option is preferred. This will give the text description but, no hyperlink.
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Jun 26, 2008 2:15 pm Reply with quote

It appears from the code you have shown that the purpose was the show the value of _AB_HTTPAUTH if the God admin was logged in but the value of _AB_ if just a normal admin. The value in this case should have been null '' but has been commented out.
Provided _AB_ is not in the admin language file you could just uncomment it but your solution would work equally well Smile
 
View user's profile Send private message Send e-mail
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©