Vergleich syndication.php - 1.4.5 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
<?php
/**
* MyBB 1.4

<?php
/**
* MyBB 1.4

 * Copyright � 2008 MyBB Group, All Rights Reserved

 * Copyright © 2008 MyBB Group, All Rights Reserved

 *
* 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 4304 2009-01-02 01:11:56Z chris $

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

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 33Zeile 33
{
$thread_limit = 50;
}

{
$thread_limit = 50;
}

else if(!$thread_limit)

else if(!$thread_limit || $thread_limit < 0)

{
$thread_limit = 20;
}

{
$thread_limit = 20;
}

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.