$text['N/A'] = "Ikke HTTP";
$text[OK] = "Hostname Valido";
$text[FEJL] = "Hostname Invalido";
$text[Død] = "No Responde";
$text[100] = "Continuar";
$text[101] = "Cambiando Protocolos";
$text[200] = "OK";
$text[201] = "Creado";
$text[202] = "Aceptado";
$text[203] = "Informacón no Autorizada";
$text[204] = "No Contenido";
$text[205] = "Reiniciando Contenido";
$text[206] = "Contenido Parcial";
$text[300] = "Opciones Multiples";
$text[301] = "Movido Permanente";
$text[302] = "Encontrado";
$text[303] = "Ver otro";
$text[304] = "No Modificado";
$text[305] = "Usando Proxy";
$text[307] = "Temporalmenre Redireccionado";
$text[400] = "Peticion Mala";
$text[401] = "Sin Autorización";
$text[402] = "Pago Requrido";
$text[403] = "No se puede entrar";
$text[404] = "No encontrada";
$text[405] = "Metodo no permitido";
$text[406] = "Sin Aceptar";
$text[407] = "Se necesita Autorización del Proxy";
$text[408] = "Tiempo de espera Terminado";
$text[409] = "Conflicto";
$text[410] = "No está";
$text[411] = "Longitud Requerida";
$text[412] = "Falla de Precondición";
$text[413] = "Entrada muy grande";
$text[414] = "Entrada de URI muy grande";
$text[415] = "No responde el Formato";
$text[416] = "Rango no permitido";
$text[417] = "Falla";
$text[500] = "Problema interno con el servidor";
$text[501] = "Sin implementar";
$text[502] = "Gateway Erróneo";
$text[503] = "Servicio no disponible";
$text[504] = "El Gateway excedio en Tiempo";
$text[505] = "Versión de Http no soportada";
function specialconcat($base,$path) {
$base = ereg_replace("(.*/)[^/]*","\\1", $base);
$path = ereg_replace("^(\.){1}/", "", $path);
if (ereg("^/", $path)) {
$base = ereg_replace("^(http://([^/]+))/{1}(.*)", "\\1", $base);
}
return $base.$path;
}
function sortarray($arr) {
if (count($arr) == 0) return $arr;
reset($arr);
while (list($key,$value) = each($arr)) $newarr[$value] = $key;
reset($newarr);
while (list($key,$value) = each($newarr)) $sortedarr[] = $key;
return $sortedarr;
}
function firstArd($url) {
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
if ($urlArray[query]) $urlArray[path] .= "?$urlArray[query]";
$sock = fsockopen($urlArray[host], $urlArray[port]);
if ($sock) {
$dump .= "GET $urlArray[path] HTTP/1.1\r\n";
$dump .= "User-Agent: Z-Add Detecta Problemas en tu Página web (http://www.mexcompany.com)\r\n";
$dump .= "Host: $urlArray[host]\r\nConnection: close\r\n";
$dump .= "Connection: close\r\n\r\n";
fputs($sock, $dump);
while($str = fgets($sock, 1024)) $headers[] = $str;
fclose($sock);
flush();
for($i=0; $i
])*-->","", $text);
while (eregi("[:space:]*(href|src)[:space:]*=[:space:]*([^ >]+)", $text, $regs)) {
$regs[2] = ereg_replace("\"", "", $regs[2]);
$regs[2] = ereg_replace("'", "", $regs[2]);
$regs[2] = preg_replace("/(\s.+)/" , "" , $regs[2]);
if ($removeq) $mylist[] = ereg_replace("\?.*$", "", $regs[2]);
else $mylist[] = ereg_replace("#.*$", "", $regs[2]);
$text = substr($text, strpos($text, $regs[1]) + strlen($regs[1]));
}
$mylist = sortarray($mylist);
for($i=0; $i<]", $url))) {
if ($removeq) $url = ereg_replace("\?.*$", "", $url);
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
if ($urlArray[query]) $urlArray[path] .= "?$urlArray[query]";
$uri = "http://".$extra.$urlArray[host].$urlArray[path];
while($uri != firstArd($uri) && $trin++ < 5) {
$uri = firstArd($uri);
$steps[] = $uri;
}
}
?>
if ($uri) {
$liste = liste($uri);
if (is_array($liste)) {
print "\n";
print "| Estatus | Descripción | URL |
";
for($i=0; $i
$code |
$text[$code] |
";
if (eregi("^text/html", $contentType) && ereg("^(2|3)+[0-9]{2}", $code)) {
print "".rawurldecode($liste[$i])."";
}
else print rawurldecode($liste[$i]);
print " | \n";
}
print "
\n";
}
else print "No encontramos Ligas
";
if (count($statCode) >= 1) {
while(list($key, $value) = each($statCode)) {
$procent = ereg_replace('(\.)?0+$', '', number_format(($value*100/count($liste)),2,".",""));
$space = "";
for($i=0; $i<$procent/3; $i++) $space .= " ";
$print_statsCode .= "| $text[$key] | $value | $procent% |
\n";
}
print "Resultados:
";
print "";
print "| Estatus | Cantidad | Porcentaje |
";
print $print_statsCode;
print "
";
}
if (count($statContentType) >= 1) {
while(list($key, $value) = each($statContentType)) {
$procent = ereg_replace('(\.)?0+$', '', number_format(($value*100/count($liste)),2,".",""));
$space = "";
for($i=0; $i<$procent/3; $i++) $space .= " ";
$print_statsContent .= "| $key | $value | $procent% |
\n";
}
print "Contenido:
";
print "";
print "| Contenido | Cantidad | Porcentaje |
";
print $print_statsContent;
print "
";
}
}
if ($url && !$uri) print "Dirección no válida.
";
?>
Mexcompany.com - Profesionales en Servicios de Web Hosting y
Publicidad en México
info@mexcompany.com
Registros de Dominios,
Redireccionamientos de dominios, Hospedaje
para páginas web o web Hosting, Diseño, Desarrollo y Mantenimiento de Páginas, Altas en
directorios, Registro en buscadores, Sistema para Revendedores.
Copyright © 2014 Mexcompany, Monterrey Nuevo
León, México.