2020-03-02 10:59:28 +01:00
|
|
|
<?php
|
2020-03-28 20:11:51 +01:00
|
|
|
|
|
|
|
use Venom\Config;
|
|
|
|
use Venom\Venom;
|
|
|
|
|
2020-03-02 10:59:28 +01:00
|
|
|
require_once '../vendor/autoload.php';
|
2020-03-28 20:11:51 +01:00
|
|
|
if (!file_exists('../config.inc.php')) {
|
|
|
|
copy('../config.base.php', '../config.inc.php');
|
|
|
|
echo 'Please change Config @ config.inc.php';
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
if (!file_exists('../module.inc.php')) {
|
|
|
|
copy('../module.base.php', '../module.inc.php');
|
|
|
|
echo 'Please change Modules @ module.inc.php';
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
require_once '../config.inc.php';
|
|
|
|
require_once '../module.inc.php';
|
2020-07-24 11:08:07 +02:00
|
|
|
require_once '../lang.php';
|
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();
|
|
|
|
$venom->initModules($modules);
|
|
|
|
$venom->initControllers($controllers);
|
|
|
|
$venom->run();
|