Vergleich admin/modules/user/banning.php - 1.8.7 - 1.8.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 99Zeile 99
		$cache->update_reportedcontent();

// Log admin action

		$cache->update_reportedcontent();

// Log admin action

		log_admin_action($user['uid'], $user['username']);

		log_admin_action($user['uid'], htmlspecialchars_uni($user['username']));


flash_message($lang->success_pruned, 'success');
admin_redirect("index.php?module=user-banning");


flash_message($lang->success_pruned, 'success');
admin_redirect("index.php?module=user-banning");

Zeile 154Zeile 154
		$cache->update_moderators();

// Log admin action

		$cache->update_moderators();

// Log admin action

		log_admin_action($ban['uid'], $user['username']);

		log_admin_action($ban['uid'], htmlspecialchars_uni($user['username']));


flash_message($lang->success_ban_lifted, 'success');
admin_redirect("index.php?module=user-banning");


flash_message($lang->success_ban_lifted, 'success');
admin_redirect("index.php?module=user-banning");

Zeile 241Zeile 241
			$cache->update_banned();

// Log admin action

			$cache->update_banned();

// Log admin action

			log_admin_action($ban['uid'], $user['username']);

			log_admin_action($ban['uid'], htmlspecialchars_uni($user['username']));


flash_message($lang->success_ban_updated, 'success');
admin_redirect("index.php?module=user-banning");


flash_message($lang->success_ban_updated, 'success');
admin_redirect("index.php?module=user-banning");

Zeile 268Zeile 268
	}

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

	}

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

	$form_container->output_row($lang->ban_username, "", $user['username']);

	$form_container->output_row($lang->ban_username, "", htmlspecialchars_uni($user['username']));

	$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)
{

Zeile 285Zeile 285
	{
if($time != '---')
{

	{
if($time != '---')
{

			$friendly_time = my_date("D, jS M Y @ g:ia", ban_date2timestamp($time));

			$friendly_time = my_date("D, jS M Y @ {$mybb->settings['timeformat']}", ban_date2timestamp($time));

			$period = "{$period} ({$friendly_time})";
}
$length_list[$time] = $period;

			$period = "{$period} ({$friendly_time})";
}
$length_list[$time] = $period;

Zeile 316Zeile 316
		$user = get_user_by_username($mybb->input['username'], $options);

// Are we searching a user?

		$user = get_user_by_username($mybb->input['username'], $options);

// Are we searching a user?

		if(isset($mybb->input['search']) && $mybb->get_input('search') != '')

		if(isset($mybb->input['search']))

		{
$where_sql = 'uid=\''.(int)$user['uid'].'\'';
$where_sql_full = 'WHERE b.uid=\''.(int)$user['uid'].'\'';

		{
$where_sql = 'uid=\''.(int)$user['uid'].'\'';
$where_sql_full = 'WHERE b.uid=\''.(int)$user['uid'].'\'';

Zeile 405Zeile 405
				$cache->update_banned();

// Log admin action

				$cache->update_banned();

// Log admin action

				log_admin_action($user['uid'], $user['username'], $lifted);

				log_admin_action($user['uid'], htmlspecialchars_uni($user['username']), $lifted);


flash_message($lang->success_banned, 'success');
admin_redirect("index.php?module=user-banning");


flash_message($lang->success_banned, 'success');
admin_redirect("index.php?module=user-banning");

Zeile 463Zeile 463
	// Get the banned users
while($ban = $db->fetch_array($query))
{

	// Get the banned users
while($ban = $db->fetch_array($query))
{

		$profile_link = build_profile_link($ban['username'], $ban['uid'], "_blank");

		$profile_link = build_profile_link(htmlspecialchars_uni($ban['username']), $ban['uid'], "_blank");

		$ban_date = my_date($mybb->settings['dateformat'], $ban['dateline']);
if($ban['lifted'] == 'perm' || $ban['lifted'] == '' || $ban['bantime'] == 'perm' || $ban['bantime'] == '---')
{

		$ban_date = my_date($mybb->settings['dateformat'], $ban['dateline']);
if($ban['lifted'] == 'perm' || $ban['lifted'] == '' || $ban['bantime'] == 'perm' || $ban['bantime'] == '---')
{

Zeile 497Zeile 497
		{
if($ban['admin'] == 0)
{

		{
if($ban['admin'] == 0)
{

				$ban['adminuser'] = "MyBB System";

				$ban['adminuser'] = $lang->mybb_engine;

			}
else
{

			}
else
{

Zeile 545Zeile 545
	{
if($time != "---")
{

	{
if($time != "---")
{

			$friendly_time = my_date("D, jS M Y @ g:ia", ban_date2timestamp($time));

			$friendly_time = my_date("D, jS M Y @ {$mybb->settings['timeformat']}", ban_date2timestamp($time));

			$period = "{$period} ({$friendly_time})";
}
$length_list[$time] = $period;

			$period = "{$period} ({$friendly_time})";
}
$length_list[$time] = $period;

Zeile 598Zeile 598
	</script>';

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

	</script>';

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

	$buttons[] = $form->generate_submit_button($lang->search_user, array('name' => 'search'));

	$buttons[] = $form->generate_submit_button($lang->search_for_a_user, array('name' => 'search'));

	$form->output_submit_wrapper($buttons);
$form->end();


	$form->output_submit_wrapper($buttons);
$form->end();