getConfiguredType($typeId); if ($type === null) { logNewMessage(LOG_ERR, 'User tried to access invalid upload type: ' . $typeId); die(); } // 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(); } $container = new htmlResponsiveRow(); $javaScript = new htmlJavaScript('window.lam.upload.continueUpload(\'../misc/ajax.php?function=upload&typeId=' . $type->getId() . '\', \'' . getSecurityTokenName() . '\', \'' . getSecurityTokenValue() . '\');'); $contentDiv = new htmlDiv('uploadContent', $javaScript, ['smallPaddingContent']); $container->add($contentDiv); parseHtml(null, $container, [], false, null); include __DIR__ . '/../../lib/adminFooter.inc';