venom/public/admin/index.php
Maurice Grönwoldt c33bb4cb3a rework structure
added Router
added .htaccess
removed API-Module => is not used
renamed batch to CRON
2020-09-10 22:47:58 +02:00

24 lines
499 B
PHP

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