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

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

// Log admin action

		$cache->update_reportedcontent();

// Log admin action

		log_admin_action($mybb->input['uid'], $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 154Zeile 154
		$cache->update_moderators();

// Log admin action

		$cache->update_moderators();

// Log admin action

		log_admin_action($mybb->input['uid'], $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 219Zeile 219
			}

$update_array = array(

			}

$update_array = array(

				'gid' => (int)$mybb->input['usergroup'],

				'gid' => $mybb->get_input('usergroup', MyBB::INPUT_INT),

				'dateline' => TIME_NOW,
'bantime' => $db->escape_string($mybb->input['bantime']),
'lifted' => $db->escape_string($lifted),

				'dateline' => TIME_NOW,
'bantime' => $db->escape_string($mybb->input['bantime']),
'lifted' => $db->escape_string($lifted),

Zeile 230Zeile 230

// Move the user to the banned group
$update_array = array(


// Move the user to the banned group
$update_array = array(

				'usergroup' => (int)$mybb->input['usergroup'],

				'usergroup' => $mybb->get_input('usergroup', MyBB::INPUT_INT),

				'displaygroup' => 0,
'additionalgroups' => '',
);

				'displaygroup' => 0,
'additionalgroups' => '',
);

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

// Log admin action

			$cache->update_banned();

// Log admin action

			log_admin_action($mybb->input['uid'], $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 376Zeile 376

$insert_array = array(
'uid' => $user['uid'],


$insert_array = array(
'uid' => $user['uid'],

					'gid' => (int)$mybb->input['usergroup'],

					'gid' => $mybb->get_input('usergroup', MyBB::INPUT_INT),

					'oldgroup' => $user['usergroup'],
'oldadditionalgroups' => $user['additionalgroups'],
'olddisplaygroup' => $user['displaygroup'],

					'oldgroup' => $user['usergroup'],
'oldadditionalgroups' => $user['additionalgroups'],
'olddisplaygroup' => $user['displaygroup'],

Zeile 390Zeile 390

// Move the user to the banned group
$update_array = array(


// Move the user to the banned group
$update_array = array(

					'usergroup' => (int)$mybb->input['usergroup'],

					'usergroup' => $mybb->get_input('usergroup', MyBB::INPUT_INT),

					'displaygroup' => 0,
'additionalgroups' => '',
);

					'displaygroup' => 0,
'additionalgroups' => '',
);

Zeile 424Zeile 424

if($mybb->input['page'] > 0)
{


if($mybb->input['page'] > 0)
{

		$current_page = $mybb->get_input('page', 1);

		$current_page = $mybb->get_input('page', MyBB::INPUT_INT);

		$start = ($current_page-1)*$per_page;
$pages = $ban_count / $per_page;
$pages = ceil($pages);

		$start = ($current_page-1)*$per_page;
$pages = $ban_count / $per_page;
$pages = ceil($pages);

Zeile 489Zeile 489
			{
$time_remaining = "<span style=\"color: green;\">{$time_remaining}</span>";
}

			{
$time_remaining = "<span style=\"color: green;\">{$time_remaining}</span>";
}

			else
{
$time_remaining = "{$time_remaining}";
}






			$lifts_on = my_date($mybb->settings['dateformat'], $ban['lifted']);
}


			$lifts_on = my_date($mybb->settings['dateformat'], $ban['lifted']);
}


Zeile 514Zeile 511
		$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=edit&amp;uid={$ban['uid']}\">{$lang->edit}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=lift&amp;uid={$ban['uid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_lift_ban}');\">{$lang->lift}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=prune&amp;uid={$ban['uid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_prune}');\">{$lang->prune_threads_and_posts}</a>", array("class" => "align_center"));

		$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=edit&amp;uid={$ban['uid']}\">{$lang->edit}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=lift&amp;uid={$ban['uid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_lift_ban}');\">{$lang->lift}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=user-banning&amp;action=prune&amp;uid={$ban['uid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_prune}');\">{$lang->prune_threads_and_posts}</a>", array("class" => "align_center"));

		$table->construct_row();
}


		$table->construct_row();
}


	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_banned_users, array("colspan" => "6"));

	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_banned_users, array("colspan" => "6"));

Zeile 560Zeile 557
	// Autocompletion for usernames
echo '
<link rel="stylesheet" href="../jscripts/select2/select2.css">

	// Autocompletion for usernames
echo '
<link rel="stylesheet" href="../jscripts/select2/select2.css">

	<script type="text/javascript" src="../jscripts/select2/select2.min.js"></script>

	<script type="text/javascript" src="../jscripts/select2/select2.min.js?ver=1804"></script>

	<script type="text/javascript">
<!--
$("#username").select2({

	<script type="text/javascript">
<!--
$("#username").select2({

		placeholder: "Search for a user",
minimumInputLength: 3,
maximumSelectionSize: 3,

		placeholder: "'.$lang->search_for_a_user.'",
minimumInputLength: 2,


		multiple: false,
ajax: { // instead of writing the function to execute the request we use Select2\'s convenient helper
url: "../xmlhttp.php?action=get_users",

		multiple: false,
ajax: { // instead of writing the function to execute the request we use Select2\'s convenient helper
url: "../xmlhttp.php?action=get_users",

Zeile 579Zeile 575
			results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};

			results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};

			}
},

			}
},

		initSelection: function(element, callback) {
var query = $(element).val();
if (query !== "") {

		initSelection: function(element, callback) {
var query = $(element).val();
if (query !== "") {

Zeile 592Zeile 588
				}).done(function(data) { callback(data); });
}
},

				}).done(function(data) { callback(data); });
}
},

 
	});

$(\'[for=username]\').click(function(){
$("#username").select2(\'open\');
return false;

	});
// -->
</script>';

	});
// -->
</script>';