Vergleich inc/functions_post.php - 1.4.4 - 1.4.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: functions_post.php 4265 2008-11-08 23:52:49Z Tikitiki $

 * $Id: functions_post.php 4538 2009-11-25 08:28:55Z RyanGordon $

 */

/**

 */

/**

Zeile 102Zeile 102
			}
break;
}

			}
break;
}













	
// Sanatize our custom profile fields for use in templates, if people choose to use them
foreach($post as $post_field => $field_value)
{
if(substr($post_field, 0, 3) != 'fid')
{
continue;
}
$post[$post_field] = htmlspecialchars_uni($field_value);
}


	if(!$postcounter)
{ // Used to show the # of the post
if($page > 1)

	if(!$postcounter)
{ // Used to show the # of the post
if($page > 1)

Zeile 261Zeile 271
		if($post['userstars'] && $post['starimage'] && $post['stars'])
{
$post['userstars'] .= "<br />";

		if($post['userstars'] && $post['starimage'] && $post['stars'])
{
$post['userstars'] .= "<br />";

		}

		}

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

// Determine the status to show for the user (Online/Offline/Away)
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];
if($post['lastactive'] > $timecut && ($post['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1) && $post['lastvisit'] != $post['lastactive'])

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

// Determine the status to show for the user (Online/Offline/Away)
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];
if($post['lastactive'] > $timecut && ($post['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1) && $post['lastvisit'] != $post['lastactive'])

		{

		{

			eval("\$post['onlinestatus'] = \"".$templates->get("postbit_online")."\";");
}
else

			eval("\$post['onlinestatus'] = \"".$templates->get("postbit_online")."\";");
}
else

Zeile 308Zeile 318
		else
{
$post['useravatar'] = "";

		else
{
$post['useravatar'] = "";

		}


		}


		eval("\$post['button_find'] = \"".$templates->get("postbit_find")."\";");

if($mybb->settings['enablepms'] == 1 && $post['receivepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");

		eval("\$post['button_find'] = \"".$templates->get("postbit_find")."\";");

if($mybb->settings['enablepms'] == 1 && $post['receivepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");

		}

		}

		
if($post['website'] != "")
{
$post['website'] = htmlspecialchars_uni($post['website']);
eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");

		
if($post['website'] != "")
{
$post['website'] = htmlspecialchars_uni($post['website']);
eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");

		}

		}

		else
{
$post['button_www'] = "";
}

if($post['hideemail'] != 1 && $mybb->usergroup['cansendemail'] == 1)

		else
{
$post['button_www'] = "";
}

if($post['hideemail'] != 1 && $mybb->usergroup['cansendemail'] == 1)

		{

		{

			eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");

			eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");

		}

		}

		else
{
$post['button_email'] = "";

		else
{
$post['button_email'] = "";

		}


		}


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

Zeile 369Zeile 379
		}

eval("\$post['user_details'] = \"".$templates->get("postbit_author_user")."\";");

		}

eval("\$post['user_details'] = \"".$templates->get("postbit_author_user")."\";");

	}

	}

	else
{ // Message was posted by a guest or an unknown user
$post['username'] = $post['username'];

	else
{ // Message was posted by a guest or an unknown user
$post['username'] = $post['username'];

Zeile 474Zeile 484
			if($post['visible'] == 0)
{
$invisiblepost = 1;

			if($post['visible'] == 0)
{
$invisiblepost = 1;

			}
}
else
{

			}
}
else
{

			$post['inlinecheck'] = "";
}
$post['postlink'] = get_post_link($post['pid'], $post['tid']);

			$post['inlinecheck'] = "";
}
$post['postlink'] = get_post_link($post['pid'], $post['tid']);

Zeile 504Zeile 514
			if($mybb->settings['logip'] == "show")
{
eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_show")."\";");

			if($mybb->settings['logip'] == "show")
{
eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_show")."\";");

			}

			}

			else if($mybb->settings['logip'] == "hide" && $ismod)
{
eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_hiden")."\";");

			else if($mybb->settings['logip'] == "hide" && $ismod)
{
eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_hiden")."\";");

Zeile 517Zeile 527
		else
{
$post['iplogged'] = "";

		else
{
$post['iplogged'] = "";

		}


		}


	}

if($post['smilieoff'] == 1)

	}

if($post['smilieoff'] == 1)

Zeile 526Zeile 536
		$parser_options['allow_smilies'] = 0;
}


		$parser_options['allow_smilies'] = 0;
}


	$post['message'] = $parser->parse_message($post['message'], $parser_options);


 
	// If we have incoming search terms to highlight - get it done.

	// If we have incoming search terms to highlight - get it done.

	global $highlight_cache;

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

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

		if(!is_array($highlight_cache))
{
$highlight_cache = build_highlight_array($mybb->input['highlight']);
}
if(is_array($highlight_cache))
{
$post['message'] = preg_replace(array_keys($highlight_cache), $highlight_cache, $post['message']);
$post['subject'] = preg_replace(array_keys($highlight_cache), $highlight_cache, $post['subject']);
}

		$parser_options['highlight'] = $mybb->input['highlight'];
$post['subject'] = $parser->highlight_message($post['subject'], $parser_options['highlight']);








	}

	}

 
	
$post['message'] = $parser->parse_message($post['message'], $parser_options);


get_post_attachments($id, $post);



get_post_attachments($id, $post);


Zeile 593Zeile 595
			// 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)
{

				$lang->postbit_currently_ignoring_user = $lang->sprintf($lang->postbit_currently_ignoring_user, $post['username']);

				$ignored_message = $lang->sprintf($lang->postbit_currently_ignoring_user, $post['username']);

				eval("\$ignore_bit = \"".$templates->get("postbit_ignored")."\";");
$post_visibility = "display: none;";
}

				eval("\$ignore_bit = \"".$templates->get("postbit_ignored")."\";");
$post_visibility = "display: none;";
}