From 6405835a808d5ac4986ff463a7be0b146058440d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 9 Jan 2018 12:37:53 +0100 Subject: [PATCH] Properly separate the HTTP GET requests from the POST requests treatement. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- formlogin.php | 11 ++++++++ index.php | 62 +++++++++++++++++++++++++++++++++++++------- {libs => lib}/db.php | 0 lib/utils.php | 9 +++++++ login.php | 2 +- 5 files changed, 73 insertions(+), 11 deletions(-) create mode 100644 formlogin.php rename {libs => lib}/db.php (100%) create mode 100644 lib/utils.php diff --git a/formlogin.php b/formlogin.php new file mode 100644 index 0000000..99db023 --- /dev/null +++ b/formlogin.php @@ -0,0 +1,11 @@ + diff --git a/index.php b/index.php index 2829b26..125f620 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ diff --git a/login.php b/login.php index 89b3b2d..f797a7e 100644 --- a/login.php +++ b/login.php @@ -1,4 +1,4 @@ -
+

Email :

Mot de passe :

-- 2.34.1