ese es el error:
Notice: Undefined offset: 1 in /home/chilesha/public_html/mu/mugen.php on line 115
Notice: Undefined offset: 1 in /home/chilesha/public_html/mu/mugen.php on line 115
Notice: Undefined offset: 2 in /home/chilesha/public_html/mu/mugen.php on line 115
Notice: Undefined offset: 1 in /home/chilesha/public_html/mu/mugen.php on line 115
Notice: Undefined offset: 4 in /home/chilesha/public_html/mu/mugen.php on line 115
y este es el script (parte afectada)
de la linea 90 a la 115:
Código PHP:
// try to connect to $host
if ( !$fp = fsockopen($host, 80, $errno, $errstr, 30) )
{
// whups, failed :-(
$result = "I couldn't connect to $host!";
}
else
{
// pass the request
fputs($fp, $h);
$response = '';
// fetch result
while ( !feof($fp) )
{
$response .= fread($fp, 1024);
}
// cleanup
fclose($fp);
// works as of 20070907:
preg_match("|String\.fromCharCode\(Math\.abs\(([^\)]+)\)\)\;|i", $response, $abs);
preg_match("|\'(.)\'\s\+\sString\.fromCharCode\(Math\.sqrt\(([^\)]+)\)\)\;|i", $response, $sqrt);
preg_match("|\<a href\=\"([^\"]+)\' \+ ([a-z]) \+ ([a-z]) \+ \'([^\"]+)\" class\=\"downloadhtml\"|i", $response, $link);
// and bam, our link :-)
$result = $link[1] . $sqrt[1] . chr(sqrt($sqrt[2])) . chr(abs($abs[1])) .$link[4];
}
}
}
?>