1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-21 06:52:28 +01:00

42 lines
939 B
PHP

<?php
/*
* e107 Bootstrap CMS
*
* Copyright (C) 2008-2014 e107 Inc (e107.org)
* 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(
'regex' => '^feed/(.*)/rss/?([\d]*)?$',
'sef' => 'feed/{rss_url}/rss/{rss_topicid}',
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=2&topic=$2'
);
$config['atom'] = array(
'regex' => '^feed/(.*)/atom/?([\d]*)?$',
'sef' => 'feed/{rss_url}/atom/{rss_topicid}',
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=4&topic=$2'
);
$config['index'] = array(
'regex' => '^feed/?$',
'sef' => 'feed',
'redirect' => '{e_PLUGIN}rss_menu/rss.php',
);
return $config;
}
}