'mysql:host=' . $config['db']['host'] . ';dbname=' . $config['db']['name'], 'user' => $config['db']['user'] , 'password' => $config['db']['password'] , 'cache' => 'temp/' , 'debugConsole' => $config['db']['debug'] ) ); $db -> query( 'SET NAMES utf8' ); $mdb = new medoo( [ 'database_type' => 'mysql', 'database_name' => $config['db']['name'], 'server' => $config['db']['host'], 'username' => $config['db']['user'], 'password' => $config['db']['password'], 'charset' => 'utf8' ] ); $user = \S::get_session( 'user' ); $cache = new \FileCache; if ( !$settings = \S::get_session( 'settings' ) ) \S::set_session( 'settings', $settings = \factory\Settings::getSettings() ); include 'functions/xajax.php'; \controls\Page::checkUrlParams(); $user = \S::get_session( 'user' ); echo \view\Page::show();