wok view busybox/stuff/www/cgi-env.sh @ rev 10837

Add libmatchbox (Match may be used for kids or small device desktop)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 08 23:20:29 2011 +0200 (2011-06-08)
parents 2c795c9fface
children 1628c6302869
line source
1 #!/bin/sh
2 . /usr/bin/httpd_helper.sh
3 header
5 cat << EOT
6 <!DOCTYPE html>
7 <html xmlns="http://www.w3.org/1999/xhtml">
8 <head>
9 <title>CGI SHell Environment</title>
10 <meta charset="utf-8" />
11 <link rel="stylesheet" type="text/css" href="style.css" />
12 </head>
13 <body>
15 <!-- Header -->
16 <div id="header">
17 <h1>CGI SHell Environment</h1>
18 </div>
20 <!-- Content -->
21 <div id="content">
23 <p>
24 Welcome to the SliTaz web server CGI Shell environment. Let the power of
25 SHell script meet the web! Here you can check HTTP info and try some
26 requests. Including /usr/bin/httpd_helper.sh in your scripts lets you
27 use PHP-like syntax such as: \$(GET var)
28 </p>
29 <p>
30 QUERY_STRING test:
31 <a href="$SCRIPT_NAME?var=value">$SCRIPT_NAME?var=value</a>
32 </p>
34 <h2>HTTP Info</h2>
35 <pre>
36 $(httpinfo)
37 </pre>
39 <!-- End content -->
40 </div>
42 </body>
43 </html>
44 EOT
46 exit 0