
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:
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_');
}