2017-11-01 12:35:45 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2018-01-16 19:56:05 +01:00
|
|
|
* Bootstrap application
|
2017-11-01 12:35:45 +01:00
|
|
|
*/
|
2018-01-16 19:56:05 +01:00
|
|
|
require __DIR__ . '/application.php';
|
2017-11-01 12:35:45 +01:00
|
|
|
|
|
|
|
|
2017-11-01 14:47:09 +01:00
|
|
|
/**
|
|
|
|
* Include legacy code
|
|
|
|
*/
|
|
|
|
require __DIR__ . '/includes.php';
|
|
|
|
|
|
|
|
|
2017-11-01 12:35:45 +01:00
|
|
|
/**
|
|
|
|
* Check for maintenance
|
|
|
|
*/
|
|
|
|
if ($app->get('config')->get('maintenance')) {
|
2018-08-26 02:54:52 +02:00
|
|
|
echo file_get_contents(__DIR__ . '/../templates/layouts/maintenance.html');
|
2017-11-01 12:35:45 +01:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-11-01 14:47:09 +01:00
|
|
|
* Init translations
|
2017-11-01 12:35:45 +01:00
|
|
|
*/
|
2017-11-01 14:47:09 +01:00
|
|
|
gettext_init();
|
2017-11-01 12:35:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-11-01 14:47:09 +01:00
|
|
|
* Init authorization
|
2017-11-01 12:35:45 +01:00
|
|
|
*/
|
|
|
|
load_auth();
|