1.修复上传漏洞和SQL注入漏洞
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user