Vergleich admin/modules/user/banning.php - 1.8.20 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 151Zeile 151

$db->update_query("users", $updated_group, "uid='{$ban['uid']}'");



$db->update_query("users", $updated_group, "uid='{$ban['uid']}'");


		$cache->update_banned();

 
		$cache->update_moderators();

// Log admin action

		$cache->update_moderators();

// Log admin action

Zeile 238Zeile 237
			$db->update_query('users', $update_array, "uid = {$ban['uid']}");

$plugins->run_hooks("admin_user_banning_edit_commit");

			$db->update_query('users', $update_array, "uid = {$ban['uid']}");

$plugins->run_hooks("admin_user_banning_edit_commit");


$cache->update_banned();

 

// Log admin action
log_admin_action($ban['uid'], $user['username']);


// Log admin action
log_admin_action($ban['uid'], $user['username']);

Zeile 280Zeile 277
	{
$mybb->input['bantime'] = '---';
$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 294Zeile 291
	$form_container->output_row($lang->ban_time, "", $form->generate_select_box('bantime', $length_list, $mybb->input['bantime'], array('id' => 'bantime')), 'bantime');

$form_container->end();

	$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->output_submit_wrapper($buttons);
$form->end();

$page->output_footer();
}

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

$page->output_footer();
}





if(!$mybb->input['action'])
{
$where_sql_full = $where_sql = '';

if(!$mybb->input['action'])
{
$where_sql_full = $where_sql = '';

Zeile 361Zeile 358
				if($mybb->input['bantime'] == '---')
{
$lifted = 0;

				if($mybb->input['bantime'] == '---')
{
$lifted = 0;

				}

				}

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

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

Zeile 402Zeile 399
				$plugins->run_hooks("admin_user_banning_start_commit");

$db->update_query('users', $update_array, "uid = '{$user['uid']}'");

				$plugins->run_hooks("admin_user_banning_start_commit");

$db->update_query('users', $update_array, "uid = '{$user['uid']}'");


$cache->update_banned();

 

// Log admin action
log_admin_action($user['uid'], $user['username'], $lifted);


// Log admin action
log_admin_action($user['uid'], $user['username'], $lifted);

Zeile 511Zeile 506
		},
});


		},
});


  	$(\'[for=username]\').click(function(){

  	$(\'[for=username]\').on(\'click\', function(){

		$("#username").select2(\'open\');
return false;
});

		$("#username").select2(\'open\');
return false;
});