Vergleich reputation.php - 1.6.4 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: reputation.php 5392 2011-03-18 09:39:59Z Tomm $

 * $Id$

 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'reputation.php');


 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'reputation.php');


$templatelist = 'reputation_addlink,reputation_no_votes,reputation,reputation_add_error,reputation_deleted,reputation_added,reputation_add,reputation_vote,multipage_page_current,multipage_page,multipage_nextpage,multipage';

$templatelist = 'reputation_addlink,reputation_no_votes,reputation,reputation_add_error,reputation_deleted,reputation_added,reputation_add,reputation_vote,multipage_page_current,multipage_page,multipage_nextpage,multipage,multipage_prevpage,multipage_start,multipage_end';

require_once "./global.php";

require_once MYBB_ROOT."inc/class_parser.php";

require_once "./global.php";

require_once MYBB_ROOT."inc/class_parser.php";

Zeile 76Zeile 76
		output_page($error);
exit;
}

		output_page($error);
exit;
}

	



	// If a post has been given but post ratings have been disabled, set the post to 0. This will mean all subsequent code will think no post was given.
if($mybb->input['pid'] != 0 && $mybb->settings['postrep'] != 1)
{
$mybb->input['pid'] = 0;
}

	// If a post has been given but post ratings have been disabled, set the post to 0. This will mean all subsequent code will think no post was given.
if($mybb->input['pid'] != 0 && $mybb->settings['postrep'] != 1)
{
$mybb->input['pid'] = 0;
}

	



	// Check if this user has reached their "maximum reputations per day" quota
if($mybb->usergroup['maxreputationsday'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))
{
$timesearch = TIME_NOW - (60 * 60 * 24);
$query = $db->simple_select("reputation", "*", "adduid='".$mybb->user['uid']."' AND dateline>'$timesearch'");

	// Check if this user has reached their "maximum reputations per day" quota
if($mybb->usergroup['maxreputationsday'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))
{
$timesearch = TIME_NOW - (60 * 60 * 24);
$query = $db->simple_select("reputation", "*", "adduid='".$mybb->user['uid']."' AND dateline>'$timesearch'");

		$numtoday = $db->num_rows($query);


		$numtoday = $db->num_rows($query);


		// Reached the quota - error.
if($numtoday >= $mybb->usergroup['maxreputationsday'])
{
$message = $lang->add_maxperday;

		// Reached the quota - error.
if($numtoday >= $mybb->usergroup['maxreputationsday'])
{
$message = $lang->add_maxperday;

			eval("\$error = \"".$templates->get("reputation_add_error")."\";");

			eval("\$error = \"".$templates->get("reputation_add_error")."\";");

			output_page($error);
exit;
}
}

			output_page($error);
exit;
}
}

	



	// Is the user giving too much reputation to another?
if($mybb->usergroup['maxreputationsperuser'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))
{

	// Is the user giving too much reputation to another?
if($mybb->usergroup['maxreputationsperuser'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))
{

Zeile 115Zeile 115
			exit;
}
}

			exit;
}
}

	



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

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

		// Has the user given too much reputation to another in the same thread?
if($mybb->usergroup['maxreputationsperthread'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))


		// 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->input['pid']);
