diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/public/index.php b/public/index.php index c62faf5..afae00a 100644 --- a/public/index.php +++ b/public/index.php @@ -15,37 +15,39 @@ case("/about/"): case("/projects/"): echo $twig->render('projects.html'); break; -case("/tool"): - header("Location: https://" . $_SERVER["HTTP_HOST"] . "/tools/"); +case("/thing/"): +case("/tool/"): +case("/tools/"): + header("Location: https://" . $_SERVER["HTTP_HOST"] . "/things/"); exit; break; -case("/tools/"): - echo $twig->render('tools.html'); +case("/things/"): + echo $twig->render('things.html'); break; -case("/tools/faces/"): - echo $twig->render('tools/faces/index.html', [ "faces" => get_faces() ]); +case("/things/faces/"): + echo $twig->render('things/faces/index.html', [ "faces" => get_faces() ]); break; -case("/tools/pizza/"): - echo $twig->render('tools/pizza/index.html'); +case("/things/pizza/"): + echo $twig->render('things/pizza/index.html'); break; -case("/tools/untrack/"): +case("/things/untrack/"): $_url = ""; if ( isset($_REQUEST['url']) ) { $_url = htmlspecialchars($_REQUEST['url']); } - echo $twig->render('tools/untrack/index.html', [ "url" => $_url ]); + echo $twig->render('things/untrack/index.html', [ "url" => $_url ]); break; -case("/tools/tanz/"): - echo $twig->render('tools/bpm/index.html', [ "dances" => get_dances() ]); +case("/things/tanz/"): + echo $twig->render('things/bpm/index.html', [ "dances" => get_dances() ]); break; case("/feeds/"): echo $twig->render('feeds.html'); break; -case("/tools/zeitumstellung/"): - echo $twig->render('tools/zeitumstellung/index.html', [ "tc" => new Zeitumstellung() ]); +case("/things/zeitumstellung/"): + echo $twig->render('things/zeitumstellung/index.html', [ "tc" => new Zeitumstellung() ]); break; -case("/tools/ghrss/"): - echo $twig->render('tools/ghrss/index.html', [ "data" => get_ghrss_feeds() ]); +case("/things/ghrss/"): + echo $twig->render('things/ghrss/index.html', [ "data" => get_ghrss_feeds() ]); break; default: if ( str_ends_with($url, "/") ) { |
