|
// exclusion list: servers with connection problems or excluded by request
$skip = array (
'Hejogs', 'PBG4', 'rene', 'Scotts', 'Chercheurs'
);
// servers with PNG screenshots
$images = array(
'Counterfit', 'Wolf','Prodcast', 'Chris'
);
// get server list from the original spy tracker page
$file = fopen ("http://www.silvernetworks.net/products/spy/servers.txt", "r");
if (!$file) {
echo (" Unable to open the Spy server list.\n "); exit; } $alter = 0; // counter for 2 column layout // analyze the server list while (!feof ($file)) { $line = fgets ($file, 1024); $parse = str_replace("/ ", "/", explode("|",$line)); $spy_url=$parse[0]; $pos = strrpos($spy_url, "/"); // skip fake-entries if ($pos != false) { $spy_name=$parse[1]; $spy_ip=str_replace(" ","",$parse[4]); $spy_desc=$parse[5]; $spy_hits=$parse[7]; $skip_me=false; for($y = 0; $y < count($skip); $y++) { if (strpos( $spy_name, $skip[$y] ) != false) { $skip_me=true; break; // exit for loop } } $spy_counter="http://www.silvernetworks.net/products/spy/tracker.php?action=loghit&addr=". $spy_url; echo ("$spy_name - hits: $spy_hits$spy_desc "); if ($skip_me == false) { // echo ( `curl -m5 -i --stderr - $spy_url | grep -c HTTP`); // echo ( " - curl -m5 -i --stderr - $spy_url | grep -c HTTP "); $own_ip=$_SERVER['REMOTE_ADDR']; // get the IP of the user // check in database if server uses PNG screenshots for($x = 0; $x < count($images); $x++) { $prim_ext = "jpg"; // primary image extension (Spy's default image format) $sec_ext = "png"; // secondary image extension // set the screenshot link to PNG if (strpos( $spy_name, $images[$x] ) != false) { $prim_ext = "png"; // primary image extension $sec_ext = "jpg"; // secondary image extension break; // exit for loop } } // check if the user is running a spy server if ( $own_ip != $spy_ip ) { echo (" "); echo ("$sec_ext image "); } else { echo ("
This server is blocked or its NAT/Firewall is not configured correctly. Enter at your own risk!"); } echo (" | ");
if ($alter++ % 2) {
echo ("
| "); } } fclose($file); echo (" |