Commit
This commit is contained in:
parent
ff920711a0
commit
84434a4b00
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
// TODO: ...
|
||||
class Config
|
||||
{
|
||||
public array $config;
|
||||
|
@ -36,7 +36,13 @@
|
||||
<div id="nav">
|
||||
<ul>
|
||||
<li><a href="<?=$this->config['root_url']?>index.php">Forside</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>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user