diff options
Diffstat (limited to 'public')
| l--------- | public/feed/ghrss/index.php | 1 | ||||
| -rw-r--r-- | public/feed/index.php | 3 | ||||
| -rw-r--r-- | public/index.php | 14 |
3 files changed, 16 insertions, 2 deletions
diff --git a/public/feed/ghrss/index.php b/public/feed/ghrss/index.php new file mode 120000 index 0000000..49697a9 --- /dev/null +++ b/public/feed/ghrss/index.php @@ -0,0 +1 @@ +../../../views/tools/ghrss/feed.php
\ No newline at end of file diff --git a/public/feed/index.php b/public/feed/index.php new file mode 100644 index 0000000..d29aba0 --- /dev/null +++ b/public/feed/index.php @@ -0,0 +1,3 @@ +<?php + +header("Location: https://" . $_SERVER["HTTP_HOST"] . "/feeds/"); 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, "/") ) { |
