rework structure
added Router added .htaccess removed API-Module => is not used renamed batch to CRON
This commit is contained in:
parent
ccf2f506f0
commit
c33bb4cb3a
37 changed files with 680 additions and 190 deletions
|
|
@ -1,22 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Venom\Config;
|
||||
use Venom\Core\Config;
|
||||
use Venom\Core\Setup;
|
||||
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';
|
||||
require_once '../lang.php';
|
||||
Setup::loadConfig(false);
|
||||
Setup::loadLanguage();
|
||||
|
||||
$config = Config::getInstance();
|
||||
if ($config->isMaintenance()) {
|
||||
|
|
@ -29,6 +19,6 @@ if ($config->isDevMode()) {
|
|||
ini_set('error_reporting', E_ALL);
|
||||
}
|
||||
$venom = new Venom();
|
||||
$venom->initModules($modules);
|
||||
$venom->initControllers($controllers);
|
||||
Setup::loadRouters($venom);
|
||||
Setup::loadModules($venom);
|
||||
$venom->run();
|
||||
Loading…
Add table
Add a link
Reference in a new issue