Zeile 19 | Zeile 19 |
---|
$shutdown_queries = $shutdown_functions = array();
send_page_headers();
|
$shutdown_queries = $shutdown_functions = array();
send_page_headers();
|
| header('X-Frame-Options: SAMEORIGIN');
|
if(!isset($config['admin_dir']) || !file_exists(MYBB_ROOT.$config['admin_dir']."/inc/class_page.php")) {
| if(!isset($config['admin_dir']) || !file_exists(MYBB_ROOT.$config['admin_dir']."/inc/class_page.php")) {
|
Zeile 50 | Zeile 52 |
---|
// Load global language phrases $lang->load("global");
|
// Load global language phrases $lang->load("global");
|
| $lang->load("messages", true);
|
if(function_exists('mb_internal_encoding') && !empty($lang->settings['charset'])) {
| if(function_exists('mb_internal_encoding') && !empty($lang->settings['charset'])) {
|
Zeile 237 | Zeile 240 |
---|
$db->delete_query("adminsessions", "uid='{$mybb->user['uid']}'");
|
$db->delete_query("adminsessions", "uid='{$mybb->user['uid']}'");
|
$sid = md5(uniqid(microtime(true), true));
| $sid = md5(random_str(50));
|
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
if(my_strlen($useragent) > 100)
| if(my_strlen($useragent) > 200)
|
{
|
{
|
$useragent = my_substr($useragent, 0, 100);
| $useragent = my_substr($useragent, 0, 200);
|
}
// Create a new admin session for this user
| }
// Create a new admin session for this user
|
Zeile 472 | Zeile 475 |
---|
$cp_language = $admin_options['cplanguage']; $lang->set_language($cp_language, "admin"); $lang->load("global"); // Reload global language vars
|
$cp_language = $admin_options['cplanguage']; $lang->set_language($cp_language, "admin"); $lang->load("global"); // Reload global language vars
|
| $lang->load("messages", true);
|
}
if(!empty($admin_options['cpstyle']) && file_exists(MYBB_ADMIN_DIR."/styles/{$admin_options['cpstyle']}/main.css"))
| }
if(!empty($admin_options['cpstyle']) && file_exists(MYBB_ADMIN_DIR."/styles/{$admin_options['cpstyle']}/main.css"))
|