From 4d3adf72589cbacf729031383546cb43f2c364b3 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 6 Apr 2024 17:05:31 +0200 Subject: [PATCH] SimpleSAML_Auth_Simple -> \SimpleSAML\Auth\Simple --- inc/include.php | 2 +- inc/navbar.php | 2 +- www/admin/aktiviteter/delete.php | 2 +- www/admin/aktiviteter/edit.php | 2 +- www/admin/aktiviteter/index.php | 2 +- www/admin/aktiviteter/update.php | 2 +- www/admin/brukere/index.php | 4 ++-- www/admin/brukere/update.php | 2 +- www/admin/index.php | 2 +- www/admin/motd/index.php | 4 ++-- www/admin/motd/update.php | 2 +- www/admin/prosjekter/delete.php | 2 +- www/admin/prosjekter/edit.php | 2 +- www/admin/prosjekter/index.php | 2 +- www/admin/prosjekter/update.php | 2 +- www/galleri/index.php | 2 +- www/prosjekt/edit.php | 2 +- www/prosjekt/info.php | 2 +- www/prosjekt/mine.php | 2 +- www/prosjekt/update.php | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/inc/include.php b/inc/include.php index 66107f6..516de07 100644 --- a/inc/include.php +++ b/inc/include.php @@ -18,7 +18,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); $sp = 'default-sp'; -$as = new SimpleSAML_Auth_Simple($sp); +$as = new \SimpleSAML\Auth\Simple($sp); use \pvv\side\Agenda; $agenda = new \pvv\side\Agenda([ diff --git a/inc/navbar.php b/inc/navbar.php index 22c0af0..6100586 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -35,7 +35,7 @@ function loginBar($sp = null, $pdo = null) { if (is_null($sp)) $sp = 'default-sp'; $result = "\n"; require_once(__DIR__ . '/../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); - $as = new SimpleSAML_Auth_Simple($sp); + $as = new \SimpleSAML\Auth\Simple($sp); $svg = ' diff --git a/www/admin/aktiviteter/delete.php b/www/admin/aktiviteter/delete.php index fd55dc6..8e2e6d9 100644 --- a/www/admin/aktiviteter/delete.php +++ b/www/admin/aktiviteter/delete.php @@ -6,7 +6,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/aktiviteter/edit.php b/www/admin/aktiviteter/edit.php index 1cc40ec..5972449 100644 --- a/www/admin/aktiviteter/edit.php +++ b/www/admin/aktiviteter/edit.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/aktiviteter/index.php b/www/admin/aktiviteter/index.php index 8dc9ba8..c2f8097 100644 --- a/www/admin/aktiviteter/index.php +++ b/www/admin/aktiviteter/index.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/aktiviteter/update.php b/www/admin/aktiviteter/update.php index f96ea0c..8f1e9f9 100644 --- a/www/admin/aktiviteter/update.php +++ b/www/admin/aktiviteter/update.php @@ -8,7 +8,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/brukere/index.php b/www/admin/brukere/index.php index dbbfa77..bce87a3 100644 --- a/www/admin/brukere/index.php +++ b/www/admin/brukere/index.php @@ -7,7 +7,7 @@ require __DIR__ . '/../../../inc/navbar.php'; require __DIR__ . '/../../../src/_autoload.php'; require __DIR__ . '/../../../config.php'; require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $attrs = $as->getAttributes(); $pdo = new \PDO($DB_DSN, $DB_USER, $DB_PASS); @@ -15,7 +15,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/brukere/update.php b/www/admin/brukere/update.php index 2bd1bc9..b715eff 100644 --- a/www/admin/brukere/update.php +++ b/www/admin/brukere/update.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/index.php b/www/admin/index.php index 00c91f1..105f0aa 100644 --- a/www/admin/index.php +++ b/www/admin/index.php @@ -5,7 +5,7 @@ $pdo = new \PDO($DB_DSN, $DB_USER, $DB_PASS); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/motd/index.php b/www/admin/motd/index.php index ba55252..82e3400 100644 --- a/www/admin/motd/index.php +++ b/www/admin/motd/index.php @@ -7,7 +7,7 @@ require __DIR__ . '/../../../inc/navbar.php'; require __DIR__ . '/../../../src/_autoload.php'; require __DIR__ . '/../../../config.php'; require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $attrs = $as->getAttributes(); $pdo = new \PDO($DB_DSN, $DB_USER, $DB_PASS); @@ -15,7 +15,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/motd/update.php b/www/admin/motd/update.php index 9b63307..2271ea5 100644 --- a/www/admin/motd/update.php +++ b/www/admin/motd/update.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/prosjekter/delete.php b/www/admin/prosjekter/delete.php index 586daa9..573c5e7 100644 --- a/www/admin/prosjekter/delete.php +++ b/www/admin/prosjekter/delete.php @@ -6,7 +6,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/prosjekter/edit.php b/www/admin/prosjekter/edit.php index 51dc7d4..474b501 100644 --- a/www/admin/prosjekter/edit.php +++ b/www/admin/prosjekter/edit.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/prosjekter/index.php b/www/admin/prosjekter/index.php index b372f9a..2b6f916 100644 --- a/www/admin/prosjekter/index.php +++ b/www/admin/prosjekter/index.php @@ -10,7 +10,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/admin/prosjekter/update.php b/www/admin/prosjekter/update.php index 02e6fa5..ef5477d 100644 --- a/www/admin/prosjekter/update.php +++ b/www/admin/prosjekter/update.php @@ -8,7 +8,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; diff --git a/www/galleri/index.php b/www/galleri/index.php index c5ab4cb..e6fac96 100644 --- a/www/galleri/index.php +++ b/www/galleri/index.php @@ -7,7 +7,7 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $loginname = $attrs['uid'][0]; diff --git a/www/prosjekt/edit.php b/www/prosjekt/edit.php index ece7a7b..4f3054a 100644 --- a/www/prosjekt/edit.php +++ b/www/prosjekt/edit.php @@ -6,7 +6,7 @@ require __DIR__ . '/../../src/_autoload.php'; require __DIR__ . '/../../config.php'; require_once __DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'; -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); diff --git a/www/prosjekt/info.php b/www/prosjekt/info.php index b006add..99bab63 100644 --- a/www/prosjekt/info.php +++ b/www/prosjekt/info.php @@ -10,7 +10,7 @@ if(isset($_GET['id'])){ } require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $attrs = $as->getAttributes(); $projectManager = new \pvv\side\ProjectManager($pdo); diff --git a/www/prosjekt/mine.php b/www/prosjekt/mine.php index 5cf0ddd..966dca0 100644 --- a/www/prosjekt/mine.php +++ b/www/prosjekt/mine.php @@ -6,7 +6,7 @@ require __DIR__ . '/../../src/_autoload.php'; require __DIR__ . '/../../config.php'; require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); diff --git a/www/prosjekt/update.php b/www/prosjekt/update.php index 9822c7f..a4f5071 100644 --- a/www/prosjekt/update.php +++ b/www/prosjekt/update.php @@ -12,7 +12,7 @@ if(!isset($_POST['title']) or !isset($_POST['desc']) or !isset($_POST['active']) } require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); -$as = new SimpleSAML_Auth_Simple('default-sp'); +$as = new \SimpleSAML\Auth\Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes();