2020-05-31 17:00:05 +02:00
|
|
|
<?php
|
|
|
|
|
2020-09-10 22:47:58 +02:00
|
|
|
use Venom\Core\Config;
|
|
|
|
use Venom\Core\Setup;
|
2020-05-31 17:00:05 +02:00
|
|
|
use Venom\Venom;
|
|
|
|
|
|
|
|
require_once '../../vendor/autoload.php';
|
2020-09-10 22:47:58 +02:00
|
|
|
Setup::loadConfig(true);
|
|
|
|
Setup::loadLanguage();
|
2020-05-31 17:00:05 +02:00
|
|
|
|
2020-09-10 22:47:58 +02:00
|
|
|
$config = Config::getInstance();
|
|
|
|
if ($config->isMaintenance()) {
|
|
|
|
echo 'Currently not available';
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
//if devMode is on show all errors!
|
2020-05-31 17:00:05 +02:00
|
|
|
if ($config->isDevMode()) {
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
ini_set('error_reporting', E_ALL);
|
|
|
|
}
|
|
|
|
$venom = new Venom();
|
2020-09-10 22:47:58 +02:00
|
|
|
Setup::loadRouters($venom);
|
|
|
|
Setup::loadModules($venom);
|
2020-05-31 17:00:05 +02:00
|
|
|
$venom->run();
|