$browser = new Browser(NV_USER_AGENT); $client_info['browser'] = array(); $client_info['browser']['key'] = $browser->getBrowserKey(); $client_info['browser']['name'] = $browser->getBrowser(); 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 nv_Crypt($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