David
|
Anti-Leach - 2005/08/22 20:40
Hi,
It would nice if the anti-leach prefix is not generated from $mosConfig_absolute_path as it is fix for all files.
For security reasons I suggest to have it generated from system date and time.
Therefore, in the function gotuploadfile I suggest to change the respecive line this way:
$leach_code = substr(md5(date('r')),0,8);
Also, it would be better not to have the full file name set as default file title. The respective line can look like this:
if ($file->filetitle == '') $file->filetitle = $FileName;
David
|