Vergleich inc/functions_post.php - 1.4.6 - 1.4.15

  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 4342 2009-04-07 02:23:30Z Tikitiki $

 * $Id: functions_post.php 5379 2011-02-21 11:06:42Z Tomm $

 */

/**

 */

/**

Zeile 536Zeile 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 603Zeile 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;";
}