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 ("\n"); exit; } // check if admin has aborted delete operation if ($_POST['abort']) { StatusMessage("INFO", "", _("Delete operation canceled.")); echo ("
" . _("Back to profile editor") . ""); echo ("\n"); exit; } // check if right type was given $type = $_GET['type']; if (($type == "user") || ($type == "host") || ($type == "group")) { // user profile echo ("

" . _("Do you really want to delete this profile?") . " "); echo ($_GET['del'] . "

\n"); echo ("
\n"); echo ("

\n"); echo ("\n"); echo ("\n"); echo (""); echo (""); echo ("

\n"); } else{ // no valid profile type StatusMessage("ERROR", "", _("Wrong or missing type!") . " " . $type); echo ("" . _("Back to profile editor") . ""); }