boka3/index.php
Erik Thuning 45f80a0855 Moved entitlement handling into the application.
Any user who can log in via SSO but doesn't have one of the required
entitlements will only ever see a listing of their own loans.
2024-02-29 15:44:19 +01:00

27 lines
485 B
PHP
Executable File

<?php
spl_autoload_register(function ($class) {
if($class == 'QRcode') {
include('./phpqrcode/qrlib.php');
return;
}
include('./include/'.$class.'.php');
});
require('./config.php');
require('./include/functions.php');
header('Content-Type: text/html; charset=UTF-8');
$page = 'checkout';
if(isset($_GET['page'])) {
$page = $_GET['page'];
}
$page = make_page($page);
if(!$page->authorized) {
$page = make_page('public');
}
$page->respond();
?>