From 4c82b3f214d8c30e5a57183d820232f375dbfe1b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 14:35:53 +0300 Subject: Removed unused front-end files and made landing page dynamic (with the new style) --- src/index.php | 86 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 30 deletions(-) (limited to 'src/index.php') diff --git a/src/index.php b/src/index.php index 2ce8c4b..d00c7d9 100644 --- a/src/index.php +++ b/src/index.php @@ -1,34 +1,60 @@ - + + + + + + + Jobs + - + + + +
+ -/* 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; - case "/CreateOffer": - case "/CreateOffer/": - CreateOfferController::invoke(); - break; - case "/Dashboard": - case "/Dashboard/": - DashboardLoginController::invoke(); - break; - default: - http_response_code(404); - break; -} -?> - - + + -- cgit v1.3.1-23-gd82d