Commit
This commit is contained in:
parent
65735fb457
commit
0712b7e13d
@ -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(
|
||||
|
@ -34,10 +34,12 @@
|
||||
<div id="container">
|
||||
|
||||
<div id="nav">
|
||||
<h4>Felles</h4>
|
||||
<ul>
|
||||
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
|
||||
<li><a href="<?=$this->config['root_url']?>example.php">Eksempel</a></li>
|
||||
<li><a href="<?=$this->config['root_url']?>simulator.php">Simulator</a></li>
|
||||
<li><a href="<?=$this->config['root_url']?>view-teams.php">Se lagtabell</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user