tazpanel view help.cgi @ rev 176

libtpaznel: syntax_highlighter should dehtmlize first
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 31 11:38:21 2011 +0200 (2011-05-31)
parents
children 2ba626801335
line source
1 #!/bin/sh
2 #
3 # help.cgi - Display TazPanel doc and README.
4 #
5 # Copyright (C) 2011 SliTaz GNU/Linux - BSD License
6 #
7 echo "Content-Type: text/html"
8 echo ""
10 # Common functions from libtazpanel
11 . lib/libtazpanel
12 get_config
14 # Cat translated help content
15 TITLE="- Help \&amp; Doc"
17 xhtml_header
19 if [ -d doc ]; then
20 cat doc/tazpanel.html
21 else
22 cat /usr/share/doc/tazpanel/tazpanel.html
23 fi
25 echo '<h3>README</h3>'
26 echo '<pre>'
27 cat $PANEL/README
28 echo '</pre>'
30 xhtml_footer
31 exit 0