diff --git a/src/admin/index_testenv.php b/src/admin/index_testenv.php index e72c401c..71e1930d 100644 --- a/src/admin/index_testenv.php +++ b/src/admin/index_testenv.php @@ -131,6 +131,9 @@ if (IsWritable(DEDEDATA.'/common.inc.php')) { if (!IsSSL()) { $safeMsg[] = '当前站点尚未启用HTTPS,强烈建议您启用'; } +if (version_compare(PHP_VERSION, '5.3.0', '<')) { + $safeMsg[] = "PHP请升级到5.3及以上版本,低版本PHP环境将无法正常使用本系统"; +} $rs = TestAdminPWD(); if ($rs < 0) { $linkurl = "修改"; diff --git a/src/install/index.php b/src/install/index.php index 079001b3..c68dcd68 100644 --- a/src/install/index.php +++ b/src/install/index.php @@ -11,7 +11,7 @@ error_reporting(E_ALL || ~E_NOTICE); define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt'); if(file_exists(INSLOCKFILE)) { - exit("程序已运行安装,如果您确定要重新安装,请先删除 /install/install_lock.txt"); + die("