Vergleich reputation.php - 1.6.5 - 1.6.10

  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 5628 2011-10-06 08:24:24Z 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 434Zeile 434
	$reputation_value = $db->fetch_field($query, "reputation_count");

// Create moderator log

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

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

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


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

Zeile 467Zeile 471
	{
$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 798Zeile 799
			"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);