Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post How To Extend First Admin Protection 
 
Is it possible to extend the admin protection so it affects the admins with userid1 and userid2
 




____________
CivUnited
 
tonyf12Send private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How To Extend First Admin Protection 
 
Got it done it is in the top of admin_ug_auth.php
 




____________
CivUnited
 
tonyf12Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Extend First Admin Protection 
 
What do you mean by extend?

If you refer to the switch in ACP, you can edit these lines in common.php:

Code: [Download] [Hide] [Select]
if ( $board_config['admin_protect'] == true )
{
    // Activate Main Admin Account
    $sql = "UPDATE " . USERS_TABLE . "
        SET user_active = 1
    WHERE user_id = 2";
    if (!$db->sql_query($sql))
    {
        message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.');
    }

    // Delete Main Admin Ban
    $sql = "DELETE FROM " . BANLIST_TABLE . "
        WHERE ban_userid = 2";
    if (!$db->sql_query($sql))
    {
        message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
    }
    $db->clear_cache('ban_');
}

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Extend First Admin Protection 
 
I mean so that the first 2 admins instead of the first admin wouldn't be removed
 




____________
CivUnited
 
tonyf12Send private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron