servnest/bottom.inc.php

18 lines
567 B
PHP
Raw Normal View History

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