@@ 622-635 (lines=14) @@ | ||
619 | * - Mozilla/5.0 (iPad; U; CPU iPhone OS 5_0 like Mac OS X; en_US) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.0.2;FBBV/4020.0;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/5.0;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US;FBSF/1.0] |
|
620 | * - Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10A403 [FBAN/FBIOS;FBAV/5.0;FBBV/47423;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/6.0;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US] |
|
621 | */ |
|
622 | static function is_facebook_for_ipad( ) { |
|
623 | if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) |
|
624 | return false; |
|
625 | ||
626 | $ua = strtolower( $_SERVER['HTTP_USER_AGENT'] ); |
|
627 | ||
628 | if ( false === strpos( $ua, 'ipad' ) ) |
|
629 | return false; |
|
630 | ||
631 | if ( false !== strpos( $ua, 'facebook' ) || false !== strpos( $ua, 'fbforiphone' ) || false !== strpos( $ua, 'fban/fbios;' ) ) |
|
632 | return true; |
|
633 | else |
|
634 | return false; |
|
635 | } |
|
636 | ||
637 | /* |
|
638 | * Detects if the current UA is WordPress for iOS |
|
@@ 974-987 (lines=14) @@ | ||
971 | * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'. |
|
972 | * |
|
973 | */ |
|
974 | static function is_symbian_s40_platform() { |
|
975 | ||
976 | if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) |
|
977 | return false; |
|
978 | ||
979 | $agent = strtolower( $_SERVER['HTTP_USER_AGENT'] ); |
|
980 | ||
981 | if ( strpos( $agent, 'series40' ) !== false ) { |
|
982 | if( strpos( $agent,'nokia' ) !== false || strpos( $agent,'ovibrowser' ) !== false || strpos( $agent,'nokiabrowser' ) !== false ) |
|
983 | return true; |
|
984 | } |
|
985 | ||
986 | return false; |
|
987 | } |
|
988 | ||
989 | static function is_J2ME_platform() { |
|
990 |