Change the question id after confirmation (protect again validation by sender)
This commit is contained in:
parent
d2544cabb2
commit
a058ffa29f
3 changed files with 30 additions and 51 deletions
|
|
@ -18,30 +18,13 @@
|
|||
<section>
|
||||
<h2>Merci de votre participation</h2>
|
||||
<p>
|
||||
<?php
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
$id = $_GET['id'];
|
||||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
|
||||
if (!$question)
|
||||
{
|
||||
echo "La question n'existe pas.";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo ("Votre question a bien été prise en compte.<br/>"
|
||||
."Un email a été envoyé à une personne du chan pour "
|
||||
."qu'elle valide votre question."
|
||||
."</p>
|
||||
<p>
|
||||
Votre question a bien été prise en compte.<br/>
|
||||
Un email a été envoyé à une personne du chan pour
|
||||
qu'elle valide votre question.
|
||||
</p>
|
||||
<p>
|
||||
Nemubot vous remercie de l'aider à agrandir sa base de donnée
|
||||
</p>");
|
||||
}
|
||||
?>
|
||||
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Reference in a new issue