Zeile 62 | Zeile 62 |
---|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
if(!$ban['uid'])
| if(!$ban)
|
{ flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
| { flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
|
Zeile 70 | Zeile 70 |
---|
$user = get_user($ban['uid']);
|
$user = get_user($ban['uid']);
|
if(is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid'])))
| if(!$user || (is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid']))))
|
{ flash_message($lang->cannot_perform_action_super_admin_general, 'error'); admin_redirect("index.php?module=user-banning");
| { flash_message($lang->cannot_perform_action_super_admin_general, 'error'); admin_redirect("index.php?module=user-banning");
|
Zeile 122 | Zeile 122 |
---|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
if(!$ban['uid'])
| if(!$ban)
|
{ flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
| { flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
|
Zeile 130 | Zeile 130 |
---|
$user = get_user($ban['uid']);
|
$user = get_user($ban['uid']);
|
if(is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid'])))
| if(!$user || (is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid']))))
|
{ flash_message($lang->cannot_perform_action_super_admin_general, 'error'); admin_redirect("index.php?module=user-banning");
| { flash_message($lang->cannot_perform_action_super_admin_general, 'error'); admin_redirect("index.php?module=user-banning");
|
Zeile 170 | Zeile 170 |
---|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'"); $ban = $db->fetch_array($query);
|
if(empty($ban['uid']))
| if(!$ban)
|
{ flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
| { flash_message($lang->error_invalid_ban, 'error'); admin_redirect("index.php?module=user-banning");
|
Zeile 182 | Zeile 182 |
---|
if($mybb->request_method == "post") {
|
if($mybb->request_method == "post") {
|
if(!$ban['uid'])
| if(empty($ban['uid']))
|
{ $errors[] = $lang->error_invalid_username; }
| { $errors[] = $lang->error_invalid_username; }
|
Zeile 334 | Zeile 334 |
---|
} else {
|
} else {
|
if(empty($user['uid']))
| if(!$user)
|
{ $errors[] = $lang->error_invalid_username; }
| { $errors[] = $lang->error_invalid_username; }
|