2018-02-13 19:08:41 +01:00
|
|
|
<?php
|
|
|
|
// Set up database and user system,
|
|
|
|
// and include common files such as HTML includes or SimplSAMLphp.
|
|
|
|
|
|
|
|
require_once __DIR__ . DIRECTORY_SEPARATOR . 'agenda.php';
|
|
|
|
require_once __DIR__ . DIRECTORY_SEPARATOR . 'navbar.php';
|
|
|
|
|
2024-02-15 22:57:03 +01:00
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'config.php']);
|
2018-02-13 19:08:41 +01:00
|
|
|
|
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'src', '_autoload.php']);
|
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'vendor', 'simplesamlphp', 'simplesamlphp', 'lib', '_autoload.php']);
|
|
|
|
|
|
|
|
date_default_timezone_set('Europe/Oslo');
|
|
|
|
setlocale(LC_ALL, 'nb_NO');
|
|
|
|
|
2024-03-12 19:33:09 +01:00
|
|
|
$pdo = new \PDO($DB_DSN, $DB_USER, $DB_PASS);
|
2018-02-13 19:08:41 +01:00
|
|
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
|
|
$userManager = new \pvv\admin\UserManager($pdo);
|
|
|
|
|
|
|
|
$sp = 'default-sp';
|
2024-04-08 22:11:43 +02:00
|
|
|
$as = new \SimpleSAML\Auth\Simple($sp);
|
2018-02-13 19:08:41 +01:00
|
|
|
|
|
|
|
use \pvv\side\Agenda;
|
|
|
|
$agenda = new \pvv\side\Agenda([
|
2023-06-11 22:19:14 +02:00
|
|
|
// new \pvv\side\social\NerdepitsaActivity,
|
|
|
|
// new \pvv\side\social\AnimekveldActivity,
|
2024-09-01 19:45:59 +02:00
|
|
|
new \pvv\side\social\HackekveldActivity,
|
|
|
|
new \pvv\side\social\BrettspillActivity,
|
|
|
|
new \pvv\side\social\DriftkveldActivity,
|
2023-06-11 22:19:14 +02:00
|
|
|
new \pvv\side\DBActivity($pdo),
|
|
|
|
]);
|
2018-02-13 19:08:41 +01:00
|
|
|
|
|
|
|
$months_translations = ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'];
|