1.修复上传漏洞和SQL注入漏洞-移除安装模块所有的代码
This commit is contained in:
@@ -636,8 +636,9 @@ if (!function_exists('get_account_verification_type')) {
|
||||
if ($configured) {
|
||||
$types[] = 'email';
|
||||
}
|
||||
if (class_exists(\app\admin\library\module\Server::class)) {
|
||||
$sms = \app\admin\library\module\Server::getIni(\ba\Filesystem::fsFit(root_path() . 'modules/sms/'));
|
||||
$smsIni = \ba\Filesystem::fsFit(root_path() . 'modules/sms/info.ini');
|
||||
if (is_file($smsIni)) {
|
||||
$sms = parse_ini_file($smsIni, true, INI_SCANNER_TYPED) ?: [];
|
||||
if ($sms && ($sms['state'] ?? 0) == 1) {
|
||||
$types[] = 'mobile';
|
||||
}
|
||||
@@ -646,17 +647,6 @@ if (!function_exists('get_account_verification_type')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('is_system_installed')) {
|
||||
/**
|
||||
* 系统是否已完成安装(install.lock 内容为 install-end)
|
||||
*/
|
||||
function is_system_installed(): bool
|
||||
{
|
||||
$lockFile = public_path('install.lock');
|
||||
return is_file($lockFile) && @file_get_contents($lockFile) === 'install-end';
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('get_area')) {
|
||||
function get_area($request = null): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user