import psensor trunk from private svn
[psensor.git] / www / index.lua
1
2 function footer()
3    return "<div class='footer'>"
4       .. "<a href='http://wpitchoune.net/psensor'>psensor-server</a> v"
5       .. psensor_version 
6       .. "</div>"
7 end
8
9 str = "\
10 <html>\
11   <head>\
12     <title>Psensor Web Server</title>\
13     <link rel='stylesheet' type='text/css' href='/style.css' />\
14   </head>\
15 \
16   <body>\
17 \
18   <h1>Welcome to the Psensor Web Server!</h1>\
19 \
20   <p>Go to the <a href='monitor.lua'>Monitoring Page</a>.</p>\
21 \
22   <hr />"
23    .. footer() 
24    .. "</body>\
25 \
26 </html>"
27
28 return str