Commit
This commit is contained in:
parent
ff920711a0
commit
84434a4b00
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// TODO: ...
|
||||||
class Config
|
class Config
|
||||||
{
|
{
|
||||||
public array $config;
|
public array $config;
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
<?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>
|
<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>
|
||||||
|
Reference in New Issue
Block a user