Vergleich inc/class_feedgeneration.php - 1.2.5 - 1.2.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: class_feedgeneration.php 2724 2007-02-07 20:03:56Z CraKteR $

 * $Id: class_feedgeneration.php 2932 2007-03-10 05:48:55Z chris $

 */

class FeedGenerator

 */

class FeedGenerator

Zeile 88Zeile 88
		{
// Ouput an Atom 1.0 formatted feed.
case "atom1.0":

		{
// Ouput an Atom 1.0 formatted feed.
case "atom1.0":

				$this->channel['date'] = date("Y-m-d\TH:i:s\Z", $this->channel['date']);

				$this->channel['date'] = gmdate("Y-m-d\TH:i:s\Z", $this->channel['date']);

				$this->xml .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$this->xml .= "<feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";

				$this->xml .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$this->xml .= "<feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";

				$this->xml .= "\t<title type=\"html\">".htmlspecialchars_uni($this->channel['title'])."</title>\n";
$this->xml .= "\t<subtitle type=\"html\">".htmlspecialchars_uni($this->channel['description'])."</subtitle>\n";

				$this->xml .= "\t<title type=\"html\"><![CDATA[".htmlspecialchars_uni($this->channel['title'])."]]></title>\n";
$this->xml .= "\t<subtitle type=\"html\"><![CDATA[".htmlspecialchars_uni($this->channel['description'])."]]></subtitle>\n";

				$this->xml .= "\t<link rel=\"self\" href=\"{$this->channel['link']}syndication.php\"/>\n";
$this->xml .= "\t<id>{$this->channel['link']}</id>\n";
$this->xml .= "\t<link rel=\"alternate\" type=\"text/html\" href=\"{$this->channel['link']}\"/>\n";
$this->xml .= "\t<updated>{$this->channel['date']}</updated>\n";

				$this->xml .= "\t<link rel=\"self\" href=\"{$this->channel['link']}syndication.php\"/>\n";
$this->xml .= "\t<id>{$this->channel['link']}</id>\n";
$this->xml .= "\t<link rel=\"alternate\" type=\"text/html\" href=\"{$this->channel['link']}\"/>\n";
$this->xml .= "\t<updated>{$this->channel['date']}</updated>\n";

				$this->xml .= "\t<generator uri=\"http://mybboard.com\">MyBB</generator>\n";

				$this->xml .= "\t<generator uri=\"http://mybboard.net\">MyBB</generator>\n";

				break;
// The default is the RSS 2.0 format.
default:

				break;
// The default is the RSS 2.0 format.
default:

Zeile 105Zeile 105
				$this->xml .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$this->xml .= "<rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
$this->xml .= "\t<channel>\n";

				$this->xml .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$this->xml .= "<rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
$this->xml .= "\t<channel>\n";

				$this->xml .= "\t\t<title>".htmlspecialchars_uni($this->channel['title'])."</title>\n";

				$this->xml .= "\t\t<title><![CDATA[".htmlspecialchars_uni($this->channel['title'])."]]></title>\n";

				$this->xml .= "\t\t<link>".$this->channel['link']."</link>\n";

				$this->xml .= "\t\t<link>".$this->channel['link']."</link>\n";

				$this->xml .= "\t\t<description>".htmlspecialchars_uni($this->channel['description'])."</description>\n";

				$this->xml .= "\t\t<description><![CDATA[".htmlspecialchars_uni($this->channel['description'])."]]></description>\n";

				$this->xml .= "\t\t<pubDate>".$this->channel['date']."</pubDate>\n";
$this->xml .= "\t\t<generator>MyBB</generator>\n";
}

				$this->xml .= "\t\t<pubDate>".$this->channel['date']."</pubDate>\n";
$this->xml .= "\t\t<generator>MyBB</generator>\n";
}

Zeile 143Zeile 143
					$this->xml .= "\t\t<updated>{$item['updated']}</updated>\n";
$this->xml .= "\t\t<link rel=\"alternate\" type=\"text/html\" href=\"{$item['link']}\" />\n";
$this->xml .= "\t\t<id>{$item['link']}</id>\n";

					$this->xml .= "\t\t<updated>{$item['updated']}</updated>\n";
$this->xml .= "\t\t<link rel=\"alternate\" type=\"text/html\" href=\"{$item['link']}\" />\n";
$this->xml .= "\t\t<id>{$item['link']}</id>\n";

					$this->xml .= "\t\t<title type=\"html\" xml:space=\"preserve\">".htmlspecialchars_uni($item['title'])."</title>\n";

					$this->xml .= "\t\t<title type=\"html\" xml:space=\"preserve\"><![CDATA[".htmlspecialchars_uni($item['title'])."]]></title>\n";

					$this->xml .= "\t\t<content type=\"html\" xml:space=\"preserve\" xml:base=\"{$item['link']}\"><![CDATA[".strip_tags($item['description'])."]]></content>\n";
$this->xml .= "\t\t<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\n";
$this->xml .= "\t</entry>\n";

					$this->xml .= "\t\t<content type=\"html\" xml:space=\"preserve\" xml:base=\"{$item['link']}\"><![CDATA[".strip_tags($item['description'])."]]></content>\n";
$this->xml .= "\t\t<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\n";
$this->xml .= "\t</entry>\n";

Zeile 153Zeile 153
				default:
$item['date'] = date("D, d M Y H:i:s O", $item['date']);
$this->xml .= "\t\t<item>\n";

				default:
$item['date'] = date("D, d M Y H:i:s O", $item['date']);
$this->xml .= "\t\t<item>\n";

					$this->xml .= "\t\t\t<title>".htmlspecialchars_uni($item['title'])."</title>\n";

					$this->xml .= "\t\t\t<title><![CDATA[".htmlspecialchars_uni($item['title'])."]]></title>\n";

					$this->xml .= "\t\t\t<link>".$item['link']."</link>\n";
$this->xml .= "\t\t\t<pubDate>".$item['date']."</pubDate>\n";
if($item['author'])

					$this->xml .= "\t\t\t<link>".$item['link']."</link>\n";
$this->xml .= "\t\t\t<pubDate>".$item['date']."</pubDate>\n";
if($item['author'])