This commit is contained in:
William 2022-01-24 09:20:40 +01:00
parent ff920711a0
commit 84434a4b00
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php <?php
// TODO: ...
class Config class Config
{ {
public array $config; public array $config;

View File

@ -36,7 +36,13 @@
<div id="nav"> <div id="nav">
<ul> <ul>
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li> <li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
<li><a href="<?=$this->config['root_url']?>login.php">Logg inn</a></li>
<?php if ($this->user->loggedIn): ?>
<li><a href="<?=$this->config['root_url']?>logout.php">Logg ut</a></li>
<?php else: ?>
<li><a href="<?=$this->config['root_url']?>login.php">Logg inn</a></li>
<?php endif; ?>
<li><a href="<?=$this->config['root_url']?>example.php">Eksempel</a></li> <li><a href="<?=$this->config['root_url']?>example.php">Eksempel</a></li>
</ul> </ul>
</div> </div>