{php} $useragent = strtolower($_SERVER['HTTP_USER_AGENT']); if(strpos($useragent, 'iphone')!==false || strpos($useragent, 'ipod')!==false){ $background_img = '/static/img/ios.png'; }else{ $background_img = '/static/img/android.png'; } {/php}