# HG changeset patch # User Christophe Lincoln # Date 1301975498 -7200 # Node ID b4e001e850454e24b3dad72b312275b9491afa0d # Parent 253219c1f9fe35558bba7b556e59f842608b682b add doc/ with index.cgi to generate translated help and doc + use absolute path in xHTML and config diff -r 253219c1f9fe -r b4e001e85045 index.cgi --- a/index.cgi Tue Apr 05 05:10:57 2011 +0200 +++ b/index.cgi Tue Apr 05 05:51:38 2011 +0200 @@ -23,13 +23,14 @@ if ifconfig | grep -A 1 $i | grep -q inet; then ip=`ifconfig | grep -A 1 $i | grep inet | \ awk '{ print $2 }' | cut -d ":" -f 2` - echo "connected $ip" + echo "connected$ip" else - echo "-" + echo "--------" fi } -# Catch network interface +# Catch network interface (network is splited this function and above +# must go in lib/libtazpanel list_network_interfaces() { table_start cat << EOT diff -r 253219c1f9fe -r b4e001e85045 lib/libtazpanel --- a/lib/libtazpanel Tue Apr 05 05:10:57 2011 +0200 +++ b/lib/libtazpanel Tue Apr 05 05:51:38 2011 +0200 @@ -18,11 +18,11 @@ # xhtml_header() { - cat $HEADER | sed s/'- %TITLE%'/"$TITLE"/ + cat ${PANEL}$HEADER | sed s/'- %TITLE%'/"$TITLE"/ } xhtml_footer() { - cat $FOOTER + cat ${PANEL}$FOOTER } table_start() { diff -r 253219c1f9fe -r b4e001e85045 styles/default/header.html --- a/styles/default/header.html Tue Apr 05 05:10:57 2011 +0200 +++ b/styles/default/header.html Tue Apr 05 05:51:38 2011 +0200 @@ -3,23 +3,23 @@ Tazpanel - %TITLE% - - + +
- +
diff -r 253219c1f9fe -r b4e001e85045 tazpanel.conf --- a/tazpanel.conf Tue Apr 05 05:10:57 2011 +0200 +++ b/tazpanel.conf Tue Apr 05 05:51:38 2011 +0200 @@ -5,10 +5,10 @@ PANEL="/var/www/tazpanel" STYLE="default" -# Path to images and xHTML skel -IMAGES="styles/$STYLE/images" -HEADER="styles/$STYLE/header.html" -FOOTER="styles/$STYLE/footer.html" +# Absolute path to images and xHTML skel from $PANEL +IMAGES="/styles/$STYLE/images" +HEADER="/styles/$STYLE/header.html" +FOOTER="/styles/$STYLE/footer.html" # Display some debug message DEBUG="0"