parent
43c217d19f
commit
7fdcf5fa76
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* @copyright (c) 2012 animegame.eu
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
||||||
|
* @author jester
|
||||||
|
*/
|
||||||
|
header("Content-type: text/xml");
|
||||||
|
echo '<?xml version="1.0" encoding="utf-8" ?>';
|
||||||
|
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
|
||||||
|
|
||||||
|
$nachrichten = mysql_query('SELECT * FROM ff11_news order by id DESC LIMIT 10');
|
||||||
|
|
||||||
|
?>
|
||||||
|
<rss version="2.0">
|
||||||
|
<channel>
|
||||||
|
<title><?php echo $GLOBALS['server_url_short']; ?> News</title>
|
||||||
|
<link><?php echo $GLOBALS['server_url_long']; ?></link>
|
||||||
|
<description></description>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
while ($row = mysql_fetch_assoc($nachrichten))
|
||||||
|
{
|
||||||
|
$komments = mysql_fetch_assoc(mysql_query('SELECT count(id) as anzahl FROM ff11_komments WHERE news_id='.$row['id']));
|
||||||
|
$komments = $komments['anzahl'];
|
||||||
|
$text = htmlspecialchars($row['text']);
|
||||||
|
$link = $GLOBALS['server_url_long'].'/ag/index.php?as=news&id='.$row['id'].'';
|
||||||
|
$link = htmlentities($link);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<item>
|
||||||
|
<title><?php echo $row['betreff'].' - Antworten ('.$komments.')'; ?></title>
|
||||||
|
<link><?php echo $link; ?></link>
|
||||||
|
<description><?php echo $text; ?></description>
|
||||||
|
<guid>
|
||||||
|
<?php echo $row['id']; ?>
|
||||||
|
</guid>
|
||||||
|
</item>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
Loading…
Reference in new issue