【程序目录】更新版本判断

This commit is contained in:
evoxwht 2023-02-13 10:34:49 +08:00
parent 6082e7dbe8
commit e53e7d635a
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@
namespace think;
if ('7.1.0' > phpversion()) {
exit('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
exit('您的php版本过低,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
if (phpversion() >= '8.0.0') {
exit('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
exit('您的php版本太高,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
define('DS', DIRECTORY_SEPARATOR);

View File

@ -18,10 +18,10 @@ if (file_exists('../install.lock')) {
@set_time_limit(1000);
if ('7.1.0' > phpversion()) {
exit('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
exit('您的php版本过低,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
if (phpversion() >= '8.0.0') {
exit('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
exit('您的php版本太高,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
date_default_timezone_set('PRC');