echo "<br>checkpoint[ini]: " . round(getmicrotime() - $pradedam, 2); } if (empty($lang) || $lang != 'lt' && $lang != 'en') { $lang = $g_ini->read_var('site', 'Language'); } $lang = clean_name($lang); include_once $RELPATH . $LANGPATH . $lang . '.inc.php'; if (isset($GLOBALS['bench'])) { echo "<br>checkpoint[lang]: " . round(getmicrotime() - $pradedam, 2); } $g_db = new avDb(); if (isset($GLOBALS['bench'])) { echo "<br>checkpoint[db]: " . round(getmicrotime() - $pradedam, 2); } $g_sess = new avSession(); if (isset($GLOBALS['bench'])) { echo "<br>checkpoint[session]: " . round(getmicrotime() - $pradedam, 2); } $g_tpl = new phemplate($RELPATH, 'keep'); $g_tpl->set_error_handler(&$g_error); $g_tpl->set_var('RELPATH', $RELPATH); //$g_tpl->set_var('G_PHP_SELF', $PHP_SELF); $g_tpl->set_var('G_PHP_SELF', $_SERVER["PHP_SELF"]); $g_tpl->set_var('lang', $g_lang); $avms_version = '2.1'; $g_tpl->set_var('avms_version', $avms_version); $g_tpl->set_var('users_online', $g_sess->users_online("registered")); if (empty($g_user_id) || !$g_sess->userID) { $g_user_id = false; } $g_usr = new avUser($g_user_id);