# HG changeset patch # User Christophe Lincoln # Date 1302459619 -7200 # Node ID 769f91a0718d9045a90de47b2b39c81c5ddb9581 # Parent eef81729180460c7a5be411920f98326bc317a72 Add a file view CASE so we can displa any file on the system (ex at boot.cgi with rcS.conf) diff -r eef817291804 -r 769f91a0718d boot.cgi --- a/boot.cgi Sun Apr 10 22:01:15 2011 +0200 +++ b/boot.cgi Sun Apr 10 20:20:19 2011 +0200 @@ -149,6 +149,7 @@
Manage daemons + Main configuration file: rcS.conf

`gettext "Kernel cmdline"`

diff -r eef817291804 -r 769f91a0718d index.cgi --- a/index.cgi Sun Apr 10 22:01:15 2011 +0200 +++ b/index.cgi Sun Apr 10 20:20:19 2011 +0200 @@ -12,6 +12,7 @@ # Common functions from libtazpanel . lib/libtazpanel get_config +query_string_parser # Include gettext helper script. . /usr/bin/gettext.sh @@ -36,9 +37,18 @@ # case "$QUERY_STRING" in + file=*) + # + # Handle files (may have an edit function, will see) + # + TITLE="- File" + xhtml_header + echo "

$WANT

" + echo '
'
+		cat $WANT
+		echo '
' ;; debug*) TITLE="- Debug" - query_string_parser xhtml_header cat << EOT

QUERY_STRING