summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/public/index.php b/public/index.php
index c5c0c0b..fe70370 100644
--- a/public/index.php
+++ b/public/index.php
@@ -4,8 +4,6 @@ require_once __DIR__ . '/../app.php';
$url = strtok($_SERVER["REQUEST_URI"], '?');
-#var_dump([ "faces" => get_faces() ]);
-
switch( $url ) {
case("/"):
@@ -28,6 +26,14 @@ case("/tools/pizza"):
case("/tools/pizza/"):
echo $twig->render('tools/pizza/index.html');
break;
+case("/tools/untrack"):
+case("/tools/untrack/"):
+ $_url = "";
+ if ( isset($_REQUEST['url']) ) {
+ $_url = htmlspecialchars($_REQUEST['url']);
+ }
+ echo $twig->render('tools/untrack/index.html', [ "url" => $_url ]);
+ break;
default:
http_response_code(404);
echo $twig->render('404.html');