Commit e48dc576 authored by luoboss's avatar luoboss
Browse files

安装入口文件添加PHP版本判断提示。

Showing with 8 additions and 0 deletions
+8 -0
......@@ -7,6 +7,14 @@
* @license http://www.pescms.com/license
* @version 1.0
*/
$phpVersion = explode('.', phpversion());
$version = "{$phpVersion['0']}.{$phpVersion['1']}";
if($version < 5.6){
echo '<h1>PESCMS系列程序需要PHP5.6 或以上版本支持!</h1>';
exit;
}
define('ITEM', 'App');
//当前项目控制器所在目录
defined('APP_PATH') or define('APP_PATH', dirname(__FILE__). '/');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment