-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·59 lines (44 loc) · 1.29 KB
/
index.php
File metadata and controls
executable file
·59 lines (44 loc) · 1.29 KB
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
<?php
/*
* @author: firewood
* @time: 2012-01-13
* @description: Team Website
*/
/*
* @description: This file is the entrance of the entire porgram
* Include the basic config of the website
* Import the basic class and function
* Guide into the system master file
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Param: no-cache");
//the certificate to enter all file
define('IS_ACTIVE',true);
//the file format
define('C_File_EXT', '.php');
//system separator
define('C_Sep', DIRECTORY_SEPARATOR);
//main dir
define('C_Dir_Current', '.'.C_Sep);
//define execture environment
define('ENVIRONMENT', true);
//error reporting
if(defined('ENVIRONMENT') && ENVIRONMENT == true){
ini_set("display_errors", 1);
error_reporting(E_ALL);
ini_set('error_log', C_Dir_Current.'log.txt');
}
else
ini_set("display_errors", 0);
//the entrance file of the program
define('C_File_SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
//the system dir
chdir(dirname(__FILE__));
define('C_File_Path_Main', dirname(__FILE__). C_Sep);
//define('C_File_Path_Sys', realpath('system').C_Sep);
//user define const
//require C_File_Path_Main.C_Sep.'config'.C_Sep.'config'.C_File_Format;
//load core program
require C_File_Path_Main.'system'.C_Sep.'index.system.php';
?>