blob: 8dcef322686baef78cbfc3ccd74029c71a0b54cf (
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
24
|
<?php require "document-top.php"; ?>
<?php
include_once("controllers/LandingController.php");
/* The landing page practically acts as our page router.
* All request get redirected to here (look at the devrix-job-board.conf)
* 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"; ?>
|