织梦网站系统后台文件管理器,上传到阿里云的服务器,文件夹与文件名排序混乱, 恢复按文件名顺序修改的正确方法。如下:
文件管理器里:
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) 336行 去掉 $dh->close();
模板文件顺序修改:
dede/templets/templets_default.htm
$dh = dir($templetdird); while($filename=$dh->read()) 改 $dh = scandir($templetdird); foreach ($dh as $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();
通过修改以上三个文件后,排序乱的就恢复正常顺序了。