https://www.icyphoenix.com/viewtopic.php?f=35&t=1914
-----------------------------------
tonyf12
Sat 12 May, 2007 14:57

How To Extend First Admin Protection
-----------------------------------
Is it possible to extend the admin protection so it affects the admins with userid1 and userid2


-----------------------------------
tonyf12
Fri 25 May, 2007 21:33

Re: How To Extend First Admin Protection
-----------------------------------
Got it done it is in the top of admin_ug_auth.php


-----------------------------------
Mighty Gorgon
Sat 26 May, 2007 03:57

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:

[codeblock]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_');
}[/codeblock]


-----------------------------------
tonyf12
Sat 26 May, 2007 12:13

Re: How To Extend First Admin Protection
-----------------------------------
I mean so that the first 2 admins instead of the first admin wouldn't be removed


