In admin_users.php:
Code: Alles auswählen
$protected_admins = array(2,3);
if(in_array(intval($HTTP_POST_VARS['id']),($protected_admins)) && !in_array($userdata['user_id'],($protected_admins)))
Code: Alles auswählen
$protected_admins = array(2,3);
if(in_array($user_id,($protected_admins)) && !in_array($userdata['user_id'],($protected_admins)))
Wie kann ich diesen Part der index.php ändern, dass er ebenfalls 2 Admins zählt?
Code: Alles auswählen
if(($userdata['user_id'] == '2') && ($row['total'] > 0))
{
$template->assign_block_vars('switch_firstadmin', array());
}
Folgenden Text:
Code: Alles auswählen
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'config.'.$phpEx);
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);