Zeile 108 | Zeile 108 |
---|
{ $user = get_user_by_username($mybb->input['username'], array('fields' => '*'));
|
{ $user = get_user_by_username($mybb->input['username'], array('fields' => '*'));
|
if(!$user['uid'])
| if(!$user)
|
{ $error = $lang->error_invalid_username; }
| { $error = $lang->error_invalid_username; }
|
Zeile 116 | Zeile 116 |
---|
else if($mybb->input['uid']) { $user = get_user($mybb->input['uid']);
|
else if($mybb->input['uid']) { $user = get_user($mybb->input['uid']);
|
if(!$user['uid'])
| if(!$user)
|
{ $error = $lang->error_invalid_uid; }
| { $error = $lang->error_invalid_uid; }
|
Zeile 536 | Zeile 536 |
---|
$db->delete_query("adminsessions", "uid = '{$uid}'"); unset($mybb->user); my_unsetcookie('adminsid');
|
$db->delete_query("adminsessions", "uid = '{$uid}'"); unset($mybb->user); my_unsetcookie('adminsid');
|
| if($mybb->get_input('do') == 'login') { $login_message = $lang->error_mybb_not_admin_account; }
|
}
if(!empty($mybb->user['uid']))
| }
if(!empty($mybb->user['uid']))
|