From 93d1de74518a9205a0bb8f2467ca8738af6044f1 Mon Sep 17 00:00:00 2001 From: odroegehorn <> Date: Thu, 22 Jan 2009 12:38:16 +0000 Subject: [PATCH] FS20 + FHT enabled git-svn-id: https://svn.fhem.de/fhem/trunk@339 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm5/fhemiphone.pl | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/fhem/webfrontend/pgm5/fhemiphone.pl b/fhem/webfrontend/pgm5/fhemiphone.pl index 325784fcf..8f01296e6 100644 --- a/fhem/webfrontend/pgm5/fhemiphone.pl +++ b/fhem/webfrontend/pgm5/fhemiphone.pl @@ -107,7 +107,10 @@ $docmd = 1 if($cmd && $cmd !~ /^style / && $cmd !~ /^edit/); -$cmdret = fhemcmd($cmd) if($docmd); +if($docmd) { + $cmdret = fhemcmd($cmd); + exit (0); +} parseXmlList($docmd); @@ -134,10 +137,7 @@ if($cmd =~ m/^toweblink (.*)$/) { print $q->header; print $q->start_html(-name=>$title, -title=>$title, -meta=> {'viewport'=>'width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;'}, -style =>{ -type=>'text/css', -media=>'screen', -src=>'./icons/iui.css'}, -script=>{ -type=>"application/x-javascript", -src=>"./icons/iui.js"}); -print"
"; + #For manually enetered commands #if($cmdret) { @@ -299,7 +299,7 @@ parseXmlList($) $types{$devs{$d}{type}} = 1; } $title = $devs{global}{ATTR}{title}{VAL} ? - $devs{global}{ATTR}{title}{VAL} : "DHS - Office Management"; + $devs{global}{ATTR}{title}{VAL} : "FHEM - Control"; $room = $devs{$detail}{ATTR}{room}{VAL} if($detail); } @@ -442,7 +442,13 @@ doDetail($) sub roomOverview($) { + my ($cmd) = @_; + print" "; + print "