From d2dc7ccfa1c3f296e6ca5e5ef9459ab154670b70 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 15 Mar 2021 18:16:14 +0100 Subject: Add untrack --- public/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'public/index.php') 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'); -- cgit v1.2.3