venom/public/admin/index.php
versustunez fe7bacd2f6 - added ADMIN index file
- cleanup config
- added Asset Controller
2020-05-31 17:00:05 +02:00

30 lines
759 B
PHP

<?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();
}
$config = Config::getInstance();
$config->setIsAdmin(true);
require_once '../../config.inc.php';
require_once '../../module.inc.php';
if ($config->isDevMode()) {
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
}
$venom = new Venom();
$venom->initModules($modules);
$venom->initControllers($controllers);
$venom->run();