+if (!strlen($upload)) {
+ if (file_exists($filename) and !unlink($filename))
+ abort('500 delete error', "fout bij het verwijderen van $filename");
+
+ print "Bestand verwijderd";
+ exit;
+}
+
+$rootpath = str_repeat('../', substr_count($filename, '/'));
+$prepend = "<?php include '${rootpath}head.inc.php'; ?>\n\n";
+$append = "\n";