if($post)

		{

		{

			$timesearch = TIME_NOW - (60 * 60 * 24);
$query = $db->query("
SELECT p.pid
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."reputation r ON (p.pid=r.pid)
WHERE r.uid = '{$uid}'
AND r.dateline > '{$timesearch}'
");
$numtoday = $db->num_rows($query);

if($numtoday >= $mybb->usergroup['maxreputationsperthread'])

			$thread = get_thread($post['tid']);
$forum = get_forum($thread['fid']);
$forumpermissions = forum_permissions($forum['fid']);
// Post doesn't belong to that user or isn't visible
if($uid != $post['uid'] || ($post['visible'] == 0 && !is_moderator($fid)) || $post['visible'] < 0)







			{

			{

				$message = $lang->add_maxperthread;
eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;



































				$mybb->input['pid'] = 0;
}
// Thread isn't visible
elseif(($thread['visible'] == 0 && !is_moderator($forum['fid'])) || $thread['visible'] < 0)
{
$mybb->input['pid'] = 0;
}
// Current user can't see the forum
elseif($forumpermissions['canview'] == 0 || $forumpermissions['canpostreplys'] == 0 || $mybb->user['suspendposting'] == 1)
{
$mybb->input['pid'] = 0;
}
// Current user can't see that thread
elseif(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
$mybb->input['pid'] = 0;
}
else
// We have the correct post, but has the user given too much reputation to another in the same thread?
if($mybb->usergroup['maxreputationsperthread'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && !$mybb->input['delete'])))
{
$timesearch = TIME_NOW - (60 * 60 * 24);
$query = $db->query("
SELECT COUNT(p.pid) AS posts
FROM ".TABLE_PREFIX."reputation r
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid = r.pid)
WHERE r.uid = '{$uid}' AND r.adduid = '{$mybb->user['uid']}' AND p.tid = '{$post['tid']}' AND r.dateline > '{$timesearch}'
");

$numtoday = $db->fetch_field($query, 'posts');

if($numtoday >= $mybb->usergroup['maxreputationsperthread'])
{
$message = $lang->add_maxperthread;
eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;
}

			}
}

			}
}

		// 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->input['pid']);
if($uid != $post['uid'])

		else



		{
$mybb->input['pid'] = 0;
}

		{
$mybb->input['pid'] = 0;
}

Zeile 177Zeile 204
	// Deleting our current reputation of this user.
