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

28 lines
475 B
PHP
Raw Permalink Normal View History

2012-06-19 16:30:51 +00:00
<?php
2012-06-19 17:32:41 +00:00
include ("header.html");
?>
<section id="introduction">
<article>
<h2>
<?php
2012-06-19 16:30:51 +00:00
include("User.class.php");
2012-06-19 17:23:26 +00:00
$users = User::getUsers();
2012-06-19 17:03:50 +00:00
if (!array_key_exists($_GET['id'], $users))
echo "Une erreur est survenue";
2012-06-19 17:55:40 +00:00
else if (!$users[$_GET['id']]->isValidated())
2012-06-19 16:30:51 +00:00
{
2012-06-19 17:23:26 +00:00
$users[$_GET['id']]->set_validated(true);
User::setUsers($users);
echo "Vous êtes maintenant inscrit !";
2012-06-19 16:30:51 +00:00
}
else
echo "Vous êtes déjà inscrit";
?></h2>
</article>
</section>
</body>
</html>