source: trunk/flash/index.php

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 1.5 KB
Line 
1<?
2/***************************************************************************
3*
4* IMPORTANT: This is a commercial product made by BoonEx Ltd. and cannot be modified for other than personal usage.
5* This product cannot be redistributed for free or a fee without written permission from BoonEx Ltd.
6* This notice may not be removed from the source code.
7*
8***************************************************************************/
9
10if(!isset($sRayHeaderPath)) $sRayHeaderPath = "modules/global/inc/header.inc.php";
11if(!file_exists($sRayHeaderPath))
12{
13 header("Location:install/index.php");
14 exit;
15}
16
17$sModule = isset($sModule) ? $sModule : $_REQUEST['module'];
18$sApp = isset($sApp) ? $sApp : $_REQUEST['app'];
19
20require_once('../inc/header.inc.php');
21require_once($sIncPath . 'functions.inc.php');
22
23if(secureCheckWidgetName($sModule) && file_exists($sRayHeaderPath) && !empty($sModule) && !empty($sApp) && secureCheckWidgetName($sApp))
24{
25 require_once(BX_DIRECTORY_PATH_INC . "db.inc.php");
26 require_once(BX_DIRECTORY_PATH_INC . "utils.inc.php");
27 require_once($sRayHeaderPath);
28 require_once($sIncPath . "content.inc.php");
29 require_once($sModulesPath . $sModule . "/inc/header.inc.php");
30 require_once($sModulesPath . $sModule . "/inc/constants.inc.php");
31}
32else exit;
33
34$aParameters = Array();
35foreach($aModules[$sApp]['parameters'] as $sParameter)
36 $aParameters[$sParameter] = isset($$sParameter) ? $$sParameter : $_REQUEST[$sParameter];
37
38echo getApplicationContent($sModule, $sApp, $aParameters);
39?>
Note: See TracBrowser for help on using the repository browser.