In view.php, replace this line:
PHP Code:
if(strlen($file>3)){echo "
... with:
PHP Code:
if (is_file($file)) { echo "
And
PHP Code:
<input type="hidden\" name=\"Name\" value=\"$pathfile\">
... with
PHP Code:
<input type="hidden\" name=\"Name\" value=\"$file\">
And in delete.php, replace this:
PHP Code:
unlink('$PathFile');
... with:
PHP Code:
$PathFile = basename($PathFile);
if (is_file($PathFile))
unlink($PathFile);
(Variables aren't parsed between single quotes.)