2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
+ ----------------------------------------------------------------------------+
|
|
|
|
| e107 website system
|
|
|
|
|
|
2016-12-02 20:44:17 +00:00
|
|
|
| Copyright (C) 2008-2016 e107 Inc (e107.org)
|
2006-12-02 04:36:16 +00:00
|
|
|
| http://e107.org
|
2009-11-18 01:06:08 +00:00
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
|
| Released under the terms and conditions of the
|
|
|
|
| GNU General Public License (http://gnu.org).
|
|
|
|
|
|
|
|
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/e_meta.php,v $
|
2010-02-10 18:18:01 +00:00
|
|
|
| $Revision$
|
|
|
|
| $Date$
|
|
|
|
| $Author$
|
2006-12-02 04:36:16 +00:00
|
|
|
+----------------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
2012-10-24 21:14:00 +00:00
|
|
|
global $PLUGINS_DIRECTORY;
|
|
|
|
|
|
|
|
$tp = e107::getParser();
|
|
|
|
$sql = e107::getDb();
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2015-04-03 18:39:56 -07:00
|
|
|
if(USER_AREA && $sql->select("rss", "*", "rss_class='0' AND rss_limit>0 ORDER BY rss_name"))
|
2009-09-18 19:05:50 +00:00
|
|
|
{
|
2015-04-03 18:39:56 -07:00
|
|
|
while($row = $sql->fetch())
|
|
|
|
{
|
|
|
|
if(strpos($row['rss_url'], "*") === false) // Wildcard topic_id's should not be listed
|
2008-12-13 12:34:53 +00:00
|
|
|
{
|
2015-04-03 18:39:56 -07:00
|
|
|
// $url = SITEURL.$PLUGINS_DIRECTORY."rss_menu/rss.php?".$tp->toHTML($row['rss_url'], TRUE, 'constants, no_hook, emotes_off').".2";
|
|
|
|
// $url .= ($row['rss_topicid']) ? ".".$row['rss_topicid'] : "";
|
|
|
|
|
2015-04-03 19:23:55 -07:00
|
|
|
$url2 = rtrim(SITEURL,'/') . e107::url('rss_menu','rss', $row);
|
|
|
|
$url4 = rtrim(SITEURL,'/') . e107::url('rss_menu','atom', $row);
|
2015-04-03 18:39:56 -07:00
|
|
|
|
2009-09-18 19:05:50 +00:00
|
|
|
$name = $tp->toHTML($row['rss_name'], TRUE, 'no_hook, emotes_off');
|
2015-04-03 18:39:56 -07:00
|
|
|
|
|
|
|
echo "<link rel='alternate' type='application/rss+xml' title='".htmlspecialchars(SITENAME, ENT_QUOTES, 'utf-8')." ".htmlspecialchars($name, ENT_QUOTES, 'utf-8')."' href='".$url2."' />\n";
|
|
|
|
echo "<link rel='alternate' type='application/atom+xml' title='".htmlspecialchars(SITENAME, ENT_QUOTES, 'utf-8')." ".htmlspecialchars($name, ENT_QUOTES, 'utf-8')."' href='".$url4."' />\n";
|
|
|
|
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
}
|
2009-09-18 19:05:50 +00:00
|
|
|
}
|
2007-02-11 20:09:19 +00:00
|
|
|
?>
|