Changes to raven-webserver by "David Kopf" <dak664@embarqmail.com>:

*Fixed bug in the cgi script handling
    *Making a special check for index.html and treating it like index.shtml to
        allow a common header for all files.
    *adding robots.txt to keep google, msn, yahoo out
    *adding a nice icon through a <link rel="icon"... in the header
    *saying "not enabled" for temperature if it hasn't been initialized
This commit is contained in:
c_oflynn 2008-11-16 15:28:37 +00:00
parent e362e2b99e
commit a0a9ccf2db
8 changed files with 371 additions and 408 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

View file

@ -1,24 +1,21 @@
%!: /header.html
<h1>File statistics</h1><br><table width="100%">
<tr><td><a href="/index.html">/index.html</a></td>
<td>%! file-stats /index.html
</td></tr>
<tr><td><a href="/files.shtml">/files.shtml</a></td>
<td>%! file-stats /files.shtml
</td></tr>
<tr><td><a href="/tcp.shtml">/tcp.shtml</a></td>
<td>%! file-stats /tcp.shtml
</td></tr>
<tr><td><a href="/processes.shtml">/processes.shtml</a></td>
<td>%! file-stats /processes.shtml
</td></tr>
<tr><td><a href="/style.css">/style.css</a></td>
<td>%! file-stats /contiki.css
</td></tr>
<tr><td><a href="/404.html">/404.html</a></td>
<td>%! file-stats /404.html
</td></tr>
<tr><td><a href="/img/screenshot.png">/img/screenshot.png</a></td>
<td>%! file-stats /img/screenshot.png
<tr><td><a href="/index.html">/index.html</a></td><td>
%! file-stats /index.html
</td></tr><tr><td><a href="/files.shtml">/files.shtml</a></td><td>
%! file-stats /files.shtml
</td></tr><tr><td><a href="/tcp.shtml">/tcp.shtml</a></td><td>
%! file-stats /tcp.shtml
</td></tr><tr><td><a href="/processes.shtml">/processes.shtml</a></td><td>
%! file-stats /processes.shtml
</td></tr><tr><td><a href="/style.css">/style.css</a></td><td>
%! file-stats /contiki.css
</td></tr><tr><td><a href="/404.html">/404.html</a></td><td>
%! file-stats /404.html
</td></tr><tr><td><a href="/robots.txt">/robots.txt</a></td><td>
%! file-stats /robots.txt
</td></tr><tr><td><a href="/img/screenshot.png">/img/screenshot.png</a></td><td>
%! file-stats /img/screenshot.png
</td></tr></table>
%!: /footer.html
%!: /footer.html

View file

@ -1,41 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Welcome to the Contiki web server!</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body bgcolor="#fffeec" text="black">
<div class="menublock">
<div class="menu">
<p class="border-title">Menu</p>
<p class="menu">
<a href="/">Front page</a><br>
<a href="files.shtml">File statistics</a><br>
<a href="tcp.shtml">Network connections</a><br>
<a href="processes.shtml">System processes</a><br>
<a href="sensor.shtml">Sensor Readings</a>
</p>
</div>
</div>
<div class="contentblock">
<p class="border-title">
Welcome to the <a href="http://www.sics.se/contiki/">Contiki</a>
web server!
</p>
<p class="intro">
The web pages you are watching are served by a web
server running under the <a
href="http://www.sics.se/contiki/">Contiki operating
system</a>.
</p>
</body>
</html>
%!: /header.html
<p class="intro">
The web pages you are watching are served by a web
server running under the <a
href="http://www.sics.se/contiki/">Contiki operating
system</a>.
</p>
%!: /footer.html

View file

@ -0,0 +1,2 @@
user-agent: *
Disallow: /

View file

@ -1,5 +1,6 @@
%!: /header.html
<h1>Sensor Readings</h1><br>
%! sensors
%!: /footer.html