render('index.html'); break; case("/about/"): echo $twig->render('about.html'); break; case("/projects/"): echo $twig->render('projects.html'); break; case("/tools/"): echo $twig->render('tools.html'); break; case("/tools/faces/"): echo $twig->render('tools/faces/index.html', [ "faces" => get_faces() ]); break; case("/tools/pizza/"): echo $twig->render('tools/pizza/index.html'); break; case("/tools/untrack/"): $_url = ""; if ( isset($_REQUEST['url']) ) { $_url = htmlspecialchars($_REQUEST['url']); } echo $twig->render('tools/untrack/index.html', [ "url" => $_url ]); break; case("/tools/zeitumstellung/"): echo $twig->render('tools/zeitumstellung/index.html', [ "tc" => new Zeitumstellung() ]); break; case("/tools/tanz/"): echo $twig->render('tools/bpm/index.html', [ "dances" => get_dances() ]); break; default: if ( str_ends_with($url, "/") ) { http_response_code(404); echo $twig->render('404.html'); } else { $url = $url . "/"; header("Location: " . $url); exit; } }