<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms上传附件不自动改名,织梦CMS中文名附件自动改为拼音文件

时间:2020-12-16

织梦dedecms的系统在上传附件后,会将文件自动改名字,那怎么样才能让附件上传后不自动改名字呢,让附件上传后不自动改名字(中文名的附件将会改成拼音文件名称),现在说一下方法吧:
我们打开网站目录下include\dialog\select_soft_post.php文件
一、找到以下代码
 $filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis',$nowtme));

修改为:

 //$filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis',$nowtme));


二、找到:

 $filename = $filename.'.'.$fs[count($fs)-1];
修改为:
 $filename = GetPinyin($fs[0]).'.'.$fs[count($fs)-1];

这样就可以完成修改了。
0
首页
案例
关于
联系