server()) { metaRefresh("../login.php"); exit; } // print standard header echo $_SESSION['header']; echo ("" . _("Delete PDF structure") . "\n"); echo "\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') . ': ' . $_POST['delete']); } else { StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']); } 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']; echo ("

" . _("Do you really want to delete this PDF structure?") . ""); echo "
\n"; echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "" . _('Account type') . ': ' . getTypeAlias($_GET['type']); echo "
\n"; echo "" . _('Name') . ': ' . $_GET['delete'] . "
\n"; echo "
\n"; echo "
\n"; echo ("
\n"); echo ("

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

\n");