Vergleich syndication.php - 1.4.9 - 1.4.12

  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: syndication.php 4383 2009-06-18 11:25:58Z Tomm $

 * $Id: syndication.php 4847 2010-03-30 01:41:16Z RyanGordon $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 127Zeile 127

if(!empty($firstposts))
{


if(!empty($firstposts))
{

    $firstpostlist = "pid IN(".$db->escape_string(implode(',', $firstposts)).")";
$query = $db->simple_select("posts", "message, edittime, tid, fid", $firstpostlist, array('order_by' => 'dateline', 'order_dir' => 'desc'));
while($post = $db->fetch_array($query))
{

	$firstpostlist = "pid IN(".$db->escape_string(implode(',', $firstposts)).")";
$query = $db->simple_select("posts", "message, edittime, tid, fid, pid", $firstpostlist, array('order_by' => 'dateline', 'order_dir' => 'desc'));
while($post = $db->fetch_array($query))
{

		$parser_options = array(
"allow_html" => $forumcache[$post['fid']]['allowhtml'],
"allow_mycode" => $forumcache[$post['fid']]['allowmycode'],

		$parser_options = array(
"allow_html" => $forumcache[$post['fid']]['allowhtml'],
"allow_mycode" => $forumcache[$post['fid']]['allowmycode'],

Zeile 139Zeile 139
			"filter_badwords" => 1
);


			"filter_badwords" => 1
);


        $items[$post['tid']]['description'] = $parser->parse_message($post['message'], $parser_options);
$items[$post['tid']]['updated'] = $post['edittime'];
$feedgenerator->add_item($items[$post['tid']]);
}




























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

$query2 = $db->simple_select("attachments", "*", "pid=".$post['pid']);
while($attachment = $db->fetch_array($query2))
{
$ext = get_extension($attachment['filename']);
$attachment['icon'] = get_attachment_icon($ext);
if($ext == "jpeg" || $ext == "gif" || $ext == "bmp" || $ext == "png" || $ext == "jpg")
{
if(stripos($parsed_message, "[attachment=".$attachment['aid']."]") !== false)
{
eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");

$parsed_message = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $parsed_message);
}
}
else
{
if(stripos($parsed_message, "[attachment=".$attachment['aid']."]") !== false)
{
eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");

$parsed_message = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $parsed_message);
}
}
}

$items[$post['tid']]['description'] = $parsed_message;
$items[$post['tid']]['updated'] = $post['edittime'];
$feedgenerator->add_item($items[$post['tid']]);
}

}

// Then output the feed XML.

}

// Then output the feed XML.