c33bb4cb3a
added Router added .htaccess removed API-Module => is not used renamed batch to CRON
24 lines
497 B
PHP
Executable file
24 lines
497 B
PHP
Executable file
<?php
|
|
|
|
use Venom\Core\Config;
|
|
use Venom\Core\Setup;
|
|
use Venom\Venom;
|
|
|
|
require_once '../vendor/autoload.php';
|
|
Setup::loadConfig(false);
|
|
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(); |