From: Bernhard Tittelbach Date: Sun, 5 Aug 2012 01:16:23 +0000 (+0000) Subject: otti switch mobile version X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=ab78866ce6c7598802ccdb9101899accb4892733;p=svn42.git otti switch mobile version --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index fb67efa..baaf33d 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -10,6 +10,10 @@ for QUERY in `echo $QUERY_STRING | tr '&' ' '`; do POWER='?' elif [ "$POWER" == "?" ]; then POWER=$VALUE + elif [ "$VALUE" == "mobile" ]; then + MOBILE='1' + elif [ "$POWER" == "?" ]; then + POWER=$VALUE elif [ "$VALUE" == "ajax" ]; then AJAX='?' elif [ "$AJAX" == "?" ]; then @@ -137,8 +141,12 @@ for DISPID in $VALID_ONOFF_IDS; do echo "" fi + if [ "$MOBILE" == "1" ]; then + echo "
" + fi done echo "" +if [ "$MOBILE" != "1" ]; then echo "
" for DISPID in $VALID_SEND_IDS; do NAME="$(eval echo \$DESC_$DISPID)" @@ -184,5 +192,6 @@ for DISPID in $VALID_BANSHEE_IDS; do fi done echo "
" +fi echo "" echo ""