3 include_once "functions.php";
5 $delete_file_name = prepare_filename( $_GET['filename'] );
7 $delete_file_name = str_replace( "/", "_", $delete_file_name );
9 $deleted_file_path = "$deleted_dir/" . $delete_file_name;
11 $success = touch( $deleted_file_path );
15 header("HTTP/1.1 500 Internal Server Error");
16 print "Unable to delete file.";
20 print "File deleted.";