From 0712b7e13ddb8015431deaa1369f91dca320b178 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 6 Feb 2022 03:35:20 +0100 Subject: [PATCH] Commit --- app/inc.php | 9 +++++++++ app/view/template/header.php | 2 ++ public/static/style/main.css | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/app/inc.php b/app/inc.php index f02c21f..5245ab6 100644 --- a/app/inc.php +++ b/app/inc.php @@ -22,16 +22,25 @@ spl_autoload_register(function ($class_name) { /* === App Setup === */ + +// Displays a custom page on error or exception new ErrorHandler; +// Grab configuration file $config = ( new Config(__DIR__ . '/config.php') )->config; +// Start database connection $database = new Database($config['database']); + +// Session wrapper $session = new Session; + +// Handles current user session $user = new User($session, $database); +// Decides if the user is allowed to view current page new AccessControl($user); $app = new App( diff --git a/app/view/template/header.php b/app/view/template/header.php index 8395110..823d19f 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -34,10 +34,12 @@
diff --git a/public/static/style/main.css b/public/static/style/main.css index 65979d1..0e82b1b 100644 --- a/public/static/style/main.css +++ b/public/static/style/main.css @@ -75,6 +75,11 @@ a { padding-left: .75rem; } +#nav h4 { + margin: 0; + border-bottom: 1px solid #aaa; +} + @media only screen and (max-width: 40rem) { #container { flex-flow: column;