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.
2012-06-19 16:30:51 +00:00
|
|
|
<?php
|
2012-06-19 17:32:41 +00:00
|
|
|
include ("header.html");
|
2012-06-19 19:22:31 +00:00
|
|
|
?>
|
|
|
|
<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
|
|
|
|
2012-06-19 17:35:40 +00:00
|
|
|
if (!array_key_exists($_GET['id'], $users))
|
2012-06-19 19:22:31 +00:00
|
|
|
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);
|
2012-06-19 19:22:31 +00:00
|
|
|
User::setUsers($users);
|
|
|
|
echo "Vous êtes maintenant inscrit !";
|
2012-06-19 16:30:51 +00:00
|
|
|
}
|
2012-06-19 17:39:37 +00:00
|
|
|
else
|
2012-06-19 19:22:31 +00:00
|
|
|
echo "Vous êtes déjà inscrit";
|
|
|
|
?></h2>
|
2012-06-19 17:39:37 +00:00
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|