summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorhorus2022-10-26 01:23:50 +0200
committerhorus2022-10-26 01:23:50 +0200
commit882c0eb89b375cbfdd9c04b236cbab0d3f39a128 (patch)
tree676c16e7beafdb8c11311b41b2bc22014c99aad1 /public/index.php
parent79070c8855e5f3b87484196d6ef607a05979bf6c (diff)
downloadmoehring-882c0eb89b375cbfdd9c04b236cbab0d3f39a128.tar.gz
integrates ghrss
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/public/index.php b/public/index.php
index 1de542e..c62faf5 100644
--- a/public/index.php
+++ b/public/index.php
@@ -15,6 +15,10 @@ case("/about/"):
case("/projects/"):
echo $twig->render('projects.html');
break;
+case("/tool"):
+ header("Location: https://" . $_SERVER["HTTP_HOST"] . "/tools/");
+ exit;
+ break;
case("/tools/"):
echo $twig->render('tools.html');
break;
@@ -31,11 +35,17 @@ case("/tools/untrack/"):
}
echo $twig->render('tools/untrack/index.html', [ "url" => $_url ]);
break;
+case("/tools/tanz/"):
+ echo $twig->render('tools/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() ]);
break;
-case("/tools/tanz/"):
- echo $twig->render('tools/bpm/index.html', [ "dances" => get_dances() ]);
+case("/tools/ghrss/"):
+ echo $twig->render('tools/ghrss/index.html', [ "data" => get_ghrss_feeds() ]);
break;
default:
if ( str_ends_with($url, "/") ) {