Skip to content
Snippets Groups Projects
Verified Commit 60dc39af authored by Thomas Pathier's avatar Thomas Pathier Committed by Thomas Pathier
Browse files

Add copyright and more features to the example

parent 70fd5064
Branches
No related tags found
No related merge requests found
......@@ -25,9 +25,23 @@ if(isset($_GET['login']))
<?php if(!$oauth->checkLogin()) { ?>
<p>Vous n'avez pas l'air connecté, vous voulez <a href="index.php?login">vous connecter</a> ?</p>
<?php } else { ?>
<p>Bonjour, <?php echo $oauth->getUserData('firstName'); ?>
<?php echo $oauth->getUserData('lastName'); ?>. Vous voulez <a href="logout.php">vous déconnecter</a> ?
<img src="https://auth.viarezo.fr/media/<?php echo $oauth->getUserData('photo'); ?>" height="40" style="float:left; margin:10px;" />
<p>Bonjour
<?php echo $oauth->getUserData('firstName'); ?>
<?php echo $oauth->getUserData('lastName'); ?>.<br>
Vous êtes né le :
<?php $d = new DateTime($oauth->getUserData('birthDate'));
echo $d->format('d/m/Y'); ?>
et avez <?php echo $d->diff(new DateTime)->y; ?> ans.<br>
Vous voulez <a href="logout.php">vous déconnecter</a> ?
</p>
<?php } ?>
<footer>
<hr>
<p style="text-align: center">
<!-- Cette mention doit apparaître sur votre site ! -->
Connexion gentiment fournie par <a href="https://tpxp.ddns.net" target="_blank">Thomas Pathier</a>. &lt;3
</p>
</footer>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment