$StrFolderInvalidName";
else if (!file_exists($home_directory.$path.$directory_name))
print "$StrDeleteFolderNotFound";
else if (remove_directory($home_directory.$path.$directory_name) && @rmdir($home_directory.$path.$directory_name))
print "$StrDeleteFolderSuccess";
else
{
print "$StrDeleteFolderFail
";
print $StrDeleteFolderFailHelp;
}
}
else if (isset($_GET['delete']) && isset($_GET['filename']))
{
if ($_GET['filename'] == ".." || ($_GET['filename'] == "."))
print "$StrFileInvalidName";
else if (!file_exists($home_directory.$path.$filename))
print "$StrDeleteFileNotFound";
else if (@unlink($home_directory.$path.$filename))
print "$StrDeleteFileSuccess";
else
{
print "$StrDeleteFileFail
";
print $StrDeleteFileFailHelp;
}
}
else
{
print "
"; if (isset($_GET['directory_name'])) print " $StrDeleteFolder \"".htmlentities(basename($directory_name))."\"?"; else if (isset($_GET['filename'])) print " $StrDeleteFile \"".htmlentities($filename)."\"?"; print " | "; print ""; print ""; print " | "; print "
";
print " "; if (isset($_GET['directory_name'])) { print "$StrDeleteFolderQuestion "; print "/".htmlentities($path.$directory_name); } else if (isset($_GET['filename'])) { print "$StrDeleteFileQuestion "; print "/".htmlentities($path.$filename); } print " "; if (isset($_GET['directory_name'])) print "$StrYes"; else if (isset($_GET['filename'])) print "$StrYes"; print " $StrOr "; print "$StrCancel"; print " | ";
print "