Update file functions.php

This commit is contained in:
Jan BELLON 2024-03-07 21:36:14 +00:00
parent 53c88ca4ca
commit a76afd41ef

View File

@ -1,6 +1,10 @@
<?php
session_start();
if(!isset($_SESSION['role'])) {
$_SESSION['role'] = 0;
}
function nav($nav) {
foreach($nav as $name => $url) {
echo "<a href='$url'><div class='navitem'>$name</div></a>";