Vergleich admin/modules/user/banning.php - 1.8.32 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 263Zeile 263
	else
{
$mybb->input = array_merge($mybb->input, $ban);

	else
{
$mybb->input = array_merge($mybb->input, $ban);

 
	}

if(!empty($ban['gid']))
{
$mybb->input['usergroup'] = $ban['gid'];
}
else if(!empty($user['usergroup']))
{
$mybb->input['usergroup'] = $user['usergroup'];
}
else
{
$mybb->input['usergroup'] = 0;

	}

$form_container = new FormContainer($lang->edit_ban);

	}

$form_container = new FormContainer($lang->edit_ban);

Zeile 271Zeile 284
	if(count($banned_groups) > 1)
{
$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(count($banned_groups) > 1)
{
$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'] == '')


if($mybb->input['bantime'] == 'perm' || $mybb->input['bantime'] == '' || $mybb->input['lifted'] == 'perm' ||$mybb->input['lifted'] == '')

	{

	{

		$mybb->input['bantime'] = '---';
$mybb->input['lifted'] = '---';

		$mybb->input['bantime'] = '---';
$mybb->input['lifted'] = '---';

	}

	}


foreach($ban_times as $time => $period)
{


foreach($ban_times as $time => $period)
{

Zeile 289Zeile 302
		$length_list[$time] = $period;
}
$form_container->output_row($lang->ban_time, "", $form->generate_select_box('bantime', $length_list, $mybb->input['bantime'], array('id' => 'bantime')), 'bantime');

		$length_list[$time] = $period;
}
$form_container->output_row($lang->ban_time, "", $form->generate_select_box('bantime', $length_list, $mybb->input['bantime'], array('id' => 'bantime')), 'bantime');





	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->update_ban);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->update_ban);

Zeile 362Zeile 375
				else
{
$lifted = ban_date2timestamp($mybb->input['bantime']);

				else
{
$lifted = ban_date2timestamp($mybb->input['bantime']);

				}

				}


$reason = my_substr($mybb->input['reason'], 0, 255);



$reason = my_substr($mybb->input['reason'], 0, 255);


Zeile 435Zeile 448
	{
$start = 0;
$current_page = 1;

	{
$start = 0;
$current_page = 1;

	}

	}


$pagination = draw_admin_pagination($current_page, $per_page, $ban_count, "index.php?module=user-banning&page={page}");


$pagination = draw_admin_pagination($current_page, $per_page, $ban_count, "index.php?module=user-banning&page={page}");





	$form = new Form("index.php?module=user-banning", "post");
if($errors)

	$form = new Form("index.php?module=user-banning", "post");
if($errors)

	{

	{

		$page->output_inline_error($errors);

		$page->output_inline_error($errors);

	}


	}


	$mybb->input['username'] = $mybb->get_input('username');
$mybb->input['reason'] = $mybb->get_input('reason');
$mybb->input['bantime'] = $mybb->get_input('bantime');

if(isset($mybb->input['uid']) && empty($mybb->input['username']))

	$mybb->input['username'] = $mybb->get_input('username');
$mybb->input['reason'] = $mybb->get_input('reason');
$mybb->input['bantime'] = $mybb->get_input('bantime');

if(isset($mybb->input['uid']) && empty($mybb->input['username']))

	{

	{

		$user = get_user($mybb->input['uid']);
$mybb->input['username'] = $user['username'];

		$user = get_user($mybb->input['uid']);
$mybb->input['username'] = $user['username'];

 
	}

if(empty($mybb->input['usergroup']))
{
if(!empty($mybb->settings['purgespammerbangroup']))
{
$mybb->input['usergroup'] = $mybb->settings['purgespammerbangroup'];
}
else if(count($banned_groups))
{
$group = array_keys($banned_groups);
$mybb->input['usergroup'] = $group[0];
}
else
{
$mybb->input['usergroup'] = 0;
}

	}

$form_container = new FormContainer($lang->ban_a_user);

	}

$form_container = new FormContainer($lang->ban_a_user);

Zeile 460Zeile 490
	$form_container->output_row($lang->ban_reason, "", $form->generate_text_area('reason', $mybb->input['reason'], array('id' => 'reason', 'maxlength' => '255')), 'reason');
if(count($banned_groups) > 1)
{

	$form_container->output_row($lang->ban_reason, "", $form->generate_text_area('reason', $mybb->input['reason'], array('id' => 'reason', 'maxlength' => '255')), 'reason');
if(count($banned_groups) > 1)
{

		$form_container->output_row($lang->ban_group, $lang->add_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');

	}
foreach($ban_times as $time => $period)
{

	}
foreach($ban_times as $time => $period)
{