fix: Update include paths for Discord webhooks in login, register, and new event pages
This commit is contained in:
parent
9adca94b82
commit
f9ebba1557
@ -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();
|
||||
|
@ -74,7 +74,7 @@ if (!$resultAddUser) {
|
||||
echo "<p class='text'>Mot de passe : " . $password . "</p>";
|
||||
echo "<p class='text'>Mot de passe hashé : " . $hashedPassword . "</p>";
|
||||
echo "<p class='text'>Rôle : " . $role . "</p>";
|
||||
include ($_SERVER['DOCUMENT_ROOT'] . '/views/discordWebhookRegister.php');
|
||||
include ($_SERVER['DOCUMENT_ROOT'] . '/tools/discordWebhookRegister.php');
|
||||
header("Location: /?res=login-succeeded");
|
||||
die();
|
||||
} else {
|
||||
|
@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
if ($result) {
|
||||
echo "<p class='text'>L'évènement a bien été créé.</p>";
|
||||
include ($_SERVER['DOCUMENT_ROOT'] . '/views/discordWebhookNewEvent.php');
|
||||
include ($_SERVER['DOCUMENT_ROOT'] . '/tools/discordWebhookNewEvent.php');
|
||||
header("Location: /events/new?result=event-creation-succeded");
|
||||
} else {
|
||||
echo "<p class='text'>Une erreur est survenue lors de la création de l'évènement. Erreur : " . mysqli_error($db) . "</p>";
|
||||
|
Loading…
Reference in New Issue
Block a user