New message when confirmation of subscription
This commit is contained in:
parent
4aab9f87f9
commit
efe6b29132
@ -4,13 +4,32 @@ include ("header.html");
|
|||||||
include("User.class.php");
|
include("User.class.php");
|
||||||
|
|
||||||
$id = $_GET['id'];
|
$id = $_GET['id'];
|
||||||
echo "id = " . $id . "\n";
|
|
||||||
|
|
||||||
$user = User::getUser($id);
|
$user = User::getUser($id);
|
||||||
|
|
||||||
echo "Nom de l'utilisateur : " . $user->getEmail() . "\n";
|
if ($user == null)
|
||||||
|
$message = false;
|
||||||
|
else
|
||||||
|
{
|
||||||
$user->set_validated(true);
|
$user->set_validated(true);
|
||||||
echo "Utilisateur confirmé !"
|
$message = true;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Reference in New Issue
Block a user