if($mybb->input['delete'])
{

	// Deleting our current reputation of this user.
if($mybb->input['delete'])
{

 
		// Only administrators, super moderators, as well as users who gave a specifc vote can delete one.
if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
{
error_no_permission();
}


		if($mybb->input['pid'] != 0)
{
$db->delete_query("reputation", "uid='{$uid}' AND adduid='".$mybb->user['uid']."' AND pid = '".intval($mybb->input['pid'])."'");

		if($mybb->input['pid'] != 0)
{
$db->delete_query("reputation", "uid='{$uid}' AND adduid='".$mybb->user['uid']."' AND pid = '".intval($mybb->input['pid'])."'");

Zeile 195Zeile 228
		output_page($error);
exit;
}

		output_page($error);
exit;
}

	



	if($mybb->input['pid'] == 0)

	if($mybb->input['pid'] == 0)

	{

	{

		$mybb->input['comments'] = trim($mybb->input['comments']); // Trim whitespace to check for length
if(my_strlen($mybb->input['comments']) < 10)
{

		$mybb->input['comments'] = trim($mybb->input['comments']); // Trim whitespace to check for length
if(my_strlen($mybb->input['comments']) < 10)
{

Zeile 207Zeile 240
			output_page($error);
exit;
}

			output_page($error);
exit;
}

	}

	}


// The power for the reputation they specified was invalid.
if($reputation > $mybb->usergroup['reputationpower'] || !is_numeric($mybb->input['reputation']))
{
$show_back = 1;
$message = $lang->add_invalidpower;


// The power for the reputation they specified was invalid.
if($reputation > $mybb->usergroup['reputationpower'] || !is_numeric($mybb->input['reputation']))
{
$show_back = 1;
$message = $lang->add_invalidpower;

		eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;

		eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;

	}

	}

	



	// The user is trying to give a negative reputation, but negative reps have been disabled.
if($mybb->input['reputation'] < 0 && $mybb->settings['negrep'] != 1)
{
$show_back = 1;
$message = $lang->add_negative_disabled;

	// The user is trying to give a negative reputation, but negative reps have been disabled.
if($mybb->input['reputation'] < 0 && $mybb->settings['negrep'] != 1)
{
$show_back = 1;
$message = $lang->add_negative_disabled;

		eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;
}






















		eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;
}

// This user is trying to give a neutral reputation, but neutral reps have been disabled.
if($mybb->input['reputation'] == 0 && $mybb->settings['neurep'] != 1)
{
$show_back = 1;
$message = $lang->add_neutral_disabled;
eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;
}

// This user is trying to give a positive reputation, but positive reps have been disabled.
if($mybb->input['reputation'] > 0 && $mybb->settings['posrep'] != 1)
{
$show_back = 1;
$message = $lang->add_positive_disabled;
eval("\$error = \"".$templates->get("reputation_add_error")."\";");
output_page($error);
exit;
}


	// The length of the comment is too long
if(my_strlen($mybb->input['comments']) > $mybb->settings['maxreplength'])
{

	// The length of the comment is too long
if(my_strlen($mybb->input['comments']) > $mybb->settings['maxreplength'])
{

Zeile 238Zeile 291
		output_page($error);
exit;
}

		output_page($error);
exit;
}





	// Build array of reputation data.
$reputation = array(
"uid" => $uid,

	// Build array of reputation data.
$reputation = array(
"uid" => $uid,

Zeile 248Zeile 301
		"dateline" => TIME_NOW,
"comments" => $db->escape_string($mybb->input['comments'])
);

		"dateline" => TIME_NOW,
"comments" => $db->escape_string($mybb->input['comments'])
);





	$plugins->run_hooks("reputation_do_add_process");

// Updating an existing reputation

	$plugins->run_hooks("reputation_do_add_process");

// Updating an existing reputation

Zeile 257Zeile 310
		if($existing_reputation['uid'])
{
$db->update_query("reputation", $reputation, "rid='".$existing_reputation['rid']."'");

		if($existing_reputation['uid'])
{
$db->update_query("reputation", $reputation, "rid='".$existing_reputation['rid']."'");

		}

		}

		elseif($existing_post_reputation['uid'])
{
$db->update_query("reputation", $reputation, "rid='".$existing_post_reputation['rid']."'");

		elseif($existing_post_reputation['uid'])
{
$db->update_query("reputation", $reputation, "rid='".$existing_post_reputation['rid']."'");

		}

// Recount the reputation of this user - keep it in sync.
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation_count", "uid='{$uid}'");
$reputation_value = $db->fetch_field($query, "reputation_count");


		}

// Recount the reputation of this user - keep it in sync.
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation_count", "uid='{$uid}'");
$reputation_value = $db->fetch_field($query, "reputation_count");


		$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");

$lang->vote_added = $lang->vote_updated;

		$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");

$lang->vote_added = $lang->vote_updated;

Zeile 282Zeile 335
		$reputation_value = $db->fetch_field($query, "reputation_count");

$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");

		$reputation_value = $db->fetch_field($query, "reputation_count");

$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");

	}

$plugins->run_hooks("reputation_do_add_end");

	}

$plugins->run_hooks("reputation_do_add_end");


eval("\$reputation = \"".$templates->get("reputation_added")."\";");
output_page($reputation);


eval("\$reputation = \"".$templates->get("reputation_added")."\";");
output_page($reputation);

Zeile 303Zeile 356
		if($existing_reputation['uid'])
{
$comments = htmlspecialchars_uni($existing_reputation['comments']);

		if($existing_reputation['uid'])
{
$comments = htmlspecialchars_uni($existing_reputation['comments']);

		}

		}

		elseif($existing_post_reputation['uid'])
{
$comments = htmlspecialchars_uni($existing_post_reputation['comments']);

		elseif($existing_post_reputation['uid'])
{
$comments = htmlspecialchars_uni($existing_post_reputation['comments']);

Zeile 311Zeile 364
		$delete_button = "<input type=\"submit\" name=\"delete\" value=\"{$lang->delete_vote}\" />";
}
// Otherwise we're adding an entirely new reputation for this user.

		$delete_button = "<input type=\"submit\" name=\"delete\" value=\"{$lang->delete_vote}\" />";
}
// Otherwise we're adding an entirely new reputation for this user.

	else
{

	else
{

		$vote_title = $lang->sprintf($lang->add_reputation_vote, $user['username']);
$vote_button = $lang->add_vote;
$comments = '';
$delete_button = '';
}
$lang->user_comments = $lang->sprintf($lang->user_comments, $user['username']);

		$vote_title = $lang->sprintf($lang->add_reputation_vote, $user['username']);
$vote_button = $lang->add_vote;
$comments = '';
$delete_button = '';
}
$lang->user_comments = $lang->sprintf($lang->user_comments, $user['username']);

	



	if($mybb->input['pid'])

	if($mybb->input['pid'])

	{

	{

		$post_rep_info = $lang->sprintf($lang->add_reputation_to_post, $user['username']);
$lang->user_comments = $lang->no_comment_needed;

		$post_rep_info = $lang->sprintf($lang->add_reputation_to_post, $user['username']);
$lang->user_comments = $lang->no_comment_needed;

	}

	}

	else

	else

	{

	{

		$post_rep_info = '';
}


		$post_rep_info = '';
}


	// Draw the "power" options
