49 lines
932 B
PHP
49 lines
932 B
PHP
|
<!DOCTYPE html>
|
||
|
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf8" />
|
||
|
<link rel="Stylesheet" href="style.css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>
|
||
|
<div id="main_title">
|
||
|
<a href="http://www.h2g2.com" target="_blank">
|
||
|
<img src="marvin-robot_normal.png" alt="" id="banner"/>
|
||
|
</a>
|
||
|
<h1>Nemubot Questions</h1>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<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>
|
||
|
Nemubot vous remercie de l'aider à agrandir sa base de donnée
|
||
|
</p>");
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
</section>
|
||
|
</body>
|
||
|
</html>
|
||
|
|