Quote:
Originally Posted by DementedMindz
if you post your downloads.php file in about a hour or so as soon as i finish my stuff ill do beyond compare and do the changes for you... or else grab the free 30 day trial of beyond compare and look at both files
|
If you want to be sure to keep your changes, getting something like beyond compare is a good idea. Once we give everyone a chance to get this secure version installed, the changes will be big and I won't post this kind of info.
For now, here they are from Ron1n's last version. I realized I didn't really need his file.
FIND:
PHP Code:
if ($file['link'] == 0)
BELOW that ADD:
PHP Code:
// clean out temp folders
if ($handle1 = opendir($dl->url))
{
while (false !== ($filedir1 = readdir($handle1)))
{
if (is_dir($dl->url.$filedir1) && strpos($filedir1, "ec_") === 0)
{
if ($handle2 = opendir($dl->url.$filedir1))
{
while (false !== ($filedir2 = readdir($handle2)))
{
if ($filedir2 != "." && $filedir2 != "..")
{
unlink($dl->url.$filedir1."/".$filedir2);
}
}
}
rmdir($dl->url.$filedir1);
closedir($handle2);
}
}
closedir($handle1);
}
FIND:
PHP Code:
if ($_POST['submit'] != '')
{
// EC_DEMO_MODE
if ($dl->ec_demo_mode())
{
eval(standard_error(fetch_error('ec_demo_mode')));
}
// EC_DEMO_MODE
BELOW that ADD:
PHP Code:
$_POST['dname'] = strip_tags($_POST['dname']);
$_POST['author'] = strip_tags($_POST['author']);