# HG changeset patch # User Christophe Lincoln # Date 1301960034 -7200 # Node ID 8837cdc7c1c5339689bb19056199c6f188d95299 # Parent efedaf66f8643fc00556f1275ca7e81e8dd20a3d Add utils/template.cgi for testing and new pages diff -r efedaf66f864 -r 8837cdc7c1c5 utils/template.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/utils/template.cgi Tue Apr 05 01:33:54 2011 +0200 @@ -0,0 +1,47 @@ +#!/bin/sh +# +# CGI template interface for TazPanel (must go in $PANEL root to work). +# +echo "Content-Type: text/html" +echo "" + +# Common functions from libtazpanel +. lib/libtazpanel +get_config + +# Include gettext helper script. +. /usr/bin/gettext.sh + +# Export package name for gettext. +TEXTDOMAIN='tazpanel-template' +export TEXTDOMAIN + +# +# Commands +# + +case "$QUERY_STRING" in + cmd) + echo "" ;; + *) + # + # Default xHTML content + # + xhtml_header + cat << EOT +
+

`gettext "Page title - Template"`

+

`gettext "Page information"`

+

+ +

`gettext "h3 title"`

+ +
+Preformated output
+
+EOT + ;; +esac + +xhtml_footer +exit 0