summaryrefslogtreecommitdiff
path: root/includes/engelsystem.php
blob: caebe09b0e0585971144f0e364885a4febd30e5a (plain)
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
<?php

/**
 * Bootstrap application
 */
require __DIR__ . '/application.php';


/**
 * Include legacy code
 */
require __DIR__ . '/includes.php';


/**
 * Check for maintenance
 */
if ($app->get('config')->get('maintenance')) {
    $maintenance = file_get_contents(__DIR__ . '/../resources/views/layouts/maintenance.html');
    $maintenance = str_replace('%APP_NAME%', $app->get('config')->get('app_name'), $maintenance);
    echo $maintenance;
    die();
}


/**
 * Init authorization
 */
load_auth();