@@ 617-630 (lines=14) @@ | ||
614 | * - 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] |
|
615 | * - 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] |
|
616 | */ |
|
617 | static function is_facebook_for_ipad( ) { |
|
618 | if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) |
|
619 | return false; |
|
620 | ||
621 | $ua = strtolower( $_SERVER['HTTP_USER_AGENT'] ); |
|
622 | ||
623 | if ( strpos( $ua, 'ipad' ) === false ) |
|
624 | return false; |
|
625 | ||
626 | if ( strpos( $ua, 'facebook' ) !== false || strpos( $ua, 'fbforiphone' ) !== false || strpos( $ua, 'fban/fbios;' ) !== false ) |
|
627 | return true; |
|
628 | else |
|
629 | return false; |
|
630 | } |
|
631 | ||
632 | /* |
|
633 | * Detects if the current UA is WordPress for iOS |
|
@@ 969-982 (lines=14) @@ | ||
966 | * This browser will report 'NokiaBrowser' in the header, however some older version will also report 'OviBrowser'. |
|
967 | * |
|
968 | */ |
|
969 | static function is_symbian_s40_platform() { |
|
970 | ||
971 | if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) |
|
972 | return false; |
|
973 | ||
974 | $agent = strtolower( $_SERVER['HTTP_USER_AGENT'] ); |
|
975 | ||
976 | if ( strpos( $agent, 'series40' ) !== false ) { |
|
977 | if( strpos( $agent,'nokia' ) !== false || strpos( $agent,'ovibrowser' ) !== false || strpos( $agent,'nokiabrowser' ) !== false ) |
|
978 | return true; |
|
979 | } |
|
980 | ||
981 | return false; |
|
982 | } |
|
983 | ||
984 | static function is_J2ME_platform() { |
|
985 |