2023-09-14 17:33:54 +00:00
|
|
|
<?php
|
2023-09-15 15:10:03 +00:00
|
|
|
global $twig;
|
|
|
|
|
2023-09-14 17:33:54 +00:00
|
|
|
require_once '_config.php';
|
2023-09-15 15:10:03 +00:00
|
|
|
|
|
|
|
session_start();
|
2023-09-15 14:47:56 +00:00
|
|
|
|
|
|
|
switch ($_SERVER['REQUEST_URI']) {
|
|
|
|
case "/":
|
|
|
|
echo $twig->render('index.twig', [
|
|
|
|
'user' => null
|
|
|
|
]);
|
|
|
|
break;
|
|
|
|
case "/nations":
|
|
|
|
echo $twig->render('nations.twig', [
|
|
|
|
'user' => null
|
|
|
|
]);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
http_response_code(404);
|
|
|
|
echo $twig->render('404.twig', [
|
|
|
|
'user' => null
|
|
|
|
]);
|
|
|
|
break;
|
|
|
|
}
|