Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/11/2008, 15:00
The_Darkness
 
Fecha de Ingreso: noviembre-2008
Mensajes: 3
Antigüedad: 15 años, 5 meses
Puntos: 0
Error Notice: Undefined offset ayuda

hola, tengo un error en un script que consegui en la web
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($host80$errno$errstr30) )
    {
      
// whups, failed :-(
      
$result "I couldn't connect to $host!";
    }
    else
    {
      
// pass the request
      
fputs($fp$h);
      
$response '';

      
// fetch result
      
while ( !feof($fp) )
      {
        
$response .= fread($fp1024);
      }

      
// 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];
    }
  }
}
?>