| | <?php |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | header('Content-Type:text/html;charset=utf-8'); |
| | |
| | if(version_compare(PHP_VERSION,'5.5.0','<')) die('PHP版本需要>=5.5,请升级【PHP version requires > = 5.5,please upgrade】'); |
| | |
| | @ini_set('max_execution_time', '0'); |
| | |
| | @ini_set("memory_limit",'-1'); |
| | |
| | define('ROOT_PATH', __DIR__ . '/'); |
| | define('APP_PATH', __DIR__ . '/application/'); |
| | define('MAC_COMM', __DIR__.'/application/common/common/'); |
| | define('MAC_HOME_COMM', __DIR__.'/application/index/common/'); |
| | define('MAC_ADMIN_COMM', __DIR__.'/application/admin/common/'); |
| | define('MAC_START_TIME', microtime(true) ); |
| | define('BIND_MODULE', 'install'); |
| | define('ENTRANCE', 'install'); |
| | $in_file = rtrim($_SERVER['SCRIPT_NAME'],'/'); |
| | if(substr($in_file,strlen($in_file)-4)!=='.php'){ |
| | $in_file = substr($in_file,0,strpos($in_file,'.php')) .'.php'; |
| | } |
| | define('IN_FILE',$in_file); |
| | if(is_file('./application/data/install/install.lock')) { |
| | echo '如需重新安装请删除【To re install, please remove】 >>> /application/data/install/install.lock'; |
| | exit; |
| | } |
| |
|
| | if(!is_writable('./runtime')) { |
| | echo '请开启[runtime]目录的读写权限【Please turn on the read and write permissions of the [runtime] folder】'; |
| | exit; |
| | } |
| |
|
| | |
| | require __DIR__ . '/thinkphp/start.php'; |
| |
|