2021-01-23 16:26:46 +00:00
|
|
|
<?php
|
|
|
|
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
|
2021-02-08 11:57:32 +00:00
|
|
|
exit("This file is meant to be included.");
|
2021-01-23 16:26:46 +00:00
|
|
|
?>
|
2021-01-22 20:58:46 +00:00
|
|
|
<footer>
|
|
|
|
<small>
|
|
|
|
<?php if (isset($_SESSION['username'])) {
|
2021-02-16 18:20:19 +00:00
|
|
|
echo "Connecté·e en tant que " . $_SESSION['username'] . "<br><a class='authButton' href='" . PREFIX . "/auth/logout'>Se déconnecter</a>";
|
2021-01-22 20:58:46 +00:00
|
|
|
} else { ?>
|
|
|
|
Vous n'êtes pas connecté·e à un compte Niver
|
|
|
|
<?php } ?>
|
|
|
|
</small>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|