Cheetah
index.php
Go to the documentation of this file.
1 <?php
2 
8  require_once("../inc/header.inc.php");
9 
10  $GLOBALS['aRequest'] = explode('/', $_GET['r']);
11 
12  if ($GLOBALS['aRequest'][1] == 'admin' || $GLOBALS['aRequest'][1] == 'administration')
13  $GLOBALS['iAdminPage'] = 1;
14 
15  require_once(CH_DIRECTORY_PATH_INC . "design.inc.php");
16  require_once(CH_DIRECTORY_PATH_CLASSES . 'ChWsbModuleDb.php');
17 
18  $sName = process_db_input(array_shift($GLOBALS['aRequest']), CH_TAGS_STRIP);
19 
21  $GLOBALS['aModule'] = $oDb->getModuleByUri($sName);
22 
23  if(empty($GLOBALS['aModule']))
25  include(CH_DIRECTORY_PATH_MODULES . $GLOBALS['aModule']['path'] . 'request.php');
process_db_input
process_db_input($sText, $iStripTags=0)
Definition: utils.inc.php:256
$oDb
$oDb
Definition: index.php:20
ChWsbRequest\moduleNotFound
static moduleNotFound($sModule)
Definition: ChWsbRequest.php:82
$sName
$sName
Definition: index.php:18
php
ChWsbModuleDb
Definition: ChWsbModuleDb.php:12
$_GET
$_GET['debug']
Definition: index.php:67
$GLOBALS
$GLOBALS['aRequest']
Definition: index.php:10
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition: utils.inc.php:22
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7