diff --git a/index.php b/index.php index f1935b2..d573617 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,5 @@ bindValue(":path", $path); $stmt->execute(); $db->close(); - if ($result) { $target = $result["target"]; header("Location: {$target}"); exit(); } +?> -$body = ""; -if ($path != "/") { - $body = - "Link not found

- The short URL https://fwdkr.co{$path} could not be found.

-

"; -} -$body .= - "About fwdkr.co

- You've arrived at this page because you typed or linked to \"fwdkr.co\", the URL shortcut for - fwdekker.com.

+ + + + - Whenever you see a \"fwdkr.co\" link, you can trust that it will always take you to a website affiliated with - FWDekker."; + FWDekker -render_page("FWDekker", $body); + + + + +
+

FWDekker

+ + Link not found

+ The short URL https://fwdkr.co could not be found.

+

+ + About fwdkr.co

+ You've arrived at this page because you typed or linked to "fwdkr.co", the URL shortcut for + fwdekker.com.

+ + Whenever you see a "fwdkr.co" link, you can trust that it will always take you to a website affiliated with + FWDekker. +
+ diff --git a/render.php b/render.php deleted file mode 100644 index 7fdbc04..0000000 --- a/render.php +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - <?= $title ?> - - - - - -
-

FWDekker

- -
- -