You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
712 B

2 years ago
<?php
if(version_compare(PHP_VERSION,'5.6.0','<')) die('require PHP > 5.6.0 !');
$INSTALL_PATH = str_replace('\\','/',dirname($_SERVER['SCRIPT_NAME']));
if($INSTALL_PATH==="/"){
$INSTALL_PATH="/";
}else{
$INSTALL_PATH= '/'. trim($INSTALL_PATH,'/').'/';
}
define('INSTALL_PATH',$INSTALL_PATH);//安装目录
define('APP_PATH', __DIR__ . '/LKT/');
define('REAL_PATH', realpath('./') . '/');
//设置目录权限
chmod(REAL_PATH, 0777);
$_SESSION["APP_PATH"]=APP_PATH;
$_SESSION["INSTALL_PATH"]=INSTALL_PATH;
clearstatcache();
$path ='../'.basename(dirname(__FILE__)).'/';
if(!is_file('./data/install.lock')){
header('Location: ./install/index.php');
}else{
header("Location: ./LKT/index.php");
}
?>