From 3c4aa25af0cd6f56db85d503ab552d39b81b5c17 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 31 Oct 2022 12:24:35 +0100 Subject: renamed to things --- .gitmodules | 10 ++--- app.php | 2 +- functions.php | 10 ++--- public/index.php | 34 ++++++++-------- views/index.html | 2 +- views/snippets/navbar.html | 2 +- views/things.html | 55 ++++++++++++++++++++++++++ views/things/bpm | 1 + views/things/faces | 1 + views/things/ghrss/composer.json | 5 +++ views/things/ghrss/composer.lock | 84 ++++++++++++++++++++++++++++++++++++++++ views/things/ghrss/feed.php | 47 ++++++++++++++++++++++ views/things/ghrss/ghrss.db.php | 14 +++++++ views/things/ghrss/index.html | 32 +++++++++++++++ views/things/pizza | 1 + views/things/untrack | 1 + views/things/zeitumstellung | 1 + views/tools.html | 55 -------------------------- views/tools/bpm | 1 - views/tools/faces | 1 - views/tools/ghrss/composer.json | 5 --- views/tools/ghrss/composer.lock | 84 ---------------------------------------- views/tools/ghrss/feed.php | 47 ---------------------- views/tools/ghrss/ghrss.db.php | 14 ------- views/tools/ghrss/index.html | 32 --------------- views/tools/pizza | 1 - views/tools/untrack | 1 - views/tools/zeitumstellung | 1 - 28 files changed, 273 insertions(+), 271 deletions(-) create mode 100644 views/things.html create mode 160000 views/things/bpm create mode 160000 views/things/faces create mode 100644 views/things/ghrss/composer.json create mode 100644 views/things/ghrss/composer.lock create mode 100644 views/things/ghrss/feed.php create mode 100644 views/things/ghrss/ghrss.db.php create mode 100644 views/things/ghrss/index.html create mode 160000 views/things/pizza create mode 160000 views/things/untrack create mode 160000 views/things/zeitumstellung delete mode 100644 views/tools.html delete mode 160000 views/tools/bpm delete mode 160000 views/tools/faces delete mode 100644 views/tools/ghrss/composer.json delete mode 100644 views/tools/ghrss/composer.lock delete mode 100644 views/tools/ghrss/feed.php delete mode 100644 views/tools/ghrss/ghrss.db.php delete mode 100644 views/tools/ghrss/index.html delete mode 160000 views/tools/pizza delete mode 160000 views/tools/untrack delete mode 160000 views/tools/zeitumstellung diff --git a/.gitmodules b/.gitmodules index b102eaf..2d7365d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,15 +1,15 @@ [submodule "views/tools/faces"] - path = views/tools/faces + path = views/things/faces url = git@git.iamfabulous.de:faces [submodule "views/tools/pizza"] - path = views/tools/pizza + path = views/things/pizza url = git@git.iamfabulous.de:pizza [submodule "views/tools/untrack"] - path = views/tools/untrack + path = views/things/untrack url = git@git.iamfabulous.de:untrack [submodule "views/tools/zeitumstellung"] - path = views/tools/zeitumstellung + path = views/things/zeitumstellung url = git@git.iamfabulous.de:zeitumstellung [submodule "views/tools/bpm"] - path = views/tools/bpm + path = views/things/bpm url = git@git.iamfabulous.de:bpm diff --git a/app.php b/app.php index ea81dfe..16ce17c 100644 --- a/app.php +++ b/app.php @@ -19,7 +19,7 @@ $function = new \Twig\TwigFunction('maincss', function() { $twig->addFunction($function); $function = new \Twig\TwigFunction('dump_dances', function() { - echo readfile(__DIR__ . '/views/tools/bpm/dances.json'); + echo readfile(__DIR__ . '/views/things/bpm/dances.json'); }); $twig->addFunction($function); diff --git a/functions.php b/functions.php index 8a31111..7dc32ed 100644 --- a/functions.php +++ b/functions.php @@ -1,14 +1,14 @@ query("SELECT name FROM language ORDER BY name;"); return $result->fetchAll(); } 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, "/") ) { diff --git a/views/index.html b/views/index.html index 719e472..2288172 100644 --- a/views/index.html +++ b/views/index.html @@ -63,7 +63,7 @@ while crazy; do
- eval("my life… tools") + eval("my life… things")
endwhile
diff --git a/views/snippets/navbar.html b/views/snippets/navbar.html index 9a63ad9..36524d7 100644 --- a/views/snippets/navbar.html +++ b/views/snippets/navbar.html @@ -16,7 +16,7 @@ /projects