From 446d966e807f46a9a754e26be572f0224700b70e Mon Sep 17 00:00:00 2001
From: halworsen
Date: Sat, 28 Oct 2017 17:19:40 +0200
Subject: [PATCH] Add simple login button & indicator to navbar
---
www/admin/aktiviteter/index.php | 18 +++++++++++++++++-
www/admin/index.php | 20 +++++++++++++++++++-
www/admin/prosjekter/index.php | 14 ++++++++++++++
www/aktiviteter/index.php | 21 +++++++++++++++++++--
www/css/style.css | 10 +++++++++-
www/index.php | 21 +++++++++++++++++++--
www/kalender/index.php | 18 +++++++++++++++++-
www/kontakt/index.php | 17 ++++++++++++++++-
www/prosjekt/index.php | 18 +++++++++++++++++-
www/prosjekt/ny.php | 13 ++++++++++++-
10 files changed, 159 insertions(+), 11 deletions(-)
diff --git a/www/admin/aktiviteter/index.php b/www/admin/aktiviteter/index.php
index d146972..8300ab0 100644
--- a/www/admin/aktiviteter/index.php
+++ b/www/admin/aktiviteter/index.php
@@ -5,6 +5,10 @@ setlocale(LC_ALL, 'no_NO');
error_reporting(E_ALL);
require __DIR__ . '/../../../src/_autoload.php';
require __DIR__ . '/../../../sql_config.php';
+require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php');
+$as = new SimpleSAML_Auth_Simple('default-sp');
+$attrs = $as->getAttributes();
+
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$customActivity = new \pvv\side\DBActivity($pdo);
@@ -40,12 +44,24 @@ $events = array_values(array_filter(
-
';
+ }else{
+ echo 'logg inn';
+ }
+ ?>