From ab78866ce6c7598802ccdb9101899accb4892733 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sun, 5 Aug 2012 01:16:23 +0000 Subject: [PATCH] otti switch mobile version --- powersensordaemon/switch.cgi | 9 +++++++++ 1 file changed, 9 insertions(+) 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 "" -- 1.7.10.4