mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
Lots of languagification and redirection path change
git-svn-id: file:///svn/phpbb/trunk@759 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -41,19 +41,15 @@ init_userprefs($userdata);
|
||||
//
|
||||
// End session management
|
||||
//
|
||||
|
||||
//
|
||||
// Check user permissions
|
||||
//
|
||||
if( !$userdata['session_logged_in'] )
|
||||
{
|
||||
header("Location: ../login.$phpEx?forward_page=/admin");
|
||||
header("Location: ../login.$phpEx?forward_page=admin/");
|
||||
}
|
||||
else if( $userdata['user_level'] != ADMIN )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
|
||||
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
|
||||
}
|
||||
$template_header = "admin/page_header.tpl";
|
||||
|
||||
include('page_header_admin.'.$phpEx);
|
||||
|
||||
$mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
||||
|
Reference in New Issue
Block a user