Vergleich inc/functions_post.php - 1.6.2 - 1.6.5

  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: functions_post.php 5125 2010-07-27 07:28:03Z RyanGordon $

 * $Id: functions_post.php 5651 2011-11-14 08:45:52Z Tomm $

 */

/**

 */

/**

Zeile 279Zeile 279
			$post['userstars'] .= "<br />";
}


			$post['userstars'] .= "<br />";
}


 
		$postnum = $post['postnum'];

		$post['postnum'] = my_number_format($post['postnum']);

// Determine the status to show for the user (Online/Offline/Away)

		$post['postnum'] = my_number_format($post['postnum']);

// Determine the status to show for the user (Online/Offline/Away)

Zeile 334Zeile 335
			eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");
}


			eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");
}


		if($mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1)

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

		{
if(!$post['pid'])
{

		{
if(!$post['pid'])
{

Zeile 366Zeile 367
		$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);

// Work out the reputation this user has (only show if not announcement)

		$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);

// Work out the reputation this user has (only show if not announcement)

		if($post_type != 3 && $usergroup['usereputationsystem'] != 0 && $mybb->settings['enablereputation'] == 1)

		if($post_type != 3 && $usergroup['usereputationsystem'] != 0 && $mybb->settings['enablereputation'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))

		{
$post['userreputation'] = get_reputation($post['reputation'], $post['uid']);
eval("\$post['replink'] = \"".$templates->get("postbit_reputation")."\";");

		{
$post['userreputation'] = get_reputation($post['reputation'], $post['uid']);
eval("\$post['replink'] = \"".$templates->get("postbit_reputation")."\";");

Zeile 571Zeile 572

get_post_attachments($id, $post);



get_post_attachments($id, $post);


	if($post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW))

	if($post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW) && $usergroup['canusesig'] == 1 && ($usergroup['canusesigxposts'] == 0 || $usergroup['canusesigxposts'] > 0 && $postnum > $usergroup['canusesigxposts']))

	{
$sig_parser = array(
"allow_html" => $mybb->settings['sightml'],

	{
$sig_parser = array(
"allow_html" => $mybb->settings['sightml'],

Zeile 580Zeile 581
			"allow_imgcode" => $mybb->settings['sigimgcode'],
"me_username" => $post['username']
);

			"allow_imgcode" => $mybb->settings['sigimgcode'],
"me_username" => $post['username']
);

 

if($usergroup['signofollow'])
{
$sig_parser['nofollow_on'] = 1;
}


$post['signature'] = $parser->parse_message($post['signature'], $sig_parser);
eval("\$post['signature'] = \"".$templates->get("postbit_signature")."\";");
}
else


$post['signature'] = $parser->parse_message($post['signature'], $sig_parser);
eval("\$post['signature'] = \"".$templates->get("postbit_signature")."\";");
}
else

	{

	{

		$post['signature'] = "";
}


		$post['signature'] = "";
}


Zeile 594Zeile 600
	if($post['icon'] > 0 && $icon_cache[$post['icon']])
{
$icon = $icon_cache[$post['icon']];

	if($post['icon'] > 0 && $icon_cache[$post['icon']])
{
$icon = $icon_cache[$post['icon']];

 

$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);

		$post['icon'] = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" style=\"vertical-align: middle;\" />&nbsp;";
}
else

		$post['icon'] = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" style=\"vertical-align: middle;\" />&nbsp;";
}
else

Zeile 605Zeile 614
	switch($post_type)
{
case 1: // Message preview

	switch($post_type)
{
case 1: // Message preview

			$plugins->run_hooks_by_ref("postbit_prev", $post);

			$post = $plugins->run_hooks("postbit_prev", $post);

			break;
case 2: // Private message

			break;
case 2: // Private message

			$plugins->run_hooks_by_ref("postbit_pm", $post);

			$post = $plugins->run_hooks("postbit_pm", $post);

			break;
case 3: // Announcement

			break;
case 3: // Announcement

			$plugins->run_hooks_by_ref("postbit_announcement", $post);

			$post = $plugins->run_hooks("postbit_announcement", $post);

			break;
default: // Regular post

			break;
default: // Regular post

			$plugins->run_hooks_by_ref("postbit", $post);

			$post = $plugins->run_hooks("postbit", $post);


// Is this author on the ignore list of the current user? Hide this post
if(is_array($ignored_users) && $post['uid'] != 0 && $ignored_users[$post['uid']] == 1)


// Is this author on the ignore list of the current user? Hide this post
if(is_array($ignored_users) && $post['uid'] != 0 && $ignored_users[$post['uid']] == 1)