Initial commit
This commit is contained in:
37
loader.php
Normal file
37
loader.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
require_once "config.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.bive.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.item.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.prop.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.dom.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.search.php";
|
||||
require_once ENGINE_DIR . SLASH . "class.plugin.php";
|
||||
|
||||
$b = new Bive();
|
||||
$b->db_touch();
|
||||
|
||||
$b->router_set_not_found(function (){
|
||||
echo "Not found";
|
||||
});
|
||||
|
||||
// Подключаем Типы данных
|
||||
$b->datatype_load();
|
||||
|
||||
// Подключаем плагины
|
||||
$b->plugins_load();
|
||||
|
||||
// Событие окончания загрузки плагинов
|
||||
$b->event_start("plugins_loaded");
|
||||
|
||||
// Подключаем PlayArea
|
||||
$b->pa_connect_main();
|
||||
|
||||
// Событие окончания загрузки BiveEngine
|
||||
$b->event_start("engine_loaded");
|
||||
|
||||
// Перехват значений форм
|
||||
$b->event_form_capture();
|
||||
|
||||
// Включаем роутер
|
||||
$b->router_init();
|
||||
Reference in New Issue
Block a user