View Single Post
  #7 (permalink)  
Old 10-07-09, 01:00 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
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.)
Reply With Quote