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/subscriptionConfirmation.php

41 lines
621 B
PHP

<?php
include ("header.html");
include("User.class.php");
$users = User::getUsers();
if (!array_key_exists($_GET['id'], $users))
{
$message = "unknown";
}
else if (!$users[$_GET['id']]->isValidated())
{
$users[$_GET['id']]->set_validated(true);
$message = "ok";
}
else
{
$message = "already";
}
?>
<section id="introduction">
<article>
<?php
if ($message == "ok") {
?>
<h2>Vous êtes maintenant inscrit !</h2>
<?php } else if ($message == "already") {
?>
<h2>Vous êtes déjà inscrit</h2>
<?php } else {?>
<h2>Une erreur est survenue</h2>
<?php } ?>
</article>
</section>
</body>
</html>