Zeile 80 | Zeile 80 |
---|
$fail_check = 0; $post_verify = true;
|
$fail_check = 0; $post_verify = true;
|
if($mybb->input['action'] == "logout") { // Delete session from the database $db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'"); my_setcookie("adminsid", ""); $logged_out = true; } elseif($mybb->input['action'] == "unlock")
| if($mybb->input['action'] == "unlock")
|
{ $user = array(); if($mybb->input['username'])
| { $user = array(); if($mybb->input['username'])
|
Zeile 142 | Zeile 135 |
---|
if($mybb->user['uid']) { if(login_attempt_check_acp($mybb->user['uid']) == true)
|
if($mybb->user['uid']) { if(login_attempt_check_acp($mybb->user['uid']) == true)
|
{ $default_page->show_lockedout();
| { $default_page->show_lockedout();
|
}
$db->delete_query("adminsessions", "uid='{$mybb->user['uid']}'");
|
}
$db->delete_query("adminsessions", "uid='{$mybb->user['uid']}'");
|
|
|
$sid = md5(uniqid(microtime(true))); // Create a new admin session for this user
| $sid = md5(uniqid(microtime(true))); // Create a new admin session for this user
|
Zeile 172 | Zeile 165 |
---|
{ // $query_string should contain the module $query_string = '?module='.htmlspecialchars($mybb->input['module']);
|
{ // $query_string should contain the module $query_string = '?module='.htmlspecialchars($mybb->input['module']);
|
|
|
// Now we look for any paramters passed in $_SERVER['QUERY_STRING'] if($_SERVER['QUERY_STRING']) {
| // Now we look for any paramters passed in $_SERVER['QUERY_STRING'] if($_SERVER['QUERY_STRING']) {
|
Zeile 200 | Zeile 193 |
---|
} admin_redirect("index.php".$query_string);
|
} admin_redirect("index.php".$query_string);
|
}
| }
|
} else {
| } else {
|
Zeile 315 | Zeile 308 |
---|
} } }
|
} } }
|
| } }
if($mybb->input['action'] == "logout" && $mybb->user) { if(verify_post_check($mybb->input['my_post_key'])) { $db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'"); my_setcookie("adminsid", ""); $logged_out = true;
|
} }
| } }
|