4
6
* StupidMVC, The stupidly designed
9
11
* Set to FALSE to turn off errors.
11
13
define ("DISPLAY_ERROR", TRUE);
12
14
if (DISPLAY_ERROR) {
13
ini_set ('display_startup_errors',1);
14
ini_set ('display_errors',1);
15
ini_set ('display_startup_errors', 1);
16
ini_set ('display_errors', 1);
15
17
error_reporting(-1);
19
ini_set ('display_startup_errors', 0);
20
ini_set ('display_errors', 0);
18
24
/* ***************************************************************************
19
25
* Do not touch anything bellow this point.
20
26
* ************************************************************************** */
24
$_stupid_cfg = json_decode (file_get_contents ("./cfg.json"));
27
* The system wide definitions.
28
/* Load the cfg file */
29
global $_stupid_cfg = json_decode (file_get_contents ("./cfg.json"));
31
/* The system wide definitions. */
29
32
define ("DS", DIRECTORY_SEPARATOR);
30
33
define ("ROOT_DIR", dirname(__FILE__) . DS);
31
34
define ("COMMON_DIR", ROOT_DIR . "Common" . DS);
32
35
define ("APP_DIR", ROOT_DIR . "Application" . DS);
37
/* Load in the common files. */
34
38
foreach (glob(COMMON_DIR . "*.php") as $php_file) {
35
39
require ($php_file);
38
/* *****************************************************************************
40
* ************************************************************************** */