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

busybox: add HTTPD_OPTIONS and start httpd as www user (+ add files forgot in previews commit)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 06 00:44:11 2011 +0200 (2011-06-06)
parents
children 6c7adad93c4c
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 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 let you
27 use PHP alike 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