nxs_chckBrwsr

The NextScripts: Social Networks Auto-Poster nxs chckBrwsr function.

Description

nxs_chckBrwsr(); 

Usage

  1. if ( !function_exists( 'nxs_chckBrwsr' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nxs_chckBrwsr(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/nxs_functions.php  
  1. function nxs_chckBrwsr() { $isOK = false; if (empty($_SERVER['HTTP_USER_AGENT'])) return true; 
  2. if (preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; if (preg_match('/Internet Explorer/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; 
  3. if (preg_match('/Firefox/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; if (preg_match('/Opera/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; 
  4. if (preg_match('/Chrome/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; if (preg_match('/Safari/i', $_SERVER['HTTP_USER_AGENT'])) $isOK = true; 
  5. if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i', strtolower($_SERVER['HTTP_USER_AGENT'])) || (!empty($_SERVER['HTTP_ACCEPT']) && strpos(strtolower($_SERVER['HTTP_ACCEPT']), 'application/vnd.wap.xhtml+xml')>0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) $isOK = false; 
  6. return $isOK;