tazpanel diff lib/libtazpanel @ rev 49
Update all page with latest functions such as debug, bunch of fixes and adding support for deamons
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 09 00:22:23 2011 +0200 (2011-04-09) |
parents | 56d55a9dcc9c |
children | a7f0d1a1ed2e |
line diff
1.1 --- a/lib/libtazpanel Fri Apr 08 05:59:24 2011 +0200 1.2 +++ b/lib/libtazpanel Sat Apr 09 00:22:23 2011 +0200 1.3 @@ -20,6 +20,13 @@ 1.4 exit 1 1.5 } 1.6 1.7 +# DEBUG mode 1.8 +debug_info() { 1.9 + if [ $DEBUG == "1" ]; then 1.10 + echo "<div class='debug'>$REQUEST_METHOD ${QUERY_STRING}</div>" 1.11 + fi 1.12 +} 1.13 + 1.14 # Network interface status 1.15 interface_status() { 1.16 if ifconfig | grep -A 1 $i | grep -q inet; then