From 65fc0194b3ae059f212c577db4f4a8fec43069d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 9 Jan 2018 14:06:24 +0100 Subject: [PATCH] Only allow GET and POST HTTP request and die otherwise. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the form handling while at it. Signed-off-by: Jérôme Benoit --- config.php | 1 + footer.html | 2 +- formlogin.php | 6 ++-- header.html | 4 --- header.php | 13 ++++++++ index.php | 70 +++++++++++++++++++++--------------------- lib/utils.php | 10 +++++- login.php | 3 +- styles/airpolytech.css | 15 +++++++++ 9 files changed, 79 insertions(+), 45 deletions(-) diff --git a/config.php b/config.php index dd03f8f..35fc43c 100644 --- a/config.php +++ b/config.php @@ -1,6 +1,7 @@ 'http://localhost/~fraggle/airpolytech', 'host' => 'localhost', 'username' => 'fraggle', 'password' => '$Love79!', diff --git a/footer.html b/footer.html index 70960fb..e06db19 100644 --- a/footer.html +++ b/footer.html @@ -1,5 +1,5 @@ diff --git a/formlogin.php b/formlogin.php index 99db023..f3b8765 100644 --- a/formlogin.php +++ b/formlogin.php @@ -1,9 +1,9 @@ - diff --git a/header.php b/header.php index e81db37..ac394bf 100644 --- a/header.php +++ b/header.php @@ -1,5 +1,18 @@ + + diff --git a/login.php b/login.php index f797a7e..e976fc9 100644 --- a/login.php +++ b/login.php @@ -1,4 +1,5 @@ -
+ +

Email :

Mot de passe :

diff --git a/styles/airpolytech.css b/styles/airpolytech.css index 3093507..00dd294 100644 --- a/styles/airpolytech.css +++ b/styles/airpolytech.css @@ -6,6 +6,21 @@ body { margin: 8px; } +a, a:link a:active { + text-decoration: none; + color: #B11508; +} + +a:visited { + text-decoration: none; + color: #B11508; +} + +a:hover { + text-decoration: none; + color: #909090; +} + #footer { text-align: center; } -- 2.34.1