2020-03-02 10:59:28 +01:00
|
|
|
<?php
|
2020-03-28 20:11:51 +01:00
|
|
|
|
2020-09-10 22:47:58 +02:00
|
|
|
use Venom\Core\Config;
|
|
|
|
use Venom\Core\Setup;
|
2020-03-28 20:11:51 +01:00
|
|
|
use Venom\Venom;
|
|
|
|
|
2020-03-02 10:59:28 +01:00
|
|
|
require_once '../vendor/autoload.php';
|
2020-09-10 22:47:58 +02:00
|
|
|
Setup::loadConfig(false);
|
|
|
|
Setup::loadLanguage();
|
2020-03-28 20:11:51 +01:00
|
|
|
|
|
|
|
$config = Config::getInstance();
|
|
|
|
if ($config->isMaintenance()) {
|
|
|
|
echo 'Currently not available';
|
|
|
|
exit;
|
|
|
|
}
|
2020-04-03 13:19:26 +02:00
|
|
|
//if devMode is on show all errors!
|
|
|
|
if ($config->isDevMode()) {
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
ini_set('error_reporting', E_ALL);
|
|
|
|
}
|
2020-03-28 20:11:51 +01:00
|
|
|
$venom = new Venom();
|
2020-09-10 22:47:58 +02:00
|
|
|
Setup::loadRouters($venom);
|
|
|
|
Setup::loadModules($venom);
|
2020-03-28 20:11:51 +01:00
|
|
|
$venom->run();
|