4
* StupidMVC, The stupidly designed
9
* Set to FALSE to turn off errors.
11
define ("DISPLAY_ERROR", TRUE);
13
ini_set ('display_startup_errors',1);
14
ini_set ('display_errors',1);
18
/* ***************************************************************************
19
* Do not touch anything bellow this point.
20
* ************************************************************************** */
24
$_stupid_cfg = json_decode (file_get_contents ("./cfg.json"));
27
* The system wide definitions.
29
define ("DS", DIRECTORY_SEPARATOR);
30
define ("ROOT_DIR", dirname(__FILE__) . DS);
31
define ("COMMON_DIR", ROOT_DIR . "Common" . DS);
32
define ("APP_DIR", ROOT_DIR . "Application" . DS);
34
foreach (glob(COMMON_DIR . "*.php") as $php_file) {
38
/* *****************************************************************************
40
* ************************************************************************** */