2 function probarS($server, $puerto) {
4 preg_match("/^(http:\/\/)?([^\/]+)/i", "$server", $match);
6 preg_match_all("/\.([^\.\/]+)/",$host, $match);
8 $matches[0][0] = $matches[1][0];
11 @$socket = fsockopen("$host", $port, $errno, $errstr, 2);
21 $Proxys = array(0 => 'auro1.zapto.org:31280', 'aurox.sytes.net:31280');
22 $ProxyAleatorio = rand(0, count($Proxys)-1);
23 $Datos_Proxy = explode(":",$Proxys[$ProxyAleatorio]);
24 //echo "DP:".$Datos_Proxy[0]."<BR>";
25 if (probarS($Datos_Proxy[0],$Datos_Proxy[1]))
27 //echo "Proxy ok, devolviendo: $Proxys[$ProxyAleatorio].<br>";
28 return $Proxys[$ProxyAleatorio];
32 //echo "Proxy no servia, usando localhost.<br>";