nettsiden/www/admin/index.php

46 lines
1.2 KiB
PHP
Raw Normal View History

<?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">
2017-10-07 23:12:10 +02:00
<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>
2017-10-22 13:33:14 +02:00
<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>
2017-10-22 13:33:14 +02:00
<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>';
}
?>
2017-10-07 23:12:10 +02:00
</nav>
<header class="admin">Stor-&shy;gutt-&shy;leketøy</header>
2017-10-07 23:12:10 +02:00
<main>
<article>
<h2>Verktøy</h2>
2017-10-22 13:46:19 +02:00
<a class="btn adminbtn" href="aktiviteter/?page=1">Aktiviteter/Hendelser</a>
<a class="btn adminbtn" href="prosjekter/">Prosjekter</a>
2017-10-07 23:12:10 +02:00
</article>
</main>