servnest/common/bottom.php

14 lines
527 B
PHP
Raw Normal View History

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='" . CONF['common']['prefix'] . "/auth/logout'>Se déconnecter</a>";
2022-04-18 16:05:00 +02:00
} else { ?>
Vous n'êtes pas connecté·e à un compte Niver
2022-05-20 20:07:52 +02:00
<br><a class="authButton" href="<?= CONF['common']['prefix'] ?>/auth/login?redir=<?php if (SERVICE !== "") echo SERVICE . "/"; ?><?= PAGE ?>">Se connecter</a>
2022-04-18 16:05:00 +02:00
<?php } ?>
</small>
</footer>
</body>
2021-01-22 21:58:46 +01:00
</html>