dragon71 So, you must to edit some system files in AntiSlaed CMS, if you don't want, that files be auto renamed. Sorry for rather bad English in advance.
Don't forget to make backups of replaced files!!First of all open directory with AntiSlaed system. Then follow the instructions:
1. Open
\modules\files\index.phpFind this piece of code:
КОД
$filename = upload(1, $conff['temp'], $conff['typefile'], $conff['max_size'], "files", "1600", "1600");
Replace with this:
КОД
$filename = upload(1, $conff['temp'], $conff['typefile'], $conff['max_size'], "1600", "1600");
Save and close this file.
2. Open
\function\function.phpFind this piece of code:
КОД
function upload($typ, $directory, $typefile, $maxsize, $namefile, $width, $height)
Replace with this:
КОД
function upload($typ, $directory, $typefile, $maxsize, $width, $height)
Find this piece of code (There are two matches of this pice of code in this file.
Yo must replace both of them.):
КОД
$newname = ($namefile) ? $namefile."-".gen_pass(10).".".$type : gen_pass(15).".".$type;
Replace with this:
КОД
$newname = $_FILES['userfile']['name'];
Find this piece of code:
КОД
$newname = ($namefile) ? $namefile."-".gen_pass(10)."-0.".$type : gen_pass(15).".".$type;
Replace with this:
КОД
$newname = $_FILES['userfile']['name'];
Save and close this file.
That's all. This manual is only for AntiSlaedCMS 4.3.1 (maybe 4.2, but i don't sure, because I tested it only on AntiSlaed CMS. 4.3.1)
Я пока только новичок в PHP, но вообщем вроде работает. Проверял на файлах формата .txt и .zip
DjSalamander Спасибо, за дешифровку))) P.S. Надеюсь, админы перенесут этот топик в соответствующий форум. Кстати, похоже он и не англичанин, судя вот по этому посту
http://antislaed.net/index.php?showtopic...ost&p=66561
Сообщение отредактировал wizard993: May 16 2011, 20:43