欢迎来到润旭源码网
帮助中心

润旭源码网

热门搜索: 企业源码    免费源码   

dedecms织梦让上传的图片名字不变保持原名

  • 时间:2020-07-25 10:39 编辑: 来源: 阅读:182
  • 扫一扫,手机访问
摘要:dedecms织梦让上传的图片名字不变保持原名 打开 includedialogselect_images_post.php 找到 <span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$filename_name = $cuserLogi

dedecms织梦让上传的图片名字不变保持原名

 

打开 includedialogselect_images_post.php 找到

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$filename_name = $cuserLogin->getUserID().'-'.dd2char(MyDate("ymdHis", $nowtme).mt_rand(100,999));</span></span>

 

改成

 

打开 includehelpersupload.helper.php 找到

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$fs2 = explode('.', $imgfile_name);

$filename_name = $fs2[count($fs2)-2];//缩略图不重命名</span></span>

 

改成

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis', time())).$rnddd;</span></span>

 

继续找到

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">if($ftype=='imagelit') $filename .= '-L';</span></span>

 

删除或者注释掉这行

 

打开 dedeswfupload.php 找到

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis', time())).$rnddd;</span></span>

 

改成

 

<span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">$file_snames = explode('.', $Filename);

$filename = $file_snames[count($file_snames)-2];//缩略图不重命名</span></span>

 


  • 全部评论(0)
资讯详情页最新发布上方横幅
联系我们

QQ:888477 {点击直接联系}

邮箱:runxu123@qq.com

时间:周1——周6 【9:00-23:00

联系客服
购买源码 源码咨询 投诉建议 联系客服
0373-6621888
手机版

扫一扫进手机版
返回顶部