一、文件管理器:
修改 /dede/templets/file_manage_main.html
$dh = dir($inpath);
$ty1="";
$ty2="";
$files = $dirs = array();
while(($file = $dh->read()) !== false)
改为:
$dh = scandir($inpath);
$ty1="";
$ty2="";
$files = $dirs = array();
foreach ($dh as $file)
删掉
$dh->close();
二、模板文件:修改 /dede/templets/templets_default.htm
$dh = dir($templetdird);
while($filename=$dh->read())
{
if(!preg_match("#\.htm#", $filename)) continue;
$filetime = filemtime($templetdird.'/'.$filename);
$filetime = MyDate("Y-m-d H:i",$filetime);
$fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板');
?>
改为:
$files = scandir($templetdird);
foreach ($files as $filename)
{
if(!preg_match("#\.htm#", $filename)) continue;
$filetime = filemtime($templetdird.'/'.$filename);
$filetime = MyDate("Y-m-d H:i",$filetime);
$fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板');
?>
三、缩略图:修改 /include/dialog/select_images.php
$dh = dir($inpath);
$ty1="";
$ty2="";
while($file = $dh->read())
改为:
$dh = scandir($inpath);
$ty1="";
$ty2="";
foreach ($dh as $file)
删掉
$dh->close();
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!