getConfiguredType($typeId); // check if account type is ok if ($type->isHidden()) { logNewMessage(LOG_ERR, 'User tried to access hidden upload: ' . $type->getId()); die(); } if (!checkIfNewEntriesAreAllowed($type->getId()) || !checkIfWriteAccessIsAllowed($type->getId())) { logNewMessage(LOG_ERR, 'User tried to access forbidden upload: ' . $type->getId()); die(); } echo '
'; include '../main_footer.php'; /** * Prints a back button to the page where the user enters a file to upload. * * @param String $typeId account type (e.g. user) * @param array $selectedModules selected modules for upload * @param htmlTable $container table container */ function massPrintBackButton($typeId, $selectedModules, htmlTable &$container) { $backButton = new htmlButton('submit', _('Back')); $backButton->setIconClass('backButton'); $container->addElement($backButton); $container->addElement(new htmlHiddenInput('type', $typeId)); $createPDF = 0; if (isset($_POST['createPDF']) && ($_POST['createPDF'] == 'on')) { $createPDF = 1; } $container->addElement(new htmlHiddenInput('createPDF', $createPDF)); $container->addElement(new htmlHiddenInput('pdfStructure', $_POST['pdfStructure'])); foreach ($selectedModules as $selectedModule) { $container->addElement(new htmlHiddenInput($typeId . '___' . $selectedModule, 'on')); } } ?>