$positive_power = '';
$negative_power = '';
$vote_check = '';
if($existing_reputation['uid'])
{
$vote_check[$existing_reputation['reputation']] = " selected=\"selected\"";
}
$reputationpower = $mybb->usergroup['reputationpower'];
for($i = 1; $i <= $reputationpower; ++$i)
{
$positive_title = $lang->sprintf($lang->power_positive, "+".$i);
$positive_power = "\t\t\t\t\t<option value=\"{$i}\" class=\"reputation_positive\" onclick=\"$('reputation').className='reputation_positive'\"{$vote_check[$i]}>{$positive_title}</option>\n".$positive_power;
if($mybb->settings['negrep'])
{
$negative_title = $lang->sprintf($lang->power_negative, "-".$i);
$negative_power .= "\t\t\t\t\t<option value=\"-{$i}\" class=\"reputation_negative\" onclick=\"$('reputation').className='reputation_negative'\"{$vote_check[-$i]}>{$negative_title}</option>\n";
}
}

$plugins->run_hooks("reputation_add_end");

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























	// Draw the "power" options
if($mybb->settings['negrep'] || $mybb->settings['neurep'] || $mybb->settings['posrep'])
{
$vote_check = '';
$positive_power = '';
$negative_power = '';
$reputationpower = $mybb->usergroup['reputationpower'];

if($existing_reputation['uid'])
{
$vote_check[$existing_reputation['reputation']] = " selected=\"selected\"";
}

if($mybb->settings['neurep'])
{
$neutral_title = $lang->power_neutral;
$neutral_power = "\t\t\t\t\t<option value=\"0\" class=\"reputation_neutral\" onclick=\"$('reputation').className='reputation_neutral'\"{$vote_check[0]}>{$lang->power_neutral}</option>\n";
}

for($i = 1; $i <= $reputationpower; ++$i)
{
if($mybb->settings['posrep'])
{
$positive_title = $lang->sprintf($lang->power_positive, "+".$i);
$positive_power = "\t\t\t\t\t<option value=\"{$i}\" class=\"reputation_positive\" onclick=\"$('reputation').className='reputation_positive'\"{$vote_check[$i]}>{$positive_title}</option>\n".$positive_power;
}

if($mybb->settings['negrep'])
{
$negative_title = $lang->sprintf($lang->power_negative, "-".$i);
$negative_power .= "\t\t\t\t\t<option value=\"-{$i}\" class=\"reputation_negative\" onclick=\"$('reputation').className='reputation_negative'\"{$vote_check[-$i]}>{$negative_title}</option>\n";
}
}

$plugins->run_hooks("reputation_add_end");
eval("\$reputation_add = \"".$templates->get("reputation_add")."\";");
}
else
{
$message = $lang->add_all_rep_disabled;

$plugins->run_hooks("reputation_add_end_error");
eval("\$reputation_add = \"".$templates->get("reputation_add_error")."\";");
}


	output_page($reputation_add);
}


	output_page($reputation_add);
}


Zeile 378Zeile 453
	}

// Delete the specified reputation

	}

// Delete the specified reputation

	$db->delete_query("reputation", "uid='{$uid}' AND rid='".$mybb->input['rid']."'");

	$db->delete_query("reputation", "uid='{$uid}' AND rid='".intval($mybb->input['rid'])."'");


