summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorhorus2022-10-31 12:24:35 +0100
committerhorus2022-10-31 12:24:35 +0100
commit3c4aa25af0cd6f56db85d503ab552d39b81b5c17 (patch)
treec9e7e8de0be62e7f1389a8c19485a6ca29806497 /public
parentf0c30d3bf798d52d5c2b14b0a2a12167ed7c2d72 (diff)
downloadmoehring-3c4aa25af0cd6f56db85d503ab552d39b81b5c17.tar.gz
renamed to things
Diffstat (limited to 'public')
-rw-r--r--public/index.php34
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, "/") ) {