织梦源码上传文件自动重命名

打开/include/dialog/select_soft_post.php文件

找到

<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $cuserLogin->getUserID().'_'.MyDate('dHis',$nowtme);

</span>

改成 

<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $uploadfile_name;

</span>

继续找到

<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $filename.'.'.$fs[count($fs)-1];

</span>

改成 

<span style="font-family: 'courier new', courier; font-size: 13px;">$filename = $filename.'.'.$fs[count($fs)-1];

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfzwf.html