[FONT="Courier New"][SIZE="2"]<?php
/*
88888888888 888 .d88888b. .d8888b. 888
888 888 d88P" "Y88b d88P Y88b 888
888 888 888 888 888 888 888
888 88888b. .d88b. 888 888 88888b. .d88b. 88888b. 888 8888b. .d8888b 88888b. .d88b.
888 888 "88b d8P Y8b 888 888 888 "88b d8P Y8b 888 "88b 888 "88b d88P" 888 "88b d8P Y8b
888 888 888 88888888 888 888 888 888 88888888 888 888 888 888 .d888888 888 888 888 88888888
888 888 888 Y8b. Y88b. .d88P 888 d88P Y8b. 888 888 Y88b d88P 888 888 Y88b. 888 888 Y8b.
888 888 888 "Y8888 "Y88888P" 88888P" "Y8888 888 888 "Y8888P" "Y888888 "Y8888P 888 888 "Y8888
888
888
888
==================================================================================================================
*/
$port = "80";
$timeout = "5";
$c1 = "http://cache.infinity-media.co.cc/";
$c2 = "http://asia.infinity-media.co.cc/";
$c3 = "http://cache3.infinity-media.co.cc/";
$c4 = "http://theopencache.sf.net/";
$cache1 = strpos($c1,"P");
$cache2 = strpos($c2, "P");
$cache3 = strpos($c3, "P");
$cache = strpos($c4, "P");
$cookie = $_COOKIE['cache-location'];
if ($c1 && $port && $timeout) {$fsockopen_sf = @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_sf) {$sf = "http://theopencache.sf.net/";}
else {$sf = "http://aerocrash.co.cc/cache/";}
if ($c1 && $port && $timeout) {$fsockopen_c1 = @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c1) {$cc1 = "http://cache.infinity-media.co.cc/";}
else {$cc1 = $sf;}
if ($c1 && $port && $timeout) {$fsockopen_c2 = @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c2) {$cc2 = "http://asia.infinity-media.co.cc/cache";}
else {$cc2 = $sf;}
if ($c1 && $port && $timeout) {$fsockopen_c3 = @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c3) {$cc1 = "http://cache3.infinity-media.co.cc/";}
else {$cc3 = $sf;}
switch ($cookie) {
case "EU": $host = $cc3; break;
case "NA": $host = $cc1; break;
case "SA": $host = $cc1; break;
case "AS": $host = $cc2; break;
case "AF": $host = $cc3; break;
case "OC": $host = $cc1; break;
case "AN": $host = $cc1; break;
}
echo $host;
?>[/SIZE][/FONT]