validate()) { http_response_code(403); die(); } $args = [ "page" => 0, "type" => "ALL", "search" => "", "module" => "all", "hierarchy" => "all", "begin" => "", "end" => "", "command" => null, "search" => null ]; // TODO Validazione specifica per argomento foreach($args as $arg => $default) { $$arg = isset($_REQUEST[$arg]) ? $_REQUEST[$arg] : $default; if ($arg != "begin" && $arg != "end") { $$arg = sanitize_string($$arg, [], "-", false); } } if (empty($command)) { include_once $root . "/backend/layout/top.php"; } if (!empty($_SESSION["utente"])) { $total_changelogs = $changelog_parser->countAll($type, $search); if (empty($command)) : ?>

getAllChangelogs( $_SESSION["utente"]->codice, PAGE_SIZE, $page, $type, $search, $module, $hierarchy, $begin, $end ); $changelog_parser->templateWrapper->renderChangelogs( $current_changelogs, ); if (empty($command)): ?>
templateWrapper->renderScroll( $page, $type, $search, $module, $hierarchy, $begin, $end ); endif; if (empty($command)) : ?>