Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
So ist es, nach seinem Beitrag, auch von reptiler geplant.Dr Dau hat gesagt.:Hmm, ich sehe grade dass der Opera sich zwar als IE ausgibt, aber trotzdem die layout.css eingebunden wird.
if ((strpos($_SERVER['HTTP_USER_AGENT'],"MSIE")!==false) && (strpos($_SERVER['HTTP_USER_AGENT'],"Opera")===false))
//...
Es wird gefragt, ob es nicht Opera ist. Warum hat reptiler erklärt:Dr Dau hat gesagt.:Aber wenn Opera die layout.css nehmen soll, warum dann erst fragen ob es Opera ist?
Gruß hpvwreptiler hat gesagt.:Dass Opera im IF erwaehnt wird liegt daran, dass man in Opera einstellen soll er soll sich als IE ausgeben. Jedoch steht auch dann noch das Woertchen Opera im
UserAgent. Daher: if IE && !Opera, um's mal in Pseudo-Code auszudruecken.
<?
//$text=$_SERVER['HTTP_USER_AGENT'];
$text="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.54";
if ((strpos($text,"MSIE")
!==false)
&& (strpos($text,"Opera")
===false)) {
echo $text."<br>Internet Explorer";
} else {
echo $text."<br>anderer Browser";
}
?>
if ((strpos($_SERVER['HTTP_USER_AGENT'],"MSIE")) && (!strpos($_SERVER['HTTP_USER_AGENT'],"Opera")))
fuktioniert genauso wie:
if ((strpos($_SERVER['HTTP_USER_AGENT'],"MSIE")!==false) && (strpos($_SERVER['HTTP_USER_AGENT'],"Opera")===false))