diff --git a/account/login/login.php b/account/login/login.php index 9c04fcf..b59df73 100644 --- a/account/login/login.php +++ b/account/login/login.php @@ -50,7 +50,7 @@ if (!$result) { // Utilistation d'un Webhook Discord pour notifier l'administrateur de la //connexion des utilisateurs [fork de : https://stackoverflow.com/a/73547248] - include ($_SERVER['DOCUMENT_ROOT'] . '/views/discordWebhookLogin.php'); + include ($_SERVER['DOCUMENT_ROOT'] . '/tools/discordWebhookLogin.php'); header("Location: /?res=login-succeeded"); die(); diff --git a/account/register/register.php b/account/register/register.php index 91ac227..7399ff4 100644 --- a/account/register/register.php +++ b/account/register/register.php @@ -74,7 +74,7 @@ if (!$resultAddUser) { echo "

Mot de passe : " . $password . "

"; echo "

Mot de passe hashé : " . $hashedPassword . "

"; echo "

Rôle : " . $role . "

"; - include ($_SERVER['DOCUMENT_ROOT'] . '/views/discordWebhookRegister.php'); + include ($_SERVER['DOCUMENT_ROOT'] . '/tools/discordWebhookRegister.php'); header("Location: /?res=login-succeeded"); die(); } else { diff --git a/events/new/eventCreate.php b/events/new/eventCreate.php index fea88a4..f22d5d8 100644 --- a/events/new/eventCreate.php +++ b/events/new/eventCreate.php @@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($result) { echo "

L'évènement a bien été créé.

"; - include ($_SERVER['DOCUMENT_ROOT'] . '/views/discordWebhookNewEvent.php'); + include ($_SERVER['DOCUMENT_ROOT'] . '/tools/discordWebhookNewEvent.php'); header("Location: /events/new?result=event-creation-succeded"); } else { echo "

Une erreur est survenue lors de la création de l'évènement. Erreur : " . mysqli_error($db) . "

"; diff --git a/views/discordWebhookLogin.php b/tools/discordWebhookLogin.php similarity index 100% rename from views/discordWebhookLogin.php rename to tools/discordWebhookLogin.php diff --git a/views/discordWebhookNewEvent.php b/tools/discordWebhookNewEvent.php similarity index 100% rename from views/discordWebhookNewEvent.php rename to tools/discordWebhookNewEvent.php diff --git a/views/discordWebhookRegister.php b/tools/discordWebhookRegister.php similarity index 100% rename from views/discordWebhookRegister.php rename to tools/discordWebhookRegister.php