mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
- fix some tiny bugs
- fix module system (sometimes the layout is broken due to falsly deactivated categories) - auth updates (setting permissions) - fix "category jumping" bug in acp - u_action is defined by the module itself git-svn-id: file:///svn/phpbb/trunk@5558 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
/**
|
||||
*/
|
||||
define('IN_PHPBB', 1);
|
||||
define('IN_ADMIN', true);
|
||||
define('NEED_SID', true);
|
||||
|
||||
// Include files
|
||||
@@ -47,19 +46,22 @@ if (!$auth->acl_get('a_'))
|
||||
trigger_error($user->lang['NO_ADMIN']);
|
||||
}
|
||||
|
||||
// We define it now, because the user is now able to use the admin related features...
|
||||
define('IN_ADMIN', true);
|
||||
|
||||
// Some oft used variables
|
||||
$safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false;
|
||||
$file_uploads = (@ini_get('file_uploads') || strtolower(@ini_get('file_uploads')) == 'on') ? true : false;
|
||||
$module_id = request_var('i', '');
|
||||
$mode = request_var('mode', '');
|
||||
|
||||
// Force pagination seperation for admin style
|
||||
$user->theme['pagination_sep'] = '';
|
||||
|
||||
// Set custom template for admin area
|
||||
$template->set_custom_template($phpbb_admin_path . 'style', 'admin');
|
||||
$template->assign_var('T_TEMPLATE_PATH', $phpbb_admin_path . 'style');
|
||||
|
||||
// Force pagination seperation for admin style
|
||||
$user->theme['pagination_sep'] = '';
|
||||
|
||||
// Instantiate new module
|
||||
$module = new p_master();
|
||||
|
||||
|
Reference in New Issue
Block a user