trigger_error('Sorry! Website does not support the bot', 256); } // Xac dinh borwser cua client if ($client_info['is_bot']) { $client_info['browser'] = array('key' => 'Unknown', 'name' => 'Unknown', 'version' => 0); } else { $client_info['browser'] = array_combine(array('key', 'name'), explode('|', nv_getBrowser(NV_USER_AGENT))); if (preg_match('/^([^0-9]+)([0-9]+)\\.(.*)$/', $client_info['browser']['name'], $matches)) { $client_info['browser']['version'] = (int) $matches[2]; unset($matches); } else { $client_info['browser']['version'] = 0; } } // Xac dinh co phai truy cap bang mobile hay khong $client_info['is_mobile'] = nv_checkmobile(NV_USER_AGENT); // 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'; } // Xac dinh OS cua client $client_info['client_os'] = $client_info['is_bot'] ? array('key' => 'Robot', 'name' => $client_info['bot_info']['name']) : array_combine(array('key', 'name'), explode('|', nv_getOs(NV_USER_AGENT))); // Captcha if ($nv_Request->isset_request('scaptcha', 'get')) { require NV_ROOTDIR . '/includes/core/captcha.php'; } // Class ma hoa du lieu require NV_ROOTDIR . '/includes/class/crypt.class.php'; $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])) {
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); } //xac dinh co phai User_Agent cua NukeViet hay khong if (NV_USER_AGENT == 'NUKEVIET CMS ' . $global_config['version'] . '. Developed by VINADES. Url: http://nukeviet.vn. Code: ' . md5($global_config['sitekey'])) { define('NV_IS_MY_USER_AGENT', true); } //Xac dinh co phai la bot hay khong $client_info['bot_info'] = nv_check_bot(); $client_info['is_bot'] = !empty($client_info['bot_info']) ? 1 : 0; //Neu la bot va bot bi cam truy cap if ($client_info['is_bot'] and empty($client_info['bot_info']['allowed'])) { trigger_error('Sorry! Website does not support the bot', 256); } //Xac dinh co phai truy cap bang mobile hay khong $client_info['is_mobile'] = nv_checkmobile(); //Chan hoac chuyen huong neu truy cap tu mobile //if ($client_info['is_mobile']) // trigger_error('Sorry! Website does not support the browser your mobile', 256); //Ket noi voi class chong flood if (defined('NV_IS_FLOOD_BLOCKER') and NV_IS_FLOOD_BLOCKER == 1 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_once NV_ROOTDIR . '/includes/core/flood_blocker.php'; } //Xac dinh borwser cua client $client_info['browser'] = $client_info['is_bot'] ? array('key' => "Unknown", 'name' => 'Unknown') : array_combine(array('key', 'name'), explode("|", nv_getBrowser(NV_USER_AGENT, NV_ROOTDIR . '/includes/ini/br.ini'))); //Xac dinh OS cua client $client_info['client_os'] = $client_info['is_bot'] ? array('key' => "Robot", 'name' => $client_info['bot_info']['name']) : array_combine(array('key', 'name'), explode("|", nv_getOs(NV_USER_AGENT, NV_ROOTDIR . '/includes/ini/os.ini'))); //Captcha if ($nv_Request->isset_request('scaptcha', 'get')) { include_once NV_ROOTDIR . "/includes/core/captcha.php"; }
$client_info['is_bot'] = !empty($client_info['bot_info']) ? 1 : 0; //Neu la bot va bot bi cam truy cap if ($client_info['is_bot'] and empty($client_info['bot_info']['allowed'])) { trigger_error('Sorry! Website does not support the bot', 256); } //Xac dinh borwser cua client if ($client_info['is_bot']) { $client_info['browser'] = array('key' => "Unknown", 'name' => 'Unknown', 'version' => 0); } else { $client_info['browser'] = array_combine(array('key', 'name'), explode("|", nv_getBrowser(NV_USER_AGENT, NV_ROOTDIR . '/includes/ini/br.ini'))); preg_match("/^([^0-9]+)([0-9]+)\\.(.*)\$/", $client_info['browser']['name'], $matches); $client_info['browser']['version'] = (int) $matches[2]; unset($matches); } //Xac dinh co phai truy cap bang mobile hay khong $client_info['is_mobile'] = nv_checkmobile(NV_ROOTDIR . '/includes/ini/mobile.ini'); //Chan hoac chuyen huong neu truy cap tu mobile //if (!empty($client_info['is_mobile'])) // trigger_error('Sorry! Website does not support the browser your mobile', 256); //Ket noi voi class chong flood if (defined('NV_IS_FLOOD_BLOCKER') and NV_IS_FLOOD_BLOCKER == 1 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'; } //Xac dinh OS cua client $client_info['client_os'] = $client_info['is_bot'] ? array('key' => "Robot", 'name' => $client_info['bot_info']['name']) : array_combine(array('key', 'name'), explode("|", nv_getOs(NV_USER_AGENT, NV_ROOTDIR . '/includes/ini/os.ini'))); //Captcha if ($nv_Request->isset_request('scaptcha', 'get')) { include_once NV_ROOTDIR . "/includes/core/captcha.php"; } //Bat dau phien lam viec cua MySQL require NV_ROOTDIR . '/includes/class/mysql.class.php';