织梦DEDECMS后台文件管理器、模板文件、缩略图排
导读:DEDE技术DEDE技术我们都知道DEDECMS生成的文件夹是按天生成的,只要传了图片就会自动建立个年月日的文件,centos系统下,都是随便排序的,很难找到对应文件夹,如果要按顺序排织梦模板免费下裁dede后台模板。
我们都知道DEDECMS生成的文件夹是按天生成的,只要传了图片就会自动建立个年月日的文件,centos系统下,都是随便排序的,很难找到对应文件夹,如果要按顺序排列,要怎么操作呢?
一、文件管理器:
修改 /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
<?php
$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] : '未知模板');
?>
改为
<?php
$files = scandir($templetdird);
foreach ($files as $filename)
{
if(!preg_match("#\.htm#", $filename)) continue;
$filetime = filemtime($templetdird.'/'.$filename);
$filetime = dede手机模板MyDate("Y-m-d H:i",$filetime);
dede模板下载 $fileinfo = (isset($fileinfos[$fdede商城模板ilename]) ? $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();相关织梦模板免费下裁dede后台模板。
声明: 本文由我的SEOUC技术文章主页发布于:2023-07-17 ,文章织梦DEDECMS后台文件管理器、模板文件、缩略图排主要讲述文件,管理器,CMS网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_28403.html
- 上一篇:没有了
- 下一篇:dede5.7织梦后台广告插件增加图片上传功能,织梦文