From 7e9e4e9113f3ec82cd32ed0cfd52fce1f41e0662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Thu, 18 Jul 2024 00:56:06 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E6=89=93=E5=BC=80?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=96=87=E4=BB=B6=E4=B8=8E=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E7=AA=97=E5=8F=A3=E6=93=8D=E4=BD=9C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=B2=A1=E6=9C=89=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=85=B6=E6=9D=83=E9=99=90=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小胡 <3203164629@qq.com> --- dzz/system/fileselection/ajax.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dzz/system/fileselection/ajax.php b/dzz/system/fileselection/ajax.php index e02a734..266d811 100644 --- a/dzz/system/fileselection/ajax.php +++ b/dzz/system/fileselection/ajax.php @@ -96,7 +96,7 @@ if ($operation == 'upload') {//上传图片文件 //是图片时处理 if ($isimage) { - if (!perm_check::checkperm_Container($fid, 'upload')) { + if (!perm_check::checkperm($fid, 'upload')) { $arr['error'] = lang('target_not_accept_image'); } if ($data = io_dzz::linktoimage($link, $fid)) { @@ -110,7 +110,7 @@ if ($operation == 'upload') {//上传图片文件 } else { //试图作为视频处理 if ($data = io_dzz::linktovideo($link, $fid)) { - if (!perm_check::checkperm_Container($fid, 'upload')) { + if (!perm_check::checkperm($fid, 'upload')) { $arr['error'] = lang('target_not_accept_video'); } else { if ($data['error']) $arr['error'] = $data['error']; @@ -121,7 +121,7 @@ if ($operation == 'upload') {//上传图片文件 } } //作为网址处理 - if (!perm_check::checkperm_Container($fid, 'upload')) { + if (!perm_check::checkperm($fid, 'upload')) { $arr['error'] = lang('target_not_accept_link'); } else { if ($data = io_dzz::linktourl($link, $fid)) { @@ -168,41 +168,41 @@ if ($operation == 'upload') {//上传图片文件 switch ($type) { case 'newTxt': $filename = lang('new_txt') . '.txt'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' '; break; case 'newDzzDoc': $filename = lang('new_dzzdoc') . '.dzzdoc'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' '; break; case 'newDoc': $filename = lang('new_word') . '.docx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/word.docx'); break; case 'newExcel': $filename = lang('new_excel') . '.xlsx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/excel.xlsx'); break; case 'newPowerPoint': $filename = lang('new_PowerPoint') . '.pptx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/ppt.pptx'); break; default: - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm($path, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' ';