发布v2.6.8版本
This commit is contained in:
@@ -515,7 +515,7 @@ class uploadClassAction extends apiAction
|
||||
$this->rock->createtxt($filepath, file_get_contents($lujing));
|
||||
|
||||
$uarr = array(
|
||||
'filename' => $fname,
|
||||
'filename' => $this->rock->xssrepstr($fname),
|
||||
'fileext' => $fileext,
|
||||
'filepath' => $filepath,
|
||||
'filesize' => filesize($filepath),
|
||||
@@ -556,7 +556,7 @@ class uploadClassAction extends apiAction
|
||||
$where.=" and `fileext` in('".$uptp."')";
|
||||
}
|
||||
$db = m('file');
|
||||
$rows = $db->getall($where,'id,filename,filesizecn,fileext,thumbpath,filepath,filepathout','`id` desc limit 10');
|
||||
$rows = $db->getall($where,'id,filename,filesizecn,fileext,thumbpath,thumbplat,filepath,filepathout','`id` desc limit 10');
|
||||
foreach($rows as $k=>$rs){
|
||||
$rows[$k]['value'] = $rs['id'];
|
||||
$rows[$k]['name'] = $rs['filename'];
|
||||
@@ -570,6 +570,7 @@ class uploadClassAction extends apiAction
|
||||
unset($rows[$k]['filepathout']);
|
||||
if(!isempt($rs['thumbpath'])){
|
||||
$rows[$k]['iconsimg'] = $rs['thumbpath'];
|
||||
if(!isempt($rs['thumbplat']))$rows[$k]['iconsimg'] = $rs['thumbplat'];
|
||||
}else{
|
||||
$flx = $rs['fileext'];
|
||||
if(!contain($db->fileall,','.$flx.','))$flx='wz';
|
||||
|
||||
Reference in New Issue
Block a user