-
Notifications
You must be signed in to change notification settings - Fork 228
/
top.php
32 lines (26 loc) · 700 Bytes
/
top.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use \Tsugi\Core\LTIX;
if ( ! defined('COOKIE_SESSION') ) define('COOKIE_SESSION', true);
require_once "tsugi/config.php";
// Do this early to allow sanity-db.php to check in more detail after
// Headers has been sent
$PDOX = false;
try {
define('PDO_WILL_CATCH', true);
$PDOX = LTIX::getConnection();
$LAUNCH = LTIX::session_start();
} catch(PDOException $ex){
$PDOX = false; // sanity-db-will re-check this below
}
if ( $PDOX !== false ) LTIX::loginSecureCookie();
$OUTPUT->header();
?>
<style>
body {
font-family: var(--font-family);
font-size: 1.2rem;
line-height: 1.93rem;
color: var(--text);
background-color: var(--background-color);
}
</style>