wok diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/www/cgi-env.sh Mon Jun 06 00:44:11 2011 +0200 1.3 @@ -0,0 +1,46 @@ 1.4 +#!/bin/sh 1.5 +. /usr/bin/httpd_helper.sh 1.6 +header 1.7 + 1.8 +cat << EOT 1.9 +<!DOCTYPE html> 1.10 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.11 +<head> 1.12 + <title>CGI SHell Environment</title> 1.13 + <meta charset="utf-8" /> 1.14 + <link rel="stylesheet" type="text/css" href="style.css" /> 1.15 +</head> 1.16 +<body> 1.17 + 1.18 +<!-- Header --> 1.19 +<div id="header"> 1.20 + <h1>CGI SHell Environment</h1> 1.21 +</div> 1.22 + 1.23 +<!-- Content --> 1.24 +<div id="content"> 1.25 + 1.26 +<p> 1.27 + Welcome to SliTaz web server CGI Shell environment. Let the power of 1.28 + SHell script meet the web! Here you can check HTTP info and try some 1.29 + requests. Including /usr/bin/httpd_helper.sh in your scripts let you 1.30 + use PHP alike syntax such as: \$(GET var) 1.31 +</p> 1.32 +<p> 1.33 + QUERY_STRING test: 1.34 + <a href="$SCRIPT_NAME?var=value">$SCRIPT_NAME?var=value</a> 1.35 +</p> 1.36 + 1.37 +<h2>HTTP Info</h2> 1.38 +<pre> 1.39 +$(httpinfo) 1.40 +</pre> 1.41 + 1.42 +<!-- End content --> 1.43 +</div> 1.44 + 1.45 +</body> 1.46 +</html> 1.47 +EOT 1.48 + 1.49 +exit 0