equal
deleted
inserted
replaced
2053 global $lang; |
2053 global $lang; |
2054 global $output; |
2054 global $output; |
2055 |
2055 |
2056 if ( $session->auth_level < USER_LEVEL_ADMIN ) |
2056 if ( $session->auth_level < USER_LEVEL_ADMIN ) |
2057 { |
2057 { |
2058 redirect(makeUrlNS('Special', 'Login/'.$paths->page, 'level='.USER_LEVEL_ADMIN), 'Not authorized', 'You need an authorization level of '.USER_LEVEL_ADMIN.' to use this page, your auth level is: ' . $session->auth_level, 0); |
2058 $query_string = 'level=' . USER_LEVEL_ADMIN; |
|
2059 if ( !empty($_SERVER['QUERY_STRING']) ) |
|
2060 { |
|
2061 $query_string .= '&' . trim(preg_replace('/(?:&|^)title=.+?(?:&|$)/', '&', $_SERVER['QUERY_STRING']), '&'); |
|
2062 } |
|
2063 redirect(makeUrlNS('Special', 'Login/'.$paths->page, $query_string), 'Not authorized', 'You need an authorization level of '.USER_LEVEL_ADMIN.' to use this page, your auth level is: ' . $session->auth_level, 0); |
2059 exit; |
2064 exit; |
2060 } |
2065 } |
2061 else |
2066 else |
2062 { |
2067 { |
2063 $template->set_theme('admin', 'default'); |
2068 $template->set_theme('admin', 'default'); |