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:
36
e107_plugins/faqs/e_url.php
Normal file
36
e107_plugins/faqs/e_url.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
@@ -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"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user