diff --git a/config.php b/config.php index b19d45e..236c452 100644 --- a/config.php +++ b/config.php @@ -95,6 +95,8 @@ if (!isset($_SESSION['gameId'])) { } +define('DEFAULT_WEBPAGE_TITLE', 'La bureautique'); + require_once('functions.php'); diff --git a/footer.php b/footer.php index d7c3f61..8c4b186 100644 --- a/footer.php +++ b/footer.php @@ -4,14 +4,18 @@

Created by La Bureautique Incorporated, STI (Société Totalement Irresponsable) au capital de 200 000 Ğ1.

- - + + foreach ($files as $f) { + + echo ' + + '; + } + ?> diff --git a/header.php b/header.php index 8884d72..87f9f39 100644 --- a/header.php +++ b/header.php @@ -1,15 +1,22 @@ - + - La bureautique + <?php echo $webpageTitle; ?> - - - '; + foreach ($files as $f) { + + echo ' + '; + } ?> diff --git a/home.php b/home.php new file mode 100644 index 0000000..1322ff6 --- /dev/null +++ b/home.php @@ -0,0 +1,29 @@ + + + + + +'; + +include_once('footer.php'); + diff --git a/login.php b/login.php index 5cb8190..5299284 100644 --- a/login.php +++ b/login.php @@ -21,11 +21,12 @@ if (isset($_POST['salt'], $_POST['pepper'])) { $_SESSION['salt'] = $_POST['salt']; $_SESSION['pepper'] = $_POST['pepper']; - header('Location:map.php'); + header('Location:home.php'); } else { $bodyIds = 'login-page'; + $webpageTitle = $games[$_SESSION['gameId']]['title']; include_once('header.php'); diff --git a/map.php b/map.php index d899760..91ea685 100644 --- a/map.php +++ b/map.php @@ -34,10 +34,22 @@ $origLoc->setPosition($origLat, $origLon); echo ' + +