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 |
|
---|
10 | if(!isset($sRayHeaderPath)) $sRayHeaderPath = "modules/global/inc/header.inc.php";
|
---|
11 | if(!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 |
|
---|
20 | require_once('../inc/header.inc.php');
|
---|
21 | require_once($sIncPath . 'functions.inc.php');
|
---|
22 |
|
---|
23 | if(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 | }
|
---|
32 | else exit;
|
---|
33 |
|
---|
34 | $aParameters = Array();
|
---|
35 | foreach($aModules[$sApp]['parameters'] as $sParameter)
|
---|
36 | $aParameters[$sParameter] = isset($$sParameter) ? $$sParameter : $_REQUEST[$sParameter];
|
---|
37 |
|
---|
38 | echo getApplicationContent($sModule, $sApp, $aParameters);
|
---|
39 | ?> |
---|
Note:
See
TracBrowser
for help on using the repository browser.