function adaptive_image_browser_detect in Adaptive Image 7
Check for common desktop patterns in the user agent
1 call to adaptive_image_browser_detect()
- adaptive_image_style_deliver in ./
adaptive_image.image.inc - Copy of image_style_deliver() for use with adaptive images.
File
- ./
adaptive_image.image.inc, line 118 - Adaptive Image - Adaptive images for Drupal
Code
function adaptive_image_browser_detect() {
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
// Identify the OS platform. Match only desktop OSs
if (strpos($userAgent, 'macintosh') || strpos($userAgent, 'windows nt') || strpos($userAgent, 'x11')) {
return TRUE;
}
}