Add check for escapeshellarg function

This commit is contained in:
printempw 2018-02-22 23:07:23 +08:00
parent 3725ec26f7
commit 35c5b469a0
3 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,10 @@ class SetupController extends Controller
throw new PrettyPageException(trans('setup.database.table-already-exists', ['tables' => json_encode($existingTables)]), 1);
}
if (! function_exists('escapeshellarg')) {
throw new PrettyPageException(trans('setup.disabled-functions.escapeshellarg'), 1);
}
return view('setup.wizard.info');
}

View File

@ -10,6 +10,9 @@ file:
permissions:
storage: Unable to write to storage directory, please check the permissions.
disabled-functions:
escapeshellarg: "The escapeshellarg function is disabled in your php.ini configuration. Please contact your web hosting provider to enable it or perform the installation manually: http://t.cn/REzBZUe"
locked:
title: Already installed
text: You appear to have already installed Blessing Skin Server. To reinstall please clear your old database tables first, or use a new database table prefix.

View File

@ -10,6 +10,9 @@ file:
permissions:
storage: 无法写入 storage 目录,请检查目录权限是否正确
disabled-functions:
escapeshellarg: 你的主机提供商禁用了 escapeshellarg 函数而此函数是本安装程序必须使用的。请联系你的主机提供商解决或者参照这篇文章进行手动安装http://t.cn/REzBZUe
locked:
title: 已安装过
text: Blessing Skin Server 看起来已经安装妥当。如果想重新安装,请删除数据库中的旧数据表,或者换一个数据表前缀。