diff options
| author | horus | 2022-10-31 12:24:35 +0100 |
|---|---|---|
| committer | horus | 2022-10-31 12:24:35 +0100 |
| commit | 3c4aa25af0cd6f56db85d503ab552d39b81b5c17 (patch) | |
| tree | c9e7e8de0be62e7f1389a8c19485a6ca29806497 /public | |
| parent | f0c30d3bf798d52d5c2b14b0a2a12167ed7c2d72 (diff) | |
| download | moehring-3c4aa25af0cd6f56db85d503ab552d39b81b5c17.tar.gz | |
renamed to things
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, "/") ) { |
