28 lines
687 B
PHP
Executable file
28 lines
687 B
PHP
Executable file
<?php
|
|
|
|
use Venom\Config;
|
|
use Venom\Venom;
|
|
|
|
require_once '../vendor/autoload.php';
|
|
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';
|
|
|
|
$config = Config::getInstance();
|
|
if ($config->isMaintenance()) {
|
|
echo 'Currently not available';
|
|
exit;
|
|
}
|
|
$venom = new Venom();
|
|
$venom->initModules($modules);
|
|
$venom->initControllers($controllers);
|
|
$venom->run(); |