<h3>Delete a File</h3>
<?php
extract($_GET);
$user=$_SESSION['login'];
if ($submit)
{
echo "\nDeleting $user/$file...";
$del=unlink("Users/$user/$file");
if ($del)
{
echo "\n<br/><b>$file deleted!</b>\n";
echo "<meta http-equiv='refresh' content='1; URL=?id=cms'/>";
}
else
echo "Error: Cannot delete file!";
}
include("options.php");
?>