//vd: /ten_thu_muc_chua_site/ $global_config['cookie_domain'] = $nv_Request->cookie_domain; //vd: .mydomain1.com $global_config['site_url'] = $nv_Request->site_url; //vd: http://mydomain1.com/ten_thu_muc_chua_site $global_config['my_domains'] = $nv_Request->my_domains; //vd: "mydomain1.com,mydomain2.com" $sys_info['sessionpath'] = $nv_Request->session_save_path; //vd: D:/AppServ/www/ten_thu_muc_chua_site/sess/ $client_info['session_id'] = $nv_Request->session_id; //ten cua session $client_info['referer'] = $nv_Request->referer; //referer $client_info['is_myreferer'] = $nv_Request->referer_key; //0 = referer tu ben ngoai site, 1 = referer noi bo, 2 = khong co referer $client_info['selfurl'] = $nv_Request->my_current_domain . $nv_Request->request_uri; //trang dang xem $client_info['agent'] = $nv_Request->user_agent; //HTTP_USER_AGENT $global_config['sitekey'] = md5($_SERVER['SERVER_NAME'] . NV_ROOTDIR . $client_info['session_id']); //Chan truy cap neu HTTP_USER_AGENT == 'none' if (NV_USER_AGENT == "none") { trigger_error('We\'re sorry. The software you are using to access our website is not allowed. Some examples of this are e-mail harvesting programs and programs that will copy websites to your hard drive. If you feel you have gotten this message in error, please send an e-mail addressed to admin. Your I.P. address has been logged. Thanks.', 256); } //Captcha if ($nv_Request->isset_request('scaptcha', 'get')) { include_once NV_ROOTDIR . '/includes/core/captcha.php'; } //Class ma hoa du lieu $crypt = new NukeViet\Core\Encryption($global_config['sitekey']); $nv_Cache = new NukeViet\Cache\Files(NV_ROOTDIR . '/' . NV_CACHEDIR, NV_LANG_DATA, NV_CACHE_PREFIX);
if (preg_match('/^([0-9]+)\\.(.*)$/', $browser->getVersion(), $matches)) { $client_info['browser']['version'] = (int) $matches[1]; } else { $client_info['browser']['version'] = 0; } $client_info['is_mobile'] = $browser->isMobile(); $client_info['is_tablet'] = $browser->isTablet(); $client_info['is_bot'] = $browser->isRobot(); $client_info['client_os'] = array('key' => $browser->getPlatformKey(), 'name' => $browser->getPlatform()); $is_mobile_tablet = $client_info['is_mobile'] . '-' . $client_info['is_tablet']; if ($is_mobile_tablet != $nv_Request->get_string('is_mobile_tablet', 'session')) { $nv_Request->set_Session('is_mobile_tablet', $is_mobile_tablet); $nv_Request->unset_request('nv' . NV_LANG_DATA . 'themever', 'cookie'); } // Ket noi voi class chong flood if ($global_config['is_flood_blocker'] and !$nv_Request->isset_request('admin', 'session') and (!$nv_Request->isset_request('second', 'get') or $nv_Request->isset_request('second', 'get') and $client_info['is_myreferer'] != 1)) { require NV_ROOTDIR . '/includes/core/flood_blocker.php'; } // Captcha if ($nv_Request->isset_request('scaptcha', 'get')) { require NV_ROOTDIR . '/includes/core/captcha.php'; } // Class ma hoa du lieu $crypt = new NukeViet\Core\Encryption($global_config['sitekey']); $global_config['ftp_user_pass'] = $crypt->aes_decrypt(nv_base64_decode($global_config['ftp_user_pass'])); if (isset($nv_plugin_area[1])) { // Kết nối với các plugin Trước khi kết nối CSDL foreach ($nv_plugin_area[1] as $_fplugin) { include NV_ROOTDIR . '/includes/plugin/' . $_fplugin; } }