summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorhorus2021-03-15 18:16:14 +0100
committerhorus2021-03-15 18:16:14 +0100
commitd2dc7ccfa1c3f296e6ca5e5ef9459ab154670b70 (patch)
tree2e2d08dba1d3a02fb80cbcb556a03195d8e9a103 /public
parente1554c725e22909a5fb239f481e76e30abc306f9 (diff)
downloadmoehring-d2dc7ccfa1c3f296e6ca5e5ef9459ab154670b70.tar.gz
Add untrack
Diffstat (limited to 'public')
-rw-r--r--public/index.php10
-rw-r--r--public/resolve.php5
2 files changed, 13 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');
diff --git a/public/resolve.php b/public/resolve.php
new file mode 100644
index 0000000..9d2cdb2
--- /dev/null
+++ b/public/resolve.php
@@ -0,0 +1,5 @@
+<?php
+
+require_once __DIR__ . '/../functions.php';
+
+echo resolve();