This repository has been archived by the owner on Jan 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·84 lines (71 loc) · 2.69 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* @package CLE
* @subpackage SysFiles
* @author Rene Kliment <[email protected]>
* @version 1.1
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License - Version 3, 19 November 2007
*
* This software is dual-licensed - it is also available under a commercial license,
* so there's possibility to use this software or its parts in software which is not license-compatible.
* For more information about licensing, contact the author.
*/
/* Including of the whole CL framework */
require_once './sys/CL/class.cl.php';
require_once './sys/CL/class.cl.users.php';
require_once './sys/CL/class.cl.templates.php';
require_once './sys/CL/class.cl.images.php';
require_once './sys/CL/class.cl.seo.php';
require_once './sys/CL/class.cl.xety.php';
/* Including of the CLE engine */
require_once './sys/CLE/class.cle.ibdi.php';
require_once './sys/CLE/class.cle.modules.php';
require_once './sys/CLE/class.cle.basemodule.php';
require_once './sys/CLE/class.cle.json.php';
/* CL base object */
$_CL = CL::getInstance();
/* Some object and arrays related to (auto)loading of modules */
$_autoloadArray = array();
$_setVarsArray = array();
$_addVarsArray = array();
/* Array of modules, that support SOAP | JSON */
$_jsonEnabledModules = array();
if (CL::getConf('CLE_Ibdi/enabled') == 1) {
require_once './sys/external/dibi.min.php';
if (!CLE_Ibdi::getInstance()->connect() AND CL::getConf('CLE_Ibdi/terminateScriptOnError') == 1) {
exit('
CLE error message: Database connection failed, script execution terminated.
<br /><br />
Please check your database connection settings in conf/config.xml<br />
(if you do not wish to automatically start DB connection, you can as well deactivate it).
<br /><br />
If you do not wish CLE to terminate script execution on DB connection error,<br />
you can set that in configuration file as well.
<br /><br />
');
}
}
/* Autoload of classes */
function __autoload($class)
{
global $_autoloadArray;
if (in_array($class, array_keys($_autoloadArray))) {
require_once $_autoloadArray[$class];
}
}
/* Let's find out, what we will include and get some $_id stuff, if available */
$_fileToInclude = CL_SEO::getInstance()->getFileToInclude().'.php';
/* Let's fire up modules */
$_CLE_Modules = CLE_Modules::getInstance();
/* Let's load some page! */
require_once $_fileToInclude;
/*
* If "normal page" is requested
* (not just some file-sending page)
* It sets some variables and echoes the whole HTML code
* (viz that file)
*/
if (@!defined(CLE_DONT_LOAD_LAYOUT)) {
require_once './sys/page.php';
}
?>