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';
|
|
|
|
|
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'lib', 'OAuth2-Client', 'OAuth2Client.php']);
|
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'dataporten_config.php']);
|
|
|
|
|
|
|
|
require_once dirname(__DIR__) . implode(DIRECTORY_SEPARATOR, ['', 'sql_config.php']);
|
|
|
|
|
|
|
|
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');
|
|
|
|
|
|
|
|
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
|
|
|
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
|
|
$userManager = new \pvv\admin\UserManager($pdo);
|
|
|
|
|
|
|
|
$sp = 'default-sp';
|
|
|
|
$as = new SimpleSAML_Auth_Simple($sp);
|
|
|
|
|
|
|
|
use \pvv\side\Agenda;
|
|
|
|
$agenda = new \pvv\side\Agenda([
|
2022-01-29 19:33:56 +01:00
|
|
|
// new \pvv\side\social\NerdepitsaActivity,
|
2021-08-17 18:38:31 +02:00
|
|
|
// new \pvv\side\social\AnimekveldActivity,
|
2023-01-16 14:18:30 +01:00
|
|
|
new \pvv\side\social\HackekveldActivity,
|
2023-04-16 19:00:33 +02:00
|
|
|
// new \pvv\side\social\BrettspillActivity,
|
2022-11-19 21:23:41 +01:00
|
|
|
new \pvv\side\social\DriftkveldActivity,
|
2018-02-13 19:08:41 +01:00
|
|
|
new \pvv\side\DBActivity($pdo),
|
|
|
|
]);
|
|
|
|
|
|
|
|
$months_translations = ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'];
|