From b4a541eb8c0f4f272746ae0d6c6fd9a39a029487 Mon Sep 17 00:00:00 2001
From: Loris BALOCCHI
Date: Tue, 11 Jun 2024 10:56:40 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20ajout=20d'une=20=C3=A9bauche=20d?=
=?UTF-8?q?e=20panel=20admin=20et=20de=20possibilit=C3=A9=20de=20modifier?=
=?UTF-8?q?=20les=20informations=20du=20compte.=20Modification=20des=20hea?=
=?UTF-8?q?der&footer=20pour=20afficher=20le=20panel=20admin=20si=20connec?=
=?UTF-8?q?t=C3=A9=20en=20tant=20qu'ADM?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LICENSE | 2 +-
account/login/index.php | 14 +++++
account/profile/index.php | 36 ++++++++----
account/register/index.php | 13 +++++
account/register/register.php | 15 ++---
admin/index.php | 54 ++++++++++++++++++
base.html | 2 -
index.php | 15 ++++-
tools/updater.php | 104 ++++++++++++++++++++++++++++++++++
views/footer.php | 14 +++--
views/header.php | 13 +++++
11 files changed, 254 insertions(+), 28 deletions(-)
create mode 100644 admin/index.php
create mode 100644 tools/updater.php
diff --git a/LICENSE b/LICENSE
index aea024d..78962c0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2024 balocchi
+Copyright (c) 2024 Juliette CHARPENTIER & Loris BALOCCHI
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
diff --git a/account/login/index.php b/account/login/index.php
index 5fe9640..00ee10f 100644
--- a/account/login/index.php
+++ b/account/login/index.php
@@ -1,3 +1,17 @@
+
+
+
diff --git a/account/profile/index.php b/account/profile/index.php
index 8f2e209..1c296e4 100644
--- a/account/profile/index.php
+++ b/account/profile/index.php
@@ -15,7 +15,6 @@ if (isset($_COOKIE['userData'])) {
$familyName = $userData['familyName'];
$role = $userData['role'];
} else {
- echo "Cookie 'userData' non trouvé.";
header("Location: /account/login");
}
?>
@@ -44,17 +43,34 @@ if (isset($_COOKIE['userData'])) {
Mon profil :
- Email : " . $userData['email'] . "
";
- echo "Prénom : " . $userData['name'] . "
";
- echo "Nom : " . $userData['familyName'] . "
";
- echo "Rôle : " . $userData['role'] . "
";
+
+
+
Mettre à jour mes informations
+
Modifiez les informations de votre profil.
+
+
+
+
+
diff --git a/account/register/index.php b/account/register/index.php
index ba0a5cc..51a72ee 100644
--- a/account/register/index.php
+++ b/account/register/index.php
@@ -1,3 +1,16 @@
+
+
diff --git a/account/register/register.php b/account/register/register.php
index 79d43f5..92045ec 100644
--- a/account/register/register.php
+++ b/account/register/register.php
@@ -96,7 +96,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
echo "Mot de passe : " . $password . "
";
echo "Mot de passe hashé : " . $hashedPassword . "
";
echo "Rôle : " . $role . "
";
-
+ ?>
+ Aucun utilisateur n\'a été ajouté.";
}
@@ -107,14 +110,6 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
include ($_SERVER['DOCUMENT_ROOT'] . '/views/footer.php');
?>
-
-
-