0 AND accesslevel=0'); $donnees = mysql_fetch_array($retour); $retour1 = mysql_query('SELECT COUNT(*) AS nbre_entrees FROM characters WHERE online>0 AND accesslevel=200'); $donnees1 = mysql_fetch_array($retour1); echo ''; echo ''; $ts_ip = "ts3.l2hommage.eu"; // Change to your server's IP external or domain name $ts_port = "9987"; // Make sure this port is open on the router or firewall $fp = @fsockopen("ns303416.ovh.net", 2106, $errno, $errstr);echo "Login Server";echo "----"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ns303416.ovh.net", 7777, $errno, $errstr);echo "Game Server";echo "----"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ns303416.ovh.net", 7777, $errno, $errstr);echo "Geoserver";echo "---..---"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ns303416.ovh.net", 2106, $errno, $errstr);echo "DB Server";echo "-------"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ks3094958.kimsufi.com", 21, $errno, $errstr);echo "FTP Server";echo "------"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ks3094958.kimsufi.com", 80, $errno, $errstr);echo "Web Server";echo "---.--"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ks3094958.kimsufi.com", 110, $errno, $errstr);echo "Mail Server";echo "---.--"; if ($fp) echo "";else echo ""; echo "
"; $fp = @fsockopen("ks3094958.kimsufi.com", 80, $errno, $errstr);echo "PTS serveur";echo "--...-"; if ($fp) echo "";else echo ""; echo "
"; function check_ts($ip, $tcp, $udp, $timeout=1) { //Function for the Check $fp = @fsockopen($ip, $tcp, $errno, $errstr, $timeout); if (!$fp) { $stat = false; } else { if (fgets($fp) == "[TS]\r\n") { fputs($fp, "SEL $udp\r\n"); if (fgets($fp) == "OK\r\n") { $stat = true; } else { $stat = false; } } else { $stat = false; } if (is_resource($fp)) @fclose($fp); return $stat; } } echo "Teamspeak"; echo "--...--"; if (check_ts("ts3.l2hommage.eu", 10011, 9987)) { // echo ""; } else { echo ""; } echo "
";echo "
";echo' Joueurs IG--....--' . $donnees['nbre_entrees'] .'
'; echo 'GM/Adm IG-..--' . $donnees1['nbre_entrees'] .'
'; echo 'Monstres.---...27634
'; echo 'Raidboss-.----.-276
'; echo 'Instances--------73
'; echo 'Qučtes----------761
'; echo 'Donjons---------17
'; echo 'Mondes----------4
'; ?>