发布v2.6.4版本

This commit is contained in:
雨中磐石
2024-07-31 12:54:55 +08:00
parent 3048af398c
commit c75c1e7251
20 changed files with 403 additions and 193 deletions

View File

@@ -19,6 +19,10 @@ class uploadClassAction extends apiAction
$updir=str_replace('{Year}',date('Y'), $updir);
$updir=str_replace(array('{','}'),'', $updir);
$updir=str_replace(',','|', $updir);
$bobg = preg_replace("/[a-zA-Z0-9_]/",'', $updir);
$bobg = str_replace(array('-','|'),'', $bobg);
if($bobg)exit('stop:'.$bobg.'');
}
$upimg->initupfile($uptypes, ''.UPDIR.'|'.$updir.'', $maxsize);
$upses = $upimg->up('file');
@@ -323,6 +327,7 @@ class uploadClassAction extends apiAction
if(substr($filepath,0,4)!='http' && isempt($filepathout) && !file_exists($filepath))return returnerror('文件不存在了1');
if(c('upfile')->isimg($fileext)){
$data['url'] = m('admin')->getface($filepath);
if(!isempt($filepathout))$data['url'] = $filepathout;
}
//下载
if($type==1){