17 lines
602 B
PHP
17 lines
602 B
PHP
<?php
|
|
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
|
|
exit("This file is meant to be included.");
|
|
?>
|
|
</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>
|
|
</html>
|