1.修复上传漏洞和SQL注入漏洞

This commit is contained in:
2026-06-24 09:59:58 +08:00
parent 8c5b1d212a
commit aa5bda04ad
9 changed files with 147 additions and 45 deletions

View File

@@ -646,6 +646,17 @@ 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
{