-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
35 lines (26 loc) · 894 Bytes
/
start.php
File metadata and controls
35 lines (26 loc) · 894 Bytes
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
<?php
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
define('APP_DEBUG',true);
define('APP_PATH','./app/');
define('RUNTIME_PATH','./Runtime/');
define('UPLOAD_PATH', dirname(__FILE__) . '/Uploads/client/');
define('UPLOAD_PATH_DIR', '/Uploads/client/');
/* 后台超级权限用户 开发时可设置 */
define('ALL_RBAC_U','');
if (ini_get('magic_quotes_gpc')) {
function stripslashesRecursive(array $array)
{
foreach ($array as $k => $v) {
if (is_string($v)) {
$array[$k] = stripslashes(trim($v));
} else if (is_array($v)) {
$array[$k] = stripslashesRecursive($v);
}
}
return $array;
}
$_GET = stripslashesRecursive($_GET);
$_POST = stripslashesRecursive($_POST);
}
require './Core/core.php';