diff --git a/confirmation.php b/confirmation.php index a9d8cc2..7fe2391 100644 --- a/confirmation.php +++ b/confirmation.php @@ -64,46 +64,18 @@ else } else echo ("Error with the email"); + + header("Location: ./thanksConfirmation.php?id=" . $question->getId()); } //*/ ?> - - - + + + -
-
- - - -

Nemubot Questions

-
-
- -
-

Merci de votre participation

-

- " - ."Un email a été envoyé à une personne du chan pour " - ."qu'elle valide votre question." - ."

-

- Nemubot vous remercie de l'aider à agrandir sa base de donnée -

"); - } - ?> - -
- + \ No newline at end of file diff --git a/thanksConfirmation.php b/thanksConfirmation.php new file mode 100644 index 0000000..2400391 --- /dev/null +++ b/thanksConfirmation.php @@ -0,0 +1,48 @@ + + + + + + + + +
+
+ + + +

Nemubot Questions

+
+
+ +
+

Merci de votre participation

+

+ get_question($id); + + if (!$question) + { + echo "La question n'existe pas."; + } + else + { + echo ("Votre question a bien été prise en compte.
" + ."Un email a été envoyé à une personne du chan pour " + ."qu'elle valide votre question." + ."

+

+ Nemubot vous remercie de l'aider à agrandir sa base de donnée +

"); + } + ?> + +
+ + + diff --git a/validation.php b/validation.php index f0d9272..5f6228a 100644 --- a/validation.php +++ b/validation.php @@ -8,8 +8,6 @@ $id = $_GET['id']; $file = new QuestionsFile("questions.xml"); $question = $file->get_question($id); -$message = "Question validated maddafakka"; - ?>