// Recount the reputation of this user - keep it in sync.
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation_count", "uid='{$uid}'");
$reputation_value = $db->fetch_field($query, "reputation_count");


// Recount the reputation of this user - keep it in sync.
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation_count", "uid='{$uid}'");
$reputation_value = $db->fetch_field($query, "reputation_count");





	// Create moderator log

	// Create moderator log

	$rep_remove = build_profile_link($existing_reputation['username'], $existing_reputation['adduid']);
log_moderator_action(array("uid" => $user['uid'], "username" => $user['username']), $lang->sprintf($lang->delete_reputation_log, $rep_remove));

	log_moderator_action(array("uid" => $user['uid'], "username" => $user['username']), $lang->sprintf($lang->delete_reputation_log, $existing_reputation['username'], $existing_reputation['adduid']));



$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");



$db->update_query("users", array('reputation' => intval($reputation_value)), "uid='{$uid}'");


Zeile 396Zeile 470
// Otherwise, show a listing of reputations for the given user.
if(!$mybb->input['action'])
{

// Otherwise, show a listing of reputations for the given user.
if(!$mybb->input['action'])
{

	if($user_permissions['usereputationsystem'] != 1)
{
error($lang->reputations_disabled_group);
}


 
	if($mybb->usergroup['canviewprofiles'] == 0)
{
// Reputation page is a part of a profile
error_no_permission();

	if($mybb->usergroup['canviewprofiles'] == 0)
{
// Reputation page is a part of a profile
error_no_permission();

	}











	}

// 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)
{
// Group has reputation disabled or user has a display group that has reputation disabled
error($lang->reputations_disabled_group);
}


$lang->nav_profile = $lang->sprintf($lang->nav_profile, $user['username']);
$lang->reputation_report = $lang->sprintf($lang->reputation_report, $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'])

	// 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'];
}

		$user['displaygroup'] = $user['usergroup'];
}


// Fetch display group properties.
$display_group = usergroup_displaygroup($user['displaygroup']);

 

// This user has a custom user title
if(trim($user['usertitle']) != '')


// This user has a custom user title
if(trim($user['usertitle']) != '')

Zeile 433Zeile 509
		$usertitle = $display_group['usertitle'];
}
// Otherwise, fetch it from our titles table for the number of posts this user has

		$usertitle = $display_group['usertitle'];
}
// Otherwise, fetch it from our titles table for the number of posts this user has

	else
{

	else
{

		$query = $db->simple_select("usertitles", "*", "posts<='{$user['postnum']}'", array('order_by' => 'posts', 'order_dir' => 'DESC'));
$title = $db->fetch_array($query);
$usertitle = $title['title'];
}

// If the user has permission to add reputations - show the image

		$query = $db->simple_select("usertitles", "*", "posts<='{$user['postnum']}'", array('order_by' => 'posts', 'order_dir' => 'DESC'));
$title = $db->fetch_array($query);
$usertitle = $title['title'];
}

// If the user has permission to add reputations - show the image

	if($mybb->usergroup['cangivereputations'] == 1)

	if($mybb->usergroup['cangivereputations'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))

	{
eval("\$add_reputation = \"".$templates->get("reputation_addlink")."\";");
}

	{
eval("\$add_reputation = \"".$templates->get("reputation_addlink")."\";");
}

Zeile 494Zeile 570
			$order = "r.dateline DESC";
$sort_selected['last_updated'] = 'selected="selected"';
break;

			$order = "r.dateline DESC";
