Mac Fly
01.04.2002, 22:02
Wie kann ich aus folgender Dingens das OS rauslesen:
$HTTP_USER_AGENT
Ich hab zB XP + IE6 und is bei mir
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
Hat vielleicht irgendjemand ne Liste? In Selfhtml is was, aber nur wenig...
P.S. Folgendes hab ich bereits, is aus nem Hack fürs WBB
if (strstr($HTTP_USER_AGENT,´Win´)) {
$BROWSER_PLATFORM=´Win´;
} else if (strstr($HTTP_USER_AGENT,´Mac´)) {
$BROWSER_PLATFORM=´Mac´;
} else if (strstr($HTTP_USER_AGENT,´Linux´)) {
$BROWSER_PLATFORM=´Linux´;
} else if (strstr($HTTP_USER_AGENT,´Unix´)) {
$BROWSER_PLATFORM=´Unix´;
} else {
$BROWSER_PLATFORM=´Other´;
}
ich hätts halt gern aufgeschlüsselt, damit ich die Statistik meine Boards genauer machen kann.
http://www.netkiffer.de/forum/statistik.php
^^ Damit ihr wisst, welche OS ich brauche ;)
$HTTP_USER_AGENT
Ich hab zB XP + IE6 und is bei mir
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
Hat vielleicht irgendjemand ne Liste? In Selfhtml is was, aber nur wenig...
P.S. Folgendes hab ich bereits, is aus nem Hack fürs WBB
if (strstr($HTTP_USER_AGENT,´Win´)) {
$BROWSER_PLATFORM=´Win´;
} else if (strstr($HTTP_USER_AGENT,´Mac´)) {
$BROWSER_PLATFORM=´Mac´;
} else if (strstr($HTTP_USER_AGENT,´Linux´)) {
$BROWSER_PLATFORM=´Linux´;
} else if (strstr($HTTP_USER_AGENT,´Unix´)) {
$BROWSER_PLATFORM=´Unix´;
} else {
$BROWSER_PLATFORM=´Other´;
}
ich hätts halt gern aufgeschlüsselt, damit ich die Statistik meine Boards genauer machen kann.
http://www.netkiffer.de/forum/statistik.php
^^ Damit ihr wisst, welche OS ich brauche ;)