tazpanel diff index.cgi @ rev 76

Show Panel activity and log a few more things to test (we need date in log() and reverse output on main page)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 12 04:24:35 2011 +0200 (2011-04-12)
parents 1780ef64bcd5
children 25602bc63ca7
line diff
     1.1 --- a/index.cgi	Tue Apr 12 03:52:19 2011 +0200
     1.2 +++ b/index.cgi	Tue Apr 12 04:24:35 2011 +0200
     1.3 @@ -46,7 +46,6 @@
     1.4  		echo "<h2>$WANT</h2>"
     1.5  		echo '<pre>'
     1.6  		# Handle file type by extension as a Web Server does it.
     1.7 -		# HTML entities: -e 's|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|g'
     1.8  		case "$WANT" in
     1.9  			*.conf|*.lst)
    1.10  				cat $WANT | syntax_highlighter conf ;;
    1.11 @@ -123,6 +122,11 @@
    1.12  `df -h | grep ^/dev`
    1.13  </pre>
    1.14  
    1.15 +<h3>`gettext "Panel Activity"`</h3>
    1.16 +<pre>
    1.17 +$(cat $LOG_FILE | tail -n 6)
    1.18 +</pre>
    1.19 +
    1.20  <h3>`gettext "Panel settings"`</h3>
    1.21  <form method="get" action="$SCRIPT_NAME">
    1.22  	<div>