1 |
<?php |
2 |
header('Last-Modified: ' . |
3 |
date('D, d M Y H:i:s', filemtime('index.php')) . ' GMT'); |
4 |
|
5 |
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
6 |
"http://www.w3.org/TR/html4/strict.dtd"> |
7 |
<html> |
8 |
<head> |
9 |
<title>HTTP Header Lint</title> |
10 |
<link rel="stylesheet" type="text/css" href="httplint.css"> |
11 |
</head> |
12 |
|
13 |
<body> |
14 |
<h1><img src="httplint.png" alt=""> HTTP Header Lint</h1> |
15 |
|
16 |
<?php |
17 |
if (isset($url)) { |
18 |
$u = htmlspecialchars($url); |
19 |
echo "<h2>Results for <a href=\"$u\">$u</a></h2>"; |
20 |
passthru('/home/james/Projects/httplint/httplint --html ' . |
21 |
escapeshellarg($url)); |
22 |
} else { |
23 |
$u = 'http://'; |
24 |
?> |
25 |
<p>Httplint performs various checks on HTTP/1.1 |
26 |
headers returned by a server.</p> |
27 |
|
28 |
<p>It checks the syntax and content of almost all |
29 |
HTTP/1.1 response headers, and also warns about |
30 |
missing headers and suggests improvements.</p> |
31 |
|
32 |
<?php |
33 |
} |
34 |
?> |
35 |
|
36 |
<form action="/" method="get"> |
37 |
<p>Enter a HTTP URL to check:</p> |
38 |
<p><input type="text" name="url" value="<?= $u ?>"> |
39 |
<input type="submit" value="Check URL"></p> |
40 |
</form> |
41 |
|
42 |
<p>The <a href="http://www.strcprstskrzkrk.co.uk/httplint">Httplint |
43 |
source</a> is available. Created by |
44 |
<a href="mailto:james.bursa@strcprstskrzkrk.co.uk">James Bursa</a>. |
45 |
|
46 |
<p>Thanks to <a href="http://www.smoothartist.com/">Michael Drake</a> |
47 |
for the icon.</p> |
48 |
|
49 |
</body> |
50 |
</html> |