2015-04-03 18:39:56 -07:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* e107 Bootstrap CMS
|
|
|
|
*
|
2016-12-02 20:44:17 +00:00
|
|
|
* Copyright (C) 2008-2016 e107 Inc (e107.org)
|
2015-04-03 18:39:56 -07:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
// v2.x Standard - Simple mod-rewrite module.
|
|
|
|
|
|
|
|
class rss_menu_url // plugin-folder + '_url'
|
|
|
|
{
|
|
|
|
function config()
|
|
|
|
{
|
|
|
|
$config = array();
|
|
|
|
|
|
|
|
$config['rss'] = array(
|
2016-12-02 20:44:17 +00:00
|
|
|
'alias' => 'feed',
|
2015-06-16 15:14:39 -07:00
|
|
|
'regex' => '^{alias}/(.*)/rss/?([\d]*)?$',
|
|
|
|
'sef' => '{alias}/{rss_url}/rss/{rss_topicid}',
|
2015-04-03 18:39:56 -07:00
|
|
|
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=2&topic=$2'
|
|
|
|
);
|
|
|
|
|
|
|
|
$config['atom'] = array(
|
2016-12-02 20:44:17 +00:00
|
|
|
'alias' => 'feed',
|
2015-06-16 15:14:39 -07:00
|
|
|
'regex' => '^{alias}/(.*)/atom/?([\d]*)?$',
|
|
|
|
'sef' => '{alias}/{rss_url}/atom/{rss_topicid}',
|
2015-04-03 18:39:56 -07:00
|
|
|
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=4&topic=$2'
|
|
|
|
);
|
|
|
|
|
|
|
|
$config['index'] = array(
|
2016-12-02 20:44:17 +00:00
|
|
|
'alias' => 'feed',
|
2015-06-16 15:14:39 -07:00
|
|
|
'regex' => '^{alias}/?$',
|
|
|
|
'sef' => '{alias}',
|
2015-04-03 18:39:56 -07:00
|
|
|
'redirect' => '{e_PLUGIN}rss_menu/rss.php',
|
|
|
|
);
|
|
|
|
|
|
|
|
return $config;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|