server()) { metaRefresh("../login.php"); exit; } // check if user has pressed submit or abort button if ($_POST['forward'] == "yes") { // on abort go back to main page if ($_POST['abort']) { metaRefresh("../lists/listusers.php"); } // on submit forward to other pdf structure pages else if($_POST['submit']) { // create new user pdf structure if ($_POST['pdf'] == "new_user") { metaRefresh("pdfpage.php?type=user"); } // edit user pdf structure elseif($_POST['pdf'] == "edit_user") { metaRefresh("pdfpage.php?type=user&edit=" . $_POST['edit_user']); } // delete user pdf structure elseif($_POST['pdf'] == "delete_user") { metaRefresh("pdfdelete.php?type=user&delete=" . $_POST['delete_user']); } // create new group pdf structure elseif ($_POST['pdf'] == "new_group") { metaRefresh("pdfpage.php?type=group"); } // edit group pdf structure elseif($_POST['pdf'] == "edit_group") { metaRefresh("pdfpage.php?type=group&edit=" . $_POST['edit_group']); } // delete group pdf structure elseif($_POST['pdf'] == "delete_group") { metaRefresh("pdfdelete.php?type=group&delete=" . $_POST['delete_group']); } // create new host pdf structure elseif ($_POST['pdf'] == "new_host") { metaRefresh("pdfpage.php?type=host"); } // edit host pdf structure elseif($_POST['pdf'] == "edit_host") { metaRefresh("pdfpage.php?type=host&edit=" . $_POST['edit_host']); } // delete host pdf structure elseif($_POST['pdf'] == "delete_host") { metaRefresh("pdfdelete.php?type=host&delete=" . $_POST['delete_host']); } } exit; } // Get available user PDF structure definitions $pdfStructDefs = getPDFStructureDefinitions('user'); $user_pdf = ''; for($i = 0;$i < count($pdfStructDefs); $i++) { $user_pdf .= '\n"; } // Get available group PDF structure definitions $pdfStructDefs = getPDFStructureDefinitions('group'); $group_pdf = ''; for($i = 0;$i < count($pdfStructDefs); $i++) { $group_pdf .= '\n"; } // Get available host PDF structure definitions $pdfStructDefs = getPDFStructureDefinitions('host'); $host_pdf = ''; for($i = 0;$i < count($pdfStructDefs); $i++) { $host_pdf .= '\n"; } echo $_SESSION['header']; ?>