Vergleich admin/modules/user/banning.php - 1.8.15 - 1.8.26

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

// Fetch banned groups
$query = $db->simple_select("usergroups", "gid,title", "isbannedgroup=1", array('order_by' => 'title'));


// Fetch banned groups
$query = $db->simple_select("usergroups", "gid,title", "isbannedgroup=1", array('order_by' => 'title'));

 
$banned_groups = array();

while($group = $db->fetch_array($query))
{
$banned_groups[$group['gid']] = $group['title'];

while($group = $db->fetch_array($query))
{
$banned_groups[$group['gid']] = $group['title'];

Zeile 99Zeile 100
		$cache->update_reportedcontent();

// Log admin action

		$cache->update_reportedcontent();

// Log admin action

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

		log_admin_action($user['uid'], $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 141Zeile 142
	{
$updated_group = array(
'usergroup' => $ban['oldgroup'],

	{
$updated_group = array(
'usergroup' => $ban['oldgroup'],

			'additionalgroups' => $ban['oldadditionalgroups'],

			'additionalgroups' => $db->escape_string($ban['oldadditionalgroups']),

			'displaygroup' => $ban['olddisplaygroup']
);
$db->delete_query("banned", "uid='{$ban['uid']}'");

			'displaygroup' => $ban['olddisplaygroup']
);
$db->delete_query("banned", "uid='{$ban['uid']}'");

Zeile 150Zeile 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

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

		log_admin_action($ban['uid'], $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 237Zeile 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

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

			log_admin_action($ban['uid'], $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 279Zeile 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 293Zeile 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 360Zeile 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 378Zeile 376
					'uid' => $user['uid'],
'gid' => $mybb->get_input('usergroup', MyBB::INPUT_INT),
'oldgroup' => $user['usergroup'],

					'uid' => $user['uid'],
'gid' => $mybb->get_input('usergroup', MyBB::INPUT_INT),
'oldgroup' => $user['usergroup'],

					'oldadditionalgroups' => $user['additionalgroups'],

					'oldadditionalgroups' => $db->escape_string($user['additionalgroups']),

					'olddisplaygroup' => $user['displaygroup'],
'admin' => (int)$mybb->user['uid'],
'dateline' => TIME_NOW,

					'olddisplaygroup' => $user['displaygroup'],
'admin' => (int)$mybb->user['uid'],
'dateline' => TIME_NOW,

Zeile 401Zeile 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

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

				log_admin_action($user['uid'], $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 510Zeile 506
		},
});


		},
});


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

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

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

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