-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·64 lines (54 loc) · 1.6 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
59
60
61
62
63
64
<?php
/**
* ChinaTown - RAD LAMP SaaS FrameWork.
* Complete User Registration and Management. Secure, Fast, Small and Light.
*
* THIS CODE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*
* PHP version 7.2
*
* @package ChinaTown
* @category LAMP SaaS FrameWork
* @see https://ampae.com/chinatown/
* @license https://ampae.com/chinatown/LICENSE
* @version HG: <7.1.1>
* @author AMPAE <info@ampae.com>
* @copyright 2009 - 2019 AMPAE
**/
/**
* index
*
* @package CT_CORE
* @category Declaration
* @author V Bugroff <bugroff@protonmail.com>
* @author M Karodine <usr04@protonmail.com>
*
* @since 0.1.1
**/
/* Absolute path to the application directory. */
define('ABSPATH', __DIR__.DIRECTORY_SEPARATOR);
define('DIR_CONFIG', 'config');
define('DIR_LIBS', 'libs');
include ABSPATH.DIR_LIBS.DIRECTORY_SEPARATOR.'php'.DIRECTORY_SEPARATOR.'functions.php';
$tmpConfigFile = ABSPATH.DIR_CONFIG.DIRECTORY_SEPARATOR.'config.php';
$tmpGlobalConfig = readConfig($tmpConfigFile);
/* Set Encoding. */
if (extension_loaded('mbstring')) {
mb_internal_encoding(APP_ENCODING);
}
/* Error display mode */
if (DEBUG_MODE) {
ini_set('display_errors', 1);
error_reporting(E_ALL);
set_time_limit(30);
} else {
ini_set('display_errors', 0);
error_reporting(0);
set_time_limit(0);
}
/* Load main that does it all like load libraries and classes etc. */
include 'core.php';
/* All done, exiting */
exit(0);