$sort_selected['last_updated'] = 'selected="selected"';
break;

	}


	}


	if(!$mybb->input['show'] && !$mybb->input['sort'])
{
$s_url = '';

	if(!$mybb->input['show'] && !$mybb->input['sort'])
{
$s_url = '';

Zeile 514Zeile 590
	// Quickly check to see if we're in sync...
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation, COUNT(rid) AS total_reputation", "uid = '".$user['uid']."'");
$reputation = $db->fetch_array($query);

	// Quickly check to see if we're in sync...
$query = $db->simple_select("reputation", "SUM(reputation) AS reputation, COUNT(rid) AS total_reputation", "uid = '".$user['uid']."'");
$reputation = $db->fetch_array($query);


$sync_reputation = $reputation['reputation'];


$sync_reputation = intval($reputation['reputation']);

	$total_reputation = $reputation['total_reputation'];

if($sync_reputation != $user['reputation'])

	$total_reputation = $reputation['total_reputation'];

if($sync_reputation != $user['reputation'])

Zeile 620Zeile 696
	// Is negative reputation disabled? If so, tell the user
if($mybb->settings['negrep'] == 0)
{

	// Is negative reputation disabled? If so, tell the user
if($mybb->settings['negrep'] == 0)
{

		$negative_count = $negative_count."*";

 
		$neg_rep_info = $lang->neg_rep_disabled;

		$neg_rep_info = $lang->neg_rep_disabled;

 
	}

if($mybb->settings['posrep'] == 0)
{
$pos_rep_info = $lang->pos_rep_disabled;
}

if($mybb->settings['neurep'] == 0)
{
$neu_rep_info = $lang->neu_rep_disabled;

	}

// Check if we're browsing a specific page of results

	}

// Check if we're browsing a specific page of results

Zeile 635Zeile 720
		{
$start = 0;
$page = 1;

		{
$start = 0;
$page = 1;

		}
}

		}
}

	else
{
$start = 0;

	else
{
$start = 0;

Zeile 674Zeile 759
		{
$reputation_vote['username'] = $lang->na;
$reputation_vote['user_reputation'] = '';

		{
$reputation_vote['username'] = $lang->na;
$reputation_vote['user_reputation'] = '';

		}

		}

		else
{
$reputation_vote['username'] = format_name($reputation_vote['username'], $reputation_vote['user_usergroup'], $reputation_vote['user_displaygroup']);

		else
{
$reputation_vote['username'] = format_name($reputation_vote['username'], $reputation_vote['user_usergroup'], $reputation_vote['user_displaygroup']);

Zeile 713Zeile 798
		$last_updated_date = my_date($mybb->settings['dateformat'], $reputation_vote['dateline']);
$last_updated_time = my_date($mybb->settings['timeformat'], $reputation_vote['dateline']);
$last_updated = $lang->sprintf($lang->last_updated, $last_updated_date, $last_updated_time);

		$last_updated_date = my_date($mybb->settings['dateformat'], $reputation_vote['dateline']);
$last_updated_time = my_date($mybb->settings['timeformat'], $reputation_vote['dateline']);
$last_updated = $lang->sprintf($lang->last_updated, $last_updated_date, $last_updated_time);

		



		// Is this rating specific to a post?
if($reputation_vote['pid'] && $reputation_vote['post_link'])
{

		// Is this rating specific to a post?
if($reputation_vote['pid'] && $reputation_vote['post_link'])
{

Zeile 740Zeile 825
			"allow_html" => 0,
"allow_mycode" => 0,
"allow_smilies" => 1,

			"allow_html" => 0,
"allow_mycode" => 0,
"allow_smilies" => 1,

			"allow_imgcode" => 0


			"allow_imgcode" => 0,
"filter_badwords" => 1

		);

$reputation_vote['comments'] = $parser->parse_message($reputation_vote['comments'], $reputation_parser);

		);

$reputation_vote['comments'] = $parser->parse_message($reputation_vote['comments'], $reputation_parser);

Zeile 756Zeile 842
	{
eval("\$reputation_votes = \"".$templates->get("reputation_no_votes")."\";");
}

	{
eval("\$reputation_votes = \"".$templates->get("reputation_no_votes")."\";");
}

	



	$plugins->run_hooks("reputation_end");
eval("\$reputation = \"".$templates->get("reputation")."\";");
output_page($reputation);

	$plugins->run_hooks("reputation_end");
eval("\$reputation = \"".$templates->get("reputation")."\";");
output_page($reputation);