2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

cname made global for FLOORPLAN

git-svn-id: https://svn.fhem.de/fhem/trunk@1372 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-03-21 11:42:38 +00:00
parent 4503e42426
commit b15e529518

View File

@ -47,6 +47,7 @@ use vars qw($FW_RET); # Returned data (html)
use vars qw($FW_wname); # Web instance use vars qw($FW_wname); # Web instance
use vars qw($FW_subdir); # Sub-path in URL for extensions, e.g. 95_FLOORPLAN use vars qw($FW_subdir); # Sub-path in URL for extensions, e.g. 95_FLOORPLAN
use vars qw(%FW_pos); # scroll position use vars qw(%FW_pos); # scroll position
use vars qw($FW_cname); # Current connection name
my $zlib_loaded; my $zlib_loaded;
my $try_zlib = 1; my $try_zlib = 1;
@ -68,7 +69,6 @@ my $FW_RETTYPE; # image/png or the like
my $FW_room; # currently selected room my $FW_room; # currently selected room
my %FW_rooms; # hash of all rooms my %FW_rooms; # hash of all rooms
my %FW_types; # device types, for sorting my %FW_types; # device types, for sorting
my $FW_cname; # Current connection
my @FW_zoom; # "qday", "day","week","month","year" my @FW_zoom; # "qday", "day","week","month","year"
my %FW_zoom; # the same as @FW_zoom my %FW_zoom; # the same as @FW_zoom
my %FW_hiddenroom; # hash of hidden rooms my %FW_hiddenroom; # hash of hidden rooms
@ -389,12 +389,13 @@ FW_AnswerCall($)
} }
$arg = $1; # The stuff behind FW_ME
$FW_plotmode = AttrVal($FW_wname, "plotmode", "SVG"); $FW_plotmode = AttrVal($FW_wname, "plotmode", "SVG");
$FW_plotsize = AttrVal($FW_wname, "plotsize", $FW_ss ? "480,160" : $FW_plotsize = AttrVal($FW_wname, "plotsize", $FW_ss ? "480,160" :
$FW_tp ? "640,160" : "800,160"); $FW_tp ? "640,160" : "800,160");
############################## ##############################
# Axels FHEMWEB modules... # Axels FHEMWEB modules...
$arg = $1;
my $fwextPtr; my $fwextPtr;
if(defined($data{FWEXT})) { if(defined($data{FWEXT})) {
foreach my $k (sort keys %{$data{FWEXT}}) { foreach my $k (sort keys %{$data{FWEXT}}) {