\"HowTo\""; $ip = $_SERVER['REMOTE_ADDR']; $host = gethostbyaddr($ip); if (eregi("wanadoo", $host)) $fai="\"\""; else if(eregi("proxad", $host)) $fai="\"\""; else if(eregi("^aol", $host)) $fai="\"\""; else if(eregi("numericable", $host)) $fai="\"\""; else if(eregi("tiscali", $host)) $fai="\"\""; else if(eregi("gaoland", $host)) $fai="\"\""; else if(eregi("club-internet", $host)) $fai="\"\""; else if(eregi("tele2", $host)) $fai="\"\""; else if(eregi("noos", $host)) $fai="\"\""; else if(eregi("cegetel", $host)) $fai="\"\""; return $fai; } $faidet = detect_fai(); function detect_nav() // Detection du navigateur - liste a completer { $nav="inconnu ou non référencé"; if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Mozilla")) $nav="Firefox"; if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Netscape")) $nav = "Netscape"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Safari")) $nav = "Safari"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Firefox")) $nav = "Firefox"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Konqueror")) $nav="Konqueror"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Epiphany")) $nav="Epiphany"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Lynx")) $nav="Lynx"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "MSIE")) $nav ="Internet Explorer"; if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Opera")) $nav="Opera"; return $nav; } $navdet=detect_nav(); function detect_os() // Detection du systeme d'exploitation - liste a completer { $os="inconnu"; if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Windows NT 5.1")) $os="Windows XP"; if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Windows NT 5.0")) $os="Windows 2000"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Windows 98")) $os="Windows 98/Millenium"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Mac")) $os="Macintosh"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Linux")) $os="Linux"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "Unix")) $os="Unix"; else if(strchr($_SERVER[ 'HTTP_USER_AGENT' ], "FreeBSD")) $os="FreeBSD"; return $os; } $osdet=detect_os(); $content .= "
ton ip (publique):
$ip

"; $content .= "
ton fournisseur d'accés:
"; $content .= "
$faidet
Clique sur l'image
"; $content .= "
pour configurer ton modem/routeur


"; $content .= "
ton navigateur:
$navdet

"; $content .= "
ton OS
$osdet

"; if(strchr($osdet,"Windows")){ $content .= "
"; } if(strchr($osdet,"Linux")){ $content .= "
"; } if(strchr($osdet,"FreeBSD")){ $content .= "
"; } ?>