Vergleich warnings.php - 1.8.4 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 340Zeile 340
	add_breadcrumb($lang->nav_add_warning);

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

	add_breadcrumb($lang->nav_add_warning);

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

 

if($mybb->settings['maxwarningpoints'] < 1)
{
$mybb->settings['maxwarningpoints'] = 10;
}


$current_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);



$current_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);


Zeile 439Zeile 444
		eval("\$types .= \"".$templates->get("warnings_warn_type")."\";");
unset($new_level);
unset($result);

		eval("\$types .= \"".$templates->get("warnings_warn_type")."\";");
unset($new_level);
unset($result);

	}

	}


$custom_warning = '';



$custom_warning = '';


Zeile 451Zeile 456
		}

eval("\$custom_warning = \"".$templates->get("warnings_warn_custom")."\";");

		}

eval("\$custom_warning = \"".$templates->get("warnings_warn_custom")."\";");

	}

	}


$pm_notify = '';



$pm_notify = '';


Zeile 463Zeile 468
		{
$codebuttons = build_mycode_inserter("message", $mybb->settings['pmsallowsmilies']);
if($mybb->settings['pmsallowsmilies'] != 0)

		{
$codebuttons = build_mycode_inserter("message", $mybb->settings['pmsallowsmilies']);
if($mybb->settings['pmsallowsmilies'] != 0)

			{

			{

				$smilieinserter = build_clickable_smilies();
}
}

				$smilieinserter = build_clickable_smilies();
}
}

Zeile 488Zeile 493
	eval("\$warn = \"".$templates->get("warnings_warn")."\";");
output_page($warn);
exit;

	eval("\$warn = \"".$templates->get("warnings_warn")."\";");
output_page($warn);
exit;

}


}


// Revoke a warning
if($mybb->input['action'] == "do_revoke" && $mybb->request_method == "post")
{

// Revoke a warning
if($mybb->input['action'] == "do_revoke" && $mybb->request_method == "post")
{

Zeile 588Zeile 593
	{
add_breadcrumb($lang->nav_profile, get_profile_link($user['uid']));
add_breadcrumb($lang->nav_warning_log, "warnings.php?uid={$user['uid']}");

	{
add_breadcrumb($lang->nav_profile, get_profile_link($user['uid']));
add_breadcrumb($lang->nav_warning_log, "warnings.php?uid={$user['uid']}");

	}

	}

	else
{
add_breadcrumb($lang->nav_profile);
add_breadcrumb($lang->nav_warning_log);
}
add_breadcrumb($lang->nav_view_warning);

	else
{
add_breadcrumb($lang->nav_profile);
add_breadcrumb($lang->nav_warning_log);
}
add_breadcrumb($lang->nav_view_warning);





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

$post_link = "";

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

$post_link = "";

Zeile 605Zeile 610
		$warning['post_subject'] = htmlspecialchars_uni($warning['post_subject']);
$post_link = get_post_link($warning['pid'])."#pid{$warning['pid']}";
eval("\$warning_info = \"".$templates->get("warnings_view_post")."\";");

		$warning['post_subject'] = htmlspecialchars_uni($warning['post_subject']);
$post_link = get_post_link($warning['pid'])."#pid{$warning['pid']}";
eval("\$warning_info = \"".$templates->get("warnings_view_post")."\";");

	}
else
{

	}
else
{

		eval("\$warning_info = \"".$templates->get("warnings_view_user")."\";");
}

$issuedby = build_profile_link($warning['username'], $warning['issuedby']);
$notes = nl2br(htmlspecialchars_uni($warning['notes']));

		eval("\$warning_info = \"".$templates->get("warnings_view_user")."\";");
}

$issuedby = build_profile_link($warning['username'], $warning['issuedby']);
$notes = nl2br(htmlspecialchars_uni($warning['notes']));





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

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

Zeile 625Zeile 630
	}
$warning_type = htmlspecialchars_uni($warning_type);
if($warning['points'] > 0)

	}
$warning_type = htmlspecialchars_uni($warning_type);
if($warning['points'] > 0)

	{

	{

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


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


Zeile 637Zeile 642
		if($warning['expires'] == 0)
{
$expires = $lang->never;

		if($warning['expires'] == 0)
{
$expires = $lang->never;

		}

		}

		else
{
$expires = my_date($mybb->settings['dateformat'], $warning['expires']) . ", " . my_date($mybb->settings['timeformat'], $warning['expires']);

		else
{
$expires = my_date($mybb->settings['dateformat'], $warning['expires']) . ", " . my_date($mybb->settings['timeformat'], $warning['expires']);

Zeile 737Zeile 742
	}

$multipage = multipage($warning_count, $perpage, $page, "warnings.php?uid={$user['uid']}");

	}

$multipage = multipage($warning_count, $perpage, $page, "warnings.php?uid={$user['uid']}");

 

if($mybb->settings['maxwarningpoints'] < 1)
{
$mybb->settings['maxwarningpoints'] = 10;
}


$warning_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)


$warning_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)