Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: banning.php 4042 2008-07-25 23:46:54Z Tikitiki $
| * $Id: banning.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 211 | Zeile 211 |
---|
{ $form_container->output_row($lang->ban_group, $lang->ban_group_desc, $form->generate_select_box('usergroup', $banned_groups, $mybb->input['usergroup'], array('id' => 'usergroup')), 'usergroup'); }
|
{ $form_container->output_row($lang->ban_group, $lang->ban_group_desc, $form->generate_select_box('usergroup', $banned_groups, $mybb->input['usergroup'], array('id' => 'usergroup')), 'usergroup'); }
|
| if($mybb->input['bantime'] == 'perm' || $mybb->input['bantime'] == '' || $mybb->input['lifted'] == 'perm' ||$mybb->input['lifted'] == '') { $mybb->input['bantime'] = '---'; $mybb->input['lifted'] = '---'; }
|
foreach($ban_times as $time => $period) { if($time != "---")
| foreach($ban_times as $time => $period) { if($time != "---")
|
Zeile 234 | Zeile 241 |
---|
if(!$mybb->input['action']) { $plugins->run_hooks("admin_user_banning_start");
|
if(!$mybb->input['action']) { $plugins->run_hooks("admin_user_banning_start");
|
|
|
if($mybb->request_method == "post") { $query = $db->simple_select("users", "uid, usergroup, additionalgroups, displaygroup, username", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'", array('limit' => 1));
| if($mybb->request_method == "post") { $query = $db->simple_select("users", "uid, usergroup, additionalgroups, displaygroup, username", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'", array('limit' => 1));
|
Zeile 245 | Zeile 252 |
---|
$errors[] = $lang->error_invalid_username; } // Is the user we're trying to ban a super admin and we're not?
|
$errors[] = $lang->error_invalid_username; } // Is the user we're trying to ban a super admin and we're not?
|
else if(is_super_admin($user['uid']) && !is_super_admin($user['uid']))
| else if(is_super_admin($user['uid']) && !is_super_admin($mybb->user['uid']))
|
{ $errors[] = $lang->error_no_perm_to_ban; }
| { $errors[] = $lang->error_no_perm_to_ban; }
|
Zeile 327 | Zeile 334 |
---|
$ban_count = $db->fetch_field($query, "ban_count");
$per_page = 20;
|
$ban_count = $db->fetch_field($query, "ban_count");
$per_page = 20;
|
|
|
if($mybb->input['page'] > 0) { $current_page = intval($mybb->input['page']);
| if($mybb->input['page'] > 0) { $current_page = intval($mybb->input['page']);
|
Zeile 372 | Zeile 379 |
---|
if($ban['lifted'] == 'perm' || $ban['lifted'] == '' || $ban['bantime'] == 'perm' || $ban['bantime'] == '---') { $ban_period = $lang->permenantly;
|
if($ban['lifted'] == 'perm' || $ban['lifted'] == '' || $ban['bantime'] == 'perm' || $ban['bantime'] == '---') { $ban_period = $lang->permenantly;
|
$time_remaning = $lifts_on = $lang->na;
| $time_remaining = $lifts_on = $lang->na;
|
} else {
| } else {
|
Zeile 398 | Zeile 405 |
---|
$time_remaining = "{$time_remaining}"; } $lifts_on = my_date($mybb->settings['dateformat'], $ban['lifted']);
|
$time_remaining = "{$time_remaining}"; } $lifts_on = my_date($mybb->settings['dateformat'], $ban['lifted']);
|
| } if(!$ban['adminuser']) { if($ban['admin'] == 0) { $ban['adminuser'] = "MyBB System"; } else { $ban['adminuser'] = $ban['admin']; }
|
}
|
}
|
$table->construct_cell($lang->sprintf($lang->bannedby_x_on_x, $profile_link, $ban['adminuser'], $ban_date, $ban_period));
| $table->construct_cell($lang->sprintf($lang->bannedby_x_on_x, $profile_link, htmlspecialchars_uni($ban['adminuser']), $ban_date, $ban_period));
|
$table->construct_cell($lifts_on, array("class" => "align_center")); $table->construct_cell($time_remaining, array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=user/banning&action=edit&uid={$ban['uid']}\">{$lang->edit}</a>", array("class" => "align_center"));
| $table->construct_cell($lifts_on, array("class" => "align_center")); $table->construct_cell($time_remaining, array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=user/banning&action=edit&uid={$ban['uid']}\">{$lang->edit}</a>", array("class" => "align_center"));
|