no commit message

This commit is contained in:
雨中磐石
2023-12-21 21:15:19 +08:00
parent ad77fdd196
commit 7eaf20c8fd
28 changed files with 187 additions and 53 deletions

View File

@@ -16,6 +16,7 @@ class coginiClassAction extends Action
if(getconfig('systype')=='demo')return returnerror('演示禁止操作');
$path = trim($this->post('path'));
if(!$path || !file_exists($path))return returnerror('无权限设置,请找到对应文件修改'.$path.'');
if(substr($path, -4)!='.ini')return returnerror('无效');
$cont = @file_get_contents($path);
if(!$cont)return returnerror('无权限获取'.$path.'内容');
$str = '';