server()) { echo("\n"); exit; } // print standard header echo (""); echo ("" . _("Delete User Profile") . "\n"); echo "\n"; echo ("
"); // check if admin has submited delete operation if ($_POST['submit']) { // delete user profile if ($_POST['type'] == "user") { if (!delUserProfile($_POST['del'])) { StatusMessage("ERROR", "", _("Unable to delete profile! ") . $_POST['del']); } else StatusMessage("INFO", "", _("Deleted profile: ") . $_POST['del']); } // delete host profile elseif ($_POST['type'] == "host") { if (!delHostProfile($_POST['del'])) { StatusMessage("ERROR", "", _("Unable to delete profile! ") . $_POST['del']); } else StatusMessage("INFO", "", _("Deleted profile: ") . $_POST['del']); } // wrong profile type else { StatusMessage("ERROR", "", _("Wrong or missing type! ") . $_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")) { // user profile if ($type == "user") { 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"); } // host profile elseif ($type == "host") { 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...") . ""); }