From 1bd4554893d07129c02ebc526faf65a62a2cdd25 Mon Sep 17 00:00:00 2001 From: Boris Date: Wed, 26 Oct 2022 13:03:52 +0200 Subject: [PATCH] themes --- config.php | 2 ++ footer.php | 18 ++++++++----- header.php | 21 ++++++++++----- home.php | 29 ++++++++++++++++++++ login.php | 3 ++- map.php | 14 +++++++++- themes/magie/{ => css}/deco.css | 0 themes/magie/css/layout.css | 1 + themes/magie/layout.css | 1 - themes/spationaute/{ => css}/deco.css | 36 +++++++++++++++++++++++-- themes/spationaute/{ => css}/layout.css | 14 ++++++++-- themes/spationaute/{ => js}/deco.js | 0 themes/spationaute/{ => js}/layout.js | 0 13 files changed, 118 insertions(+), 21 deletions(-) create mode 100644 home.php rename themes/magie/{ => css}/deco.css (100%) create mode 120000 themes/magie/css/layout.css delete mode 120000 themes/magie/layout.css rename themes/spationaute/{ => css}/deco.css (94%) rename themes/spationaute/{ => css}/layout.css (97%) rename themes/spationaute/{ => js}/deco.js (100%) rename themes/spationaute/{ => js}/layout.js (100%) 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 ' + +