Vergleich warnings.php - 1.8.4 - 1.8.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 161Zeile 161
		$given_today = $db->fetch_field($query, "given_today");
if($given_today >= $mybb->usergroup['maxwarningsday'])
{

		$given_today = $db->fetch_field($query, "given_today");
if($given_today >= $mybb->usergroup['maxwarningsday'])
{

			error($lang->sprintf($lang->reached_max_warnings_day, $mybb->usergroup['maxwarningsday']));

			error($lang->sprintf($lang->warnings_reached_max_warnings_day, $mybb->usergroup['maxwarningsday']));

		}
}


		}
}


Zeile 173Zeile 173

if($user['uid'] == $mybb->user['uid'])
{


if($user['uid'] == $mybb->user['uid'])
{

		error($lang->cannot_warn_self);

		error($lang->warnings_error_cannot_warn_self);

	}

if($user['warningpoints'] >= $mybb->settings['maxwarningpoints'])
{

	}

if($user['warningpoints'] >= $mybb->settings['maxwarningpoints'])
{

		error($lang->user_reached_max_warning);

		error($lang->warnings_error_user_reached_max_warning);

	}

$group_permissions = user_permissions($user['uid']);

	}

$group_permissions = user_permissions($user['uid']);

Zeile 207Zeile 207

if(!$post || !$thread)
{


if(!$post || !$thread)
{

			error($lang->error_invalid_post);

			error($lang->warnings_error_invalid_post);

		}

$forum_permissions = forum_permissions($thread['fid']);

		}

$forum_permissions = forum_permissions($thread['fid']);

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;
}

if(!is_array($groupscache))
{
$groupscache = $cache->read("usergroups");
}


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



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


Zeile 439Zeile 449
		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 461
		}

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

		}

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

	}

	}


$pm_notify = '';



$pm_notify = '';


Zeile 463Zeile 473
		{
$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 498
	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 598
	{
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 615
		$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 635
	}
$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 647
		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 747
	}

$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)