slitaz-tools diff hacker/Templates/cgi-bin-html.sh @ rev 208

calendar: no more hardcoded date
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 27 15:32:37 2008 +0000 (2008-05-27)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hacker/Templates/cgi-bin-html.sh	Tue May 27 15:32:37 2008 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +
     1.7 +# Variables.
     1.8 +HOST=`cat /etc/hostname`
     1.9 +RELEASE=`uname -r`
    1.10 +
    1.11 +# Content type.
    1.12 +echo -e "Content-Type: text/html\n"
    1.13 +
    1.14 +# Header.
    1.15 +echo "<html>"
    1.16 +echo "<head>"
    1.17 +echo "  <title>cgi-bin</title>"
    1.18 +echo "</head>"
    1.19 +echo -e "<body bgcolor=\"#ffffff\">"
    1.20 +
    1.21 +# Page content.
    1.22 +echo "<h1>HTML cgi-bin SHell script</h1>"
    1.23 +echo "<hr>"
    1.24 +echo "<p>"
    1.25 +echo "This script is runnig on $HOST with a Linux kernel $RELEASE."
    1.26 +echo "</p>"
    1.27 +
    1.28 +# Footer.
    1.29 +echo "</body>";
    1.30 +echo "</html>"