// cache global $cache; $cache = Cache::getInstance(); // load plugins init.php foreach (Plugins::getInits() as $init) { require $init; } // event system global $hooks; $hooks = new Hooks(); $hooks->load(); $hooks->trigger(HOOK_INIT); // twig require_once SYSTEM . 'twig.php'; // action, used by many pages $action = $_REQUEST['action'] ?? ''; define('ACTION', $action);