Cheetah
index.php
Go to the documentation of this file.
1 <?php
2 
8 if(!isset($sRayHeaderPath)) $sRayHeaderPath = "modules/global/inc/header.inc.php";
9 if(!file_exists($sRayHeaderPath)) {
10  header("Location:install/index.php");
11  exit;
12 }
13 
14 $sModule = isset($sModule) ? $sModule : $_REQUEST['module'];
15 $sApp = isset($sApp) ? $sApp : $_REQUEST['app'];
16 
17 require_once('../inc/header.inc.php');
18 require_once($sIncPath . 'functions.inc.php');
19 
20 if(secureCheckWidgetName($sModule) && file_exists($sRayHeaderPath) && !empty($sModule) && !empty($sApp) && secureCheckWidgetName($sApp)) {
21  require_once(CH_DIRECTORY_PATH_INC . "db.inc.php");
22  require_once(CH_DIRECTORY_PATH_INC . "utils.inc.php");
23  require_once($sRayHeaderPath);
24  require_once($sIncPath . "content.inc.php");
25  require_once($sModulesPath . $sModule . "/inc/header.inc.php");
26  require_once($sModulesPath . $sModule . "/inc/constants.inc.php");
27 } else exit;
28 
29 $aParameters = Array();
30 foreach($aModules[$sApp]['parameters'] as $sParameter)
31  $aParameters[$sParameter] = isset($$sParameter) ? $$sParameter : $_REQUEST[$sParameter];
32 
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition: URI.MungeResources.txt:10
$sIncPath
$sIncPath
Definition: header.inc.php:64
php
$sModule
if(!file_exists($sRayHeaderPath)) $sModule
Definition: index.php:14
$sModulesPath
$sModulesPath
Definition: header.inc.php:53
secureCheckWidgetName
secureCheckWidgetName($sWidget)
Definition: functions.inc.php:8
exit
if(secureCheckWidgetName($sModule) &&file_exists($sRayHeaderPath) &&!empty($sModule) &&!empty($sApp) &&secureCheckWidgetName($sApp)) else exit
Definition: index.php:20
$_REQUEST
$_REQUEST['action']
Definition: cmd.php:11
getApplicationContent
getApplicationContent($sModule, $sApp, $aParamValues=array(), $bInline=false, $bEmbedCode=false, $sHtmlId="")
Definition: content.inc.php:166
$aModules
$aModules
Definition: constants.inc.php:29
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
$sApp
$sApp
Definition: index.php:15
$aParameters
$aParameters
Definition: index.php:29