This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
nemubot-askweb/thanksValidation.php

52 lines
1.4 KiB
PHP
Raw Normal View History

2012-06-10 18:13:54 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="Stylesheet" href="style.css">
2012-06-10 18:13:54 +00:00
<title>Every Questions (BETA)</title>
</head>
<body>
<header>
<a href="http://www.h2g2.com" target="_blank">
<img src="marvin-robot_normal.png" alt="" id="banner"/>
</a>
<h1>Nemubot Questions (BETA)</h1>
2012-06-10 18:13:54 +00:00
</header>
<section id="introduction">
<article id="validate">
<h2><?php
include("Question.class.php");
include("QuestionsFile.class.php");
2012-06-15 12:12:05 +00:00
if (isset($_POST['id']))
{
$id = $_POST['id'];
$file = new QuestionsFile("questions.xml");
$question = $file->get_question($id);
if (!isset($question) || $question->isValidated())
echo 'Votre question à déjà été validée, merci de ne pas vous acharner.';
else
{
$question->validated();
$file->save();
echo 'Question validée !';
}
}
else
header("Location: ./");
?></h2>
<p>
Nemubot vous remercie de l'aider à agrandir sa base de données.<br><br>
Vous pouvez vous aussi poser des questions à <a href="./" >cette adresse</a>,
bien simplement essayer de répondre aux questions déjà posées en tapant
<code>!qcm</code> sur un cannal o&ugrave; nemubot est pr&eacute;sent.<br><br>
<span style="text-decoration:line-through;">Amusez-vous</span> R&eacute;visez bien !
</p>
</article>
</section>
</body>
2012-06-10 18:13:54 +00:00
</html>