decrypt($_SESSION['mass_accounts'])); for ($i = 0; $i < sizeof($accounts); $i++) { echo "DN: " . $accounts[$i]['dn'] . "\n"; unset($accounts[$i]['dn']); $keys = array_keys($accounts[$i]); for ($k = 0; $k < sizeof($keys); $k++) { if (strpos($keys[$k], 'INFO.') === 0) { continue; } if (is_array($accounts[$i][$keys[$k]])) { for ($x = 0; $x < sizeof($accounts[$i][$keys[$k]]); $x++) { echo $keys[$k] . ": " . $accounts[$i][$keys[$k]][$x] . "\n"; } } else { echo $keys[$k] . ": " . $accounts[$i][$keys[$k]] . "\n"; } } echo "\n"; } exit; } include 'main_header.php'; $scope = htmlspecialchars($_POST['scope']); // check if account type is ok if (isAccountTypeHidden($scope)) { logNewMessage(LOG_ERR, 'User tried to access hidden upload: ' . $scope); die(); } if (!checkIfNewEntriesAreAllowed($scope) || !checkIfWriteAccessIsAllowed($scope)) { logNewMessage(LOG_ERR, 'User tried to access forbidden upload: ' . $scope); die(); } echo '
'; include 'main_footer.php'; /** * Prints a back button to the page where the user enters a file to upload. * * @param String $scope account type (e.g. user) * @param array $selectedModules selected modules for upload * @param htmlTable $container table container */ function massPrintBackButton($scope, $selectedModules, &$container) { $backButton = new htmlButton('submit', _('Back')); $backButton->setIconClass('backButton'); $container->addElement($backButton); $container->addElement(new htmlHiddenInput('type', $scope)); $createPDF = 0; if (isset($_POST['createPDF']) && ($_POST['createPDF'] == 'on')) { $createPDF = 1; } $container->addElement(new htmlHiddenInput('createPDF', $createPDF)); $container->addElement(new htmlHiddenInput('pdfStructure', $_POST['pdfStructure'])); for ($i = 0; $i < sizeof($selectedModules); $i++) { $container->addElement(new htmlHiddenInput($scope . '_' . $selectedModules[$i], 'on')); } } ?>