tazpanel diff help.cgi @ rev 159
french: translation in progress
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Apr 20 16:49:26 2011 +0200 (2011-04-20) |
parents | |
children | 2ba626801335 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/help.cgi Wed Apr 20 16:49:26 2011 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# help.cgi - Display TazPanel doc and README. 1.7 +# 1.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 1.9 +# 1.10 +echo "Content-Type: text/html" 1.11 +echo "" 1.12 + 1.13 +# Common functions from libtazpanel 1.14 +. lib/libtazpanel 1.15 +get_config 1.16 + 1.17 +# Cat translated help content 1.18 +TITLE="- Help \& Doc" 1.19 + 1.20 +xhtml_header 1.21 + 1.22 +if [ -d doc ]; then 1.23 + cat doc/tazpanel.html 1.24 +else 1.25 + cat /usr/share/doc/tazpanel/tazpanel.html 1.26 +fi 1.27 + 1.28 +echo '<h3>README</h3>' 1.29 +echo '<pre>' 1.30 +cat $PANEL/README 1.31 +echo '</pre>' 1.32 + 1.33 +xhtml_footer 1.34 +exit 0