Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Fri Oct 22, 2004 9:09 pm Reply with quote

In NukeSentinel(tm) select functions are reserved for God admins only. This means that whatever your aid is your stored name MUST be God. This is normally only the first admin created when you built your site.

Now to extend the God Admin rights to SuperUser admins you can do the following:

Open inlcudes/sentinel.php and find the function is_god. Near the end of that function will find this line:
Code:
    if(strtolower($admrow['name']) == "god" AND $admrow['pwd']==$apwd) { return 1; }


Change it to:
Code:
    if((strtolower($admrow['name']) == "god" OR $admrow['radminsuper']==1) AND $admrow['pwd']==$apwd) { return 1; }


And now SuperUser admins can also access the God Only functions. Thanks to ChatServ for pointing this out to me for those that want superusers to have access as well.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login!

Last edited by BobMarion on Sat Oct 23, 2004 1:16 am; edited 1 time in total 
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Fri Oct 22, 2004 9:34 pm Reply with quote

I think you mean
Code:
if(strtolower($admrow['name']) == "god" OR $admrow['radminsuper']==1) AND $admrow['pwd']==$apwd) { return 1; }
 
View user's profile Send private message
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Mon Oct 25, 2004 5:21 am Reply with quote

Smile I tried both codes, and got an error on line 775 with each. I put the original back and everything was fine.

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

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 ©