Vergleich admin/modules/tools/warninglog.php - 1.8.6 - 1.8.25

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

$page->output_header($lang->warning_details);



$page->output_header($lang->warning_details);


	$user_link = build_profile_link($user['username'], $user['uid'], "_blank");

	$user_link = build_profile_link(htmlspecialchars_uni($user['username']), $user['uid'], "_blank");


if(is_array($warn_errors))
{


if(is_array($warn_errors))
{

Zeile 142Zeile 142
		$table->construct_row();
}


		$table->construct_row();
}


	$issuedby = build_profile_link($warning['username'], $warning['issuedby'], "_blank");

	$issuedby = build_profile_link(htmlspecialchars_uni($warning['username']), $warning['issuedby'], "_blank");

	$notes = nl2br(htmlspecialchars_uni($warning['notes']));

$date_issued = my_date('relative', $warning['dateline']);

	$notes = nl2br(htmlspecialchars_uni($warning['notes']));

$date_issued = my_date('relative', $warning['dateline']);

Zeile 215Zeile 215
	{
$date_revoked = my_date('relative', $warning['daterevoked']);
$revoked_user = get_user($warning['revokedby']);

	{
$date_revoked = my_date('relative', $warning['daterevoked']);
$revoked_user = get_user($warning['revokedby']);

		$revoked_by = build_profile_link($revoked_user['username'], $revoked_user['uid'], "_blank");

		$revoked_by = build_profile_link(htmlspecialchars_uni($revoked_user['username']), $revoked_user['uid'], "_blank");

		$revoke_reason = nl2br(htmlspecialchars_uni($warning['revokereason']));

$revoke_table = new Table;

		$revoke_reason = nl2br(htmlspecialchars_uni($warning['revokereason']));

$revoke_table = new Table;

Zeile 345Zeile 345
		$per_page = (int)$mybb->input['filter']['per_page'];
}
$start = ($view_page-1) * $per_page;

		$per_page = (int)$mybb->input['filter']['per_page'];
}
$start = ($view_page-1) * $per_page;

 
	$pages = ceil($total_warnings / $per_page);
if($view_page > $pages)
{
$start = 0;
$view_page = 1;
}

	// Build the base URL for pagination links
$url = 'index.php?module=tools-warninglog';
if(is_array($mybb->input['filter']) && count($mybb->input['filter']))

	// Build the base URL for pagination links
$url = 'index.php?module=tools-warninglog';
if(is_array($mybb->input['filter']) && count($mybb->input['filter']))

Zeile 391Zeile 397
		}

$trow = alt_trow();

		}

$trow = alt_trow();

		$username = format_name($row['username'], $row['usergroup'], $row['displaygroup']);

		$username = format_name(htmlspecialchars_uni($row['username']), $row['usergroup'], $row['displaygroup']);

		if(!$row['uid'])
{
$username_link = $username;

		if(!$row['uid'])
{
$username_link = $username;

Zeile 400Zeile 406
		{
$username_link = build_profile_link($username, $row['uid'], "_blank");
}

		{
$username_link = build_profile_link($username, $row['uid'], "_blank");
}

		$mod_username = format_name($row['mod_username'], $row['mod_usergroup'], $row['mod_displaygroup']);

		$mod_username = format_name(htmlspecialchars_uni($row['mod_username']), $row['mod_usergroup'], $row['mod_displaygroup']);

		$mod_username_link = build_profile_link($mod_username, $row['mod_uid'], "_blank");
$issued_date = my_date('relative', $row['dateline']);
$revoked_text = '';

		$mod_username_link = build_profile_link($mod_username, $row['mod_uid'], "_blank");
$issued_date = my_date('relative', $row['dateline']);
$revoked_text = '';

Zeile 425Zeile 431
		$title = htmlspecialchars_uni($title);
if($row['points'] > 0)
{

		$title = htmlspecialchars_uni($title);
if($row['points'] > 0)
{

			$points = '+'.$row['points'];

			$row['points'] = "+{$row['points']}";

		}

		}

 
		$points = $lang->sprintf($lang->warning_points, $row['points']);


$table->construct_cell($username_link);


$table->construct_cell($username_link);

		$table->construct_cell("{$title} ({$points})");

		$table->construct_cell("{$title} {$points}");

		$table->construct_cell($issued_date, array("class" => "align_center"));
$table->construct_cell($expire_date.$revoked_text, array("class" => "align_center"));
$table->construct_cell($mod_username_link);

		$table->construct_cell($issued_date, array("class" => "align_center"));
$table->construct_cell($expire_date.$revoked_text, array("class" => "align_center"));
$table->construct_cell($mod_username_link);