server()) {
metaRefresh("../login.php");
exit;
}
// print standard header
echo $_SESSION['header'];
echo ("
" . _("Delete profile") . "\n");
echo "\n";
echo ("\n\n
\n");
// check if admin has submited delete operation
if ($_POST['submit']) {
// delete profile
if (!delAccountProfile($_POST['del'], $_POST['type'])) {
StatusMessage("ERROR", _("Unable to delete profile!"), $_POST['del'] . "." . $_POST['type']);
}
else StatusMessage("INFO", _("Deleted profile:"), $_POST['del'] . "." . $_POST['type']);
echo ("
" . _("Back to profile editor") . "");
echo ("