2024-07-01 09:45:07 +00:00
|
|
|
|
|
|
|
<div class="menu-container">
|
|
|
|
<ul class="menu-left">
|
|
|
|
<li><a href="index.php">home</a></li>
|
2024-07-03 15:15:32 +00:00
|
|
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
2024-07-01 09:45:07 +00:00
|
|
|
<li><a href="?page=config">config</a></li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="menu-right">
|
2024-07-03 15:15:32 +00:00
|
|
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
2024-07-01 09:45:07 +00:00
|
|
|
<li><a href="?page=profile"><?= $user ?></a></li>
|
|
|
|
<li><a href="?page=logout">logout</a></li>
|
|
|
|
<?php } else { ?>
|
|
|
|
<li><a href="?page=login">login</a></li>
|
|
|
|
<li><a href="?page=register">register</a></li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|