slitaz-dev-tools diff taztpd/taztpd.cgi @ rev 250
tazwikiss: change icons in desktop files
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 07 02:36:17 2015 +0200 (2015-11-07) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/taztpd/taztpd.cgi Sat Nov 07 02:36:17 2015 +0200 1.3 @@ -0,0 +1,34 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# CGI/Shell script example for TazTPD Web Server 1.7 +# 1.8 +echo "Content-Type: text/html" 1.9 +echo "" 1.10 + 1.11 +var=${QUERY_STRING#var=} 1.12 + 1.13 +# xHTML 5 output 1.14 +cat << EOT 1.15 +<!DOCTYPE html> 1.16 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.17 +<head> 1.18 + <title>TazTPD CGI</title> 1.19 + <style type="text/css"> 1.20 + body { padding: 40px 16%; } 1.21 + h1 { color: #4d4d4d; border-bottom: 1px dotted #ddd; } 1.22 + </style> 1.23 +<head> 1.24 +<body> 1.25 +<h1>TazTPD and CGI</h1> 1.26 +<p> 1.27 + Entered form value: $var 1.28 +</p> 1.29 +<form method="get" action="taztpd.cgi"> 1.30 + <input type="text" name="var" size="32"> 1.31 +</form> 1.32 +<p> 1.33 + `date '+%Y-%m-%d %H:%M'` 1.34 +</p> 1.35 +</body> 1.36 +</html> 1.37 +EOT