16 lines
486 B
PHP
16 lines
486 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
|
|
<?php } ?>
|
|
</small>
|
|
</footer>
|
|
</body>
|
|
</html>
|