46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php');
|
|
$as = new SimpleSAML_Auth_Simple('default-sp');
|
|
$attrs = $as->getAttributes();
|
|
?>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<link rel="stylesheet" href="../css/normalize.css">
|
|
<link rel="stylesheet" href="../css/style.css">
|
|
<link rel="stylesheet" href="../css/events.css">
|
|
<link rel="stylesheet" href="../css/admin.css">
|
|
|
|
<nav>
|
|
<ul>
|
|
<li><a href="../">hjem</a></li>
|
|
<!--<li><a href="../prosjekt/">prosjekter</a></li>-->
|
|
<li><a href="../kalender/">kalender</a></li>
|
|
<li><a href="../aktiviteter/">aktiviteter</a></li>
|
|
<li><a href="../prosjekt/">prosjekter</a></li>
|
|
<li><a href="../kontakt/">kontakt</a></li>
|
|
<li><a href="../pvv/">wiki</a></li>
|
|
</ul>
|
|
|
|
<?php
|
|
$attr = $as->getAttributes();
|
|
if($attr){
|
|
$uname = $attr["uid"][0];
|
|
echo '<p class="login">logget inn som: ' . $uname . '</p>';
|
|
}else{
|
|
echo '<a class="login" href="' . $as->getLoginURL() . '">logg inn</a>';
|
|
}
|
|
?>
|
|
</nav>
|
|
|
|
<header class="admin">Stor-­gutt-­leketøy</header>
|
|
|
|
<main>
|
|
|
|
<article>
|
|
<h2>Verktøy</h2>
|
|
<a class="btn adminbtn" href="aktiviteter/?page=1">Aktiviteter/Hendelser</a>
|
|
<a class="btn adminbtn" href="prosjekter/">Prosjekter</a>
|
|
</article>
|
|
|
|
</main>
|