-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
43 lines (27 loc) · 825 Bytes
/
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
<?php
/* This is where everything starts.
* All request starts, parsed and processed here.
*/
if ($_SERVER['SERVER_NAME'] == 'localhost') {
define('ENVIRONMENT', 'development');
} else {
define('ENVIRONMENT', 'production');
}
/* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
if (defined('ENVIRONMENT')) {
switch (ENVIRONMENT) {
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
ini_set('display_errors', 0);
break;
default:
exit('The application environment is not set correctly.');
}
}
require_once "system/World.php";