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

Added simple e_url.php example.

This commit is contained in:
Cameron
2015-01-23 15:26:23 -08:00
parent a2af913640
commit a74a4bace3
3 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
<?php
/*
* e107 Bootstrap CMS
*
* Copyright (C) 2008-2015 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* IMPORTANT: Make sure the redirect script uses the following code to load class2.php:
*
* if (!defined('e107_INIT'))
* {
* require_once("../../class2.php");
* }
*
*/
if (!defined('e107_INIT')) { exit; }
// v2.x Standard - Simple mod-rewrite module.
class faqs_url // plugin-folder + '_url'
{
function config()
{
$config = array();
$config[] = array(
'regex' => '^faqs/?$',
'redirect' => '{e_PLUGIN}faqs/faqs.php',
);
return $config;
}
}

View File

@@ -14,9 +14,10 @@
* $Author$
*/
// SUBJECT OF REMOVAL
require_once ("../../class2.php");
if (!defined('e107_INIT'))
{
require_once("../../class2.php");
}
if(file_exists(e_PLUGIN."faqs/controllers/list.php"))
{