servnest/bottom.inc.php

17 lines
486 B
PHP
Raw Normal View History

2021-01-23 16:26:46 +00:00
<?php
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
exit("This file is meant to be included.");
2021-01-23 16:26:46 +00:00
?>
2021-05-14 19:10:56 +00:00
</main>
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>