Vergleich reputation.php - 1.8.12 - 1.8.20

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 43Zeile 43
	error($lang->add_no_uid);
}
$user_permissions = user_permissions($uid);

	error($lang->add_no_uid);
}
$user_permissions = user_permissions($uid);

 

// Fetch display group properties.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

if(!$user['displaygroup'])
{
$user['displaygroup'] = $user['usergroup'];
}

$display_group = usergroup_displaygroup($user['displaygroup']);
if(is_array($display_group))
{
$user_permissions = array_merge($user_permissions, $display_group);
}


$mybb->input['action'] = $mybb->get_input('action');



$mybb->input['action'] = $mybb->get_input('action');


Zeile 52Zeile 66
{
// This user doesn't have permission to give reputations.
if($mybb->usergroup['cangivereputations'] != 1)

{
// This user doesn't have permission to give reputations.
if($mybb->usergroup['cangivereputations'] != 1)

	{

	{

		$message = $lang->add_no_permission;

		$message = $lang->add_no_permission;

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else
{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else
{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");

		}
echo $error;
exit;

		}
echo $error;
exit;

Zeile 68Zeile 82

// The user we're trying to give a reputation to doesn't have permission to receive reps.
if($user_permissions['usereputationsystem'] != 1)


// The user we're trying to give a reputation to doesn't have permission to receive reps.
if($user_permissions['usereputationsystem'] != 1)

	{

	{

		$message = $lang->add_disabled;

		$message = $lang->add_disabled;

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else
{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else
{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");

		}
echo $error;
exit;

		}
echo $error;
exit;

Zeile 109Zeile 123
		// Make sure that this post exists, and that the author of the post we're giving this reputation for corresponds with the user the rep is being given to.
$post = get_post($mybb->get_input('pid', MyBB::INPUT_INT));
if($post)

		// Make sure that this post exists, and that the author of the post we're giving this reputation for corresponds with the user the rep is being given to.
$post = get_post($mybb->get_input('pid', MyBB::INPUT_INT));
if($post)

		{

		{

			$thread = get_thread($post['tid']);
$forum = get_forum($thread['fid']);
$forumpermissions = forum_permissions($forum['fid']);

			$thread = get_thread($post['tid']);
$forum = get_forum($thread['fid']);
$forumpermissions = forum_permissions($forum['fid']);

Zeile 271Zeile 285
	$mybb->input['comments'] = trim($mybb->get_input('comments')); // Trim whitespace to check for length
if(my_strlen($mybb->input['comments']) < $mybb->settings['minreplength'] && $mybb->get_input('pid', MyBB::INPUT_INT) == 0)
{

	$mybb->input['comments'] = trim($mybb->get_input('comments')); // Trim whitespace to check for length
if(my_strlen($mybb->input['comments']) < $mybb->settings['minreplength'] && $mybb->get_input('pid', MyBB::INPUT_INT) == 0)
{

		$message = $lang->add_no_comment;

		$message = $lang->sprintf($lang->add_no_comment, $mybb->settings['minreplength']);

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");

Zeile 304Zeile 318
	if($mybb->get_input('reputation', MyBB::INPUT_INT) < 0 && $mybb->settings['negrep'] != 1)
{
$message = $lang->add_negative_disabled;

	if($mybb->get_input('reputation', MyBB::INPUT_INT) < 0 && $mybb->settings['negrep'] != 1)
{
$message = $lang->add_negative_disabled;

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else

		if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else

		{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");
}

		{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");
}

Zeile 424Zeile 438

if($mybb->usergroup['issupermod'] == 1 || ($mybb->usergroup['candeletereputations'] == 1 && $existing_reputation['adduid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0))
{


if($mybb->usergroup['issupermod'] == 1 || ($mybb->usergroup['candeletereputations'] == 1 && $existing_reputation['adduid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0))
{

 
			$reputation_pid = $mybb->get_input('pid', MyBB::INPUT_INT);

			eval("\$delete_button = \"".$templates->get("reputation_add_delete")."\";");
}
}

			eval("\$delete_button = \"".$templates->get("reputation_add_delete")."\";");
}
}

Zeile 487Zeile 502
			}
}


			}
}


		$mybb->input['pid'] = $mybb->get_input('pid', MyBB::INPUT_INT);

		$reputation_pid = $mybb->get_input('pid', MyBB::INPUT_INT);


$plugins->run_hooks("reputation_add_end");
eval("\$reputation_add = \"".$templates->get("reputation_add", 1, 0)."\";");


$plugins->run_hooks("reputation_add_end");
eval("\$reputation_add = \"".$templates->get("reputation_add", 1, 0)."\";");

Zeile 556Zeile 571
		error_no_permission();
}


		error_no_permission();
}


	// Set display group to their user group if they don't have a display group.
if(!$user['displaygroup'])
{
$user['displaygroup'] = $user['usergroup'];
}

// Fetch display group properties.
$displaygroupfields = array('title', 'description', 'namestyle', 'usertitle', 'stars', 'starimage', 'image', 'usereputationsystem');
$display_group = usergroup_displaygroup($user['displaygroup']);

if($user_permissions['usereputationsystem'] != 1 || $display_group['title'] && $display_group['usereputationsystem'] == 0)
{

	if($user_permissions['usereputationsystem'] != 1)
{











		// Group has reputation disabled or user has a display group that has reputation disabled
error($lang->reputations_disabled_group);

		// Group has reputation disabled or user has a display group that has reputation disabled
error($lang->reputations_disabled_group);

	}


	}


	$user['username'] = htmlspecialchars_uni($user['username']);
$lang->nav_profile = $lang->sprintf($lang->nav_profile, $user['username']);
$lang->reputation_report = $lang->sprintf($lang->reputation_report, $user['username']);

// Format the user name using the group username style
$username = format_name($user['username'], $user['usergroup'], $user['displaygroup']);

	$user['username'] = htmlspecialchars_uni($user['username']);
$lang->nav_profile = $lang->sprintf($lang->nav_profile, $user['username']);
$lang->reputation_report = $lang->sprintf($lang->reputation_report, $user['username']);

// Format the user name using the group username style
$username = format_name($user['username'], $user['usergroup'], $user['displaygroup']);


// Set display group to their user group if they don't have a display group.
if(!$user['displaygroup'])
{
$user['displaygroup'] = $user['usergroup'];
}

 

$usertitle = '';



$usertitle = '';