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']) { if($_POST['pdf'] == 'new') { metaRefresh('pdfpage.php?type=' . $_POST['scope']); } else if($_POST['pdf'] == 'edit') { $edit = split(':',$_POST['edit']); metaRefresh('pdfpage.php?type=' . $edit[0] . '&edit=' . $edit[1]); } else if($_POST['pdf'] == 'delete') { $delete = split(':',$_POST['delete']); metaRefresh('pdfdelete.php?type=' . $delete[0] . '&delete=' . $delete[1]); } } exit; } $scopes = $_SESSION['config']->get_ActiveTypes(); $availableStructureDefinitions = ''; $availableScopes = ''; foreach($scopes as $scope) { $pdfStructDefs = getPDFStructureDefinitions($scope); $availableScopes .= '\n"; foreach($pdfStructDefs as $pdfStructureDefinition) { $availableStructureDefinitions .= '\n"; } } echo $_SESSION['header']; ?>