server()) { metaRefresh("../login.php"); exit; } // print standard header echo $_SESSION['header']; echo ("" . _("Delete PDF Structure") . "\n"); echo "\n"; echo ("\n\n


\n"); // check if admin has submited delete operation if ($_POST['submit']) { // delete user profile if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) { StatusMessage('ERROR', '', _('Unable to delete pdf structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4)); } else { StatusMessage('INFO', '', _('Deleted pdf structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4)); } echo ("
" . _("Back to PDF Editor") . ""); echo ("\n"); exit; } // check if admin has aborted delete operation if ($_POST['abort']) { StatusMessage("INFO", "", _("Delete operation canceled.")); echo ("
" . _("Back to PDF Editor") . ""); echo ("\n"); exit; } // check if right type was given $type = $_GET['type']; if (($type == "user") || ($type == "host") || ($type == "group")) { echo ("

" . _("Do you really want to delete this pdf structure?") . " "); echo (_('Scope') . ': ' . $_GET['type'] . ' ' . _('Name') . ': ' . substr($_GET['delete'],0,strlen($_GET['delete']) - 4) . "

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

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

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