Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
= "OK";
else $return[code] = "ERROR";
}
else $return[code] = "N/A";
}
else {
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
$sock = fsockopen($urlArray[host], $urlArray[port], &$errnum, &$errstr);
if (!$sock) $return[code] = "Død";
else {
$dump .= "GET $urlArray[path] HTTP/1.1\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)) {
if (eregi("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*", $str)) $return[code] = trim(eregi_replace("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*", "\\1", $str));
if (eregi("^Content-Type: ", $str)) $return[contentType] = trim(eregi_replace("^Content-Type: ", "", $str));
}
fclose($sock);
flush();
}
}
return $return;
}
;
$check[contentType] ? $contentType = ereg_replace(";.*$", "", $check[contentType]) : $contentType = "Ukendt";
$statCode[$code]++;
$statContentType[$contentType]++;
print "<tr>
<td style=\"font-size:80%;\" nowrap>$code</td>
<td style=\"font-size:80%;\" nowrap>$text[$code]</td>
<td style=\"font-size:80%;\" nowrap>";
if (eregi("^text/html", $contentType) && ereg("^(2|3)+[0-9]{2}", $code)) {
print "<a href=\"./".basename($PHP_SELF)."?url=".rawurlencode($liste[$i])."\">".rawurldecode($liste[$i])."</a>";
}
else print rawurldecode($liste[$i]);
print "</td nowrap>
</tr>\n";
}
print "</table>\n";
}
else print "<p><strong>I didn't find any links.</strong></p>";
print '</td></tr><tr><td valign="top">';
if (count($steps) >= 1) {
print "<p><strong>Passerede</strong></p>";
print "<ol style=\"font-size:80%;\">";
for($i=0; $i<count($steps); $i++) print "<li><p>$steps[$i]</li>\n";
print "</ol>";
}
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 .= "<tr>
<td>$text[$key]</td>
<td style=\"text-align:right;\">$value</td>
<td><span style=\"background-color:navy;\">$space</span> $procent%</td>
</tr>\n";
}
print "<p><strong>Responce codes</strong></p>";
print "<table xborder=\"1\" bordercolor=\"black\" cellspacing=\"0\">";
print "<tr><th nowrap>Status </th>
<th nowrap>Number </th>
<th nowrap>Percent</th></tr>";
print $print_statsCode;
print "</table>";
}
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 .= "<tr>
<td>$key</td>
<td style=\"text-align:right;\">$value</td>
<td><span style=\"background-color:navy;\">$space</span> $procent%</td>
</tr>\n";
}
print "<p><strong>Content-Type</strong></p>";
print "<table xborder=\"1\" bordercolor=\"black\" cellspacing=\"0\">";
print "<tr><th nowrap>Content-Type </th>
<th nowrap>Number </th>
<th nowrap>Percent</th></tr>";
print $print_statsContent;
print "</table>";
}
print '</td></tr>';
}
if ($url && !$uri) print "<div align=\"center\"><p><strong>Invalid adresse.</strong></p></div>";
?>
<? if ($url) { ?>
</td></tr>
<? } ?>
</table>
</body>
</html>