1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fixes #948 - RSS admin area rewrite. RSS menu updated for Bootstrap and RSS sef-urls added.

This commit is contained in:
Cameron
2015-04-03 18:39:56 -07:00
parent 11f199e4ef
commit 5be3a86e71
9 changed files with 694 additions and 333 deletions

View File

@@ -19,9 +19,13 @@ Query string: content_type.rss_type.[topic id]
Plugins should use an e_rss.php file in their plugin folder
----------------------------------------------------------------
*/
if (!defined('e107_INIT'))
{
require_once('../../class2.php');
}
require_once('../../class2.php');
$e107 = e107::getInstance();
if (!$e107->isInstalled('rss_menu'))
{
header('Location: '.e_BASE.'index.php');
@@ -56,7 +60,14 @@ else
}
// Query handler
if (e_QUERY)
if(!empty($_GET))
{
$content_type = $tp->toDB($_GET['cat']);
$rss_type = intval(varset($_GET['type'],0));
$topic_id = $tp->toDB($_GET['topic'],'');
}
elseif (e_QUERY)
{
$tmp = explode('.', e_QUERY);
$content_type = $tp->toDB($tmp[0]);
@@ -64,6 +75,7 @@ if (e_QUERY)
$topic_id = $tp->toDB($tmp[2],'');
}
// List available rss feeds
if (!$rss_type)
{ // Display list of all feeds