forked from Logiks/Logiks-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
39 lines (31 loc) · 818 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
34
35
36
37
38
39
<?php
/*
* This is default page for any request landing up on the server apart from REST/services requests.
*
* Author: Bismay Kumar Mohapatra bismay4u@gmail.com
* Author: Kshyana Prava kshyana23@gmail.com
* Version: 2.0
*/
/*
* Enable Debug mode
*/
$isDebug = array_key_exists('debug', $_REQUEST);
if($isDebug) {
ini_set('display_errors', 1);
error_reporting(1);
define("MASTER_DEBUG_MODE",true);
} else {
ini_set('display_errors', 0);
error_reporting(0);
}
define("MASTER_DEBUG_MODE",true);
ini_set('display_errors', 1);
error_reporting(-1);
// ini_set('display_errors', 'On');
define ('ROOT', dirname(__FILE__) . '/');
$GLOBALS['LOGIKS']["_SERVER"]=$_SERVER;
//Start the flow
require_once ('api/initialize.php');
//Time To Start Router System
require_once ('api/router.php');
?>