45f80a0855
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.
27 lines
485 B
PHP
Executable File
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();
|
|
|
|
?>
|