/[james]/httplint/index.php
ViewVC logotype

Annotation of /httplint/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (hide annotations) (download)
Thu Mar 11 19:05:02 2004 UTC (20 years, 7 months ago) by james
File size: 1315 byte(s)
Create web interface.

1 james 55 <?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     $output = shell_exec('/home/james/Projects/httplint/httplint ' .
21     escapeshellarg($url));
22     echo '<pre>';
23     echo htmlspecialchars($output);
24     echo '</pre>';
25     } else {
26     $u = 'http://';
27     ?>
28     <p>Httplint performs various checks on HTTP/1.1
29     headers returned by a server.</p>
30    
31     <p>It checks the syntax and content of almost all
32     HTTP/1.1 response headers, and also warns about
33     missing headers and suggests improvements.</p>
34    
35     <?php
36     }
37     ?>
38    
39     <form action="/" method="get">
40     <p>Enter a HTTP URL to check:</p>
41     <p><input type="text" name="url" value="<?= $u ?>">
42     <input type="submit" value="Check URL"></p>
43     </form>
44    
45     <p>The <a href="http://www.strcprstskrzkrk.co.uk/httplint">Httplint
46     source</a> is available. Created by
47     <a href="mailto:james.bursa@strcprstskrzkrk.co.uk">James Bursa</a>.
48    
49     <p>Thanks to Michael Drake for the icon.</p>
50    
51     </body>
52     </html>

  ViewVC Help
Powered by ViewVC 1.1.26