servnest/bottom.inc.php

18 lines
602 B
PHP
Raw Normal View History

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