forked from Chielus/InfoScreen
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
58 lines (44 loc) · 1.56 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
<?php
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*/
define('ENVIRONMENT', 'development');
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL | E_NOTICE);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
/*
* -------------------------------------------------------------------
* PATH DETECTION FOR RELIABILITY (do not edit)
* -------------------------------------------------------------------
*/
// the location of this file
$base_path = str_replace(pathinfo(__FILE__, PATHINFO_BASENAME), '', __FILE__);
define('BASEPATH', str_replace("\\", "/", $base_path));
// the location of the system folder
$system_path = BASEPATH . "system";
if (realpath($system_path) !== FALSE)
$system_path = realpath($system_path) . '/';
$system_path = rtrim($system_path, '/') . '/';
if(!is_dir($system_path))
exit('The system folder could not be found, please check your installation.');
define('SYSTEMPATH', str_replace("\\", "/", $system_path));
/*
* -------------------------------------------------------------------
* FIRE UP THE TURTLES! (do not edit)
* -------------------------------------------------------------------
*/
require_once (SYSTEMPATH . "FlatTurtle.php");