blob: 70da9a100260962744695ddbe6dc4a91acb85dc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php require "document-top.php"; ?>
<?php
include_once("controllers/LandingController.php");
/* The landing page practically acts as our page router
* Thanks https://www.taniarascia.com/the-simplest-php-router/
*/
$request = $_SERVER['REQUEST_URI'];
switch ($request) {
case "":
case "/":
LandingController::invoke();
break;
default:
http_response_code(404);
break;
}
?>
<?php require "document-bot.php"; ?>
|