mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Reading HTMLs directly from the filesystem is working again.
git-svn-id: https://svn.fhem.de/fhem/trunk@2888 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2bad079b65
commit
1f34f34c98
@ -335,6 +335,7 @@ FW_serveSpecial($$$$)
|
||||
my ($file,$ext,$dir,$cacheable)= @_;
|
||||
$file =~ s,\.\./,,g; # little bit of security
|
||||
|
||||
Log 1, "Serve: $dir, $file, $ext";
|
||||
$file = "$FW_sp$file" if($ext eq "css" && -f "$dir/$FW_sp$file.$ext");
|
||||
$FW_RETTYPE = ext2MIMEType($ext);
|
||||
#Log 1, "Serving $dir/$file.$ext as $FW_RETTYPE, cacheable:$cacheable";
|
||||
@ -348,6 +349,7 @@ FW_answerCall($)
|
||||
my ($arg) = @_;
|
||||
my $me=$defs{$FW_cname}; # cache, else rereadcfg will delete us
|
||||
|
||||
Log 1, "ANSWER $arg";
|
||||
$FW_RET = "";
|
||||
$FW_RETTYPE = "text/html; charset=$FW_encoding";
|
||||
$FW_ME = "/" . AttrVal($FW_wname, "webname", "fhem");
|
||||
@ -376,11 +378,13 @@ FW_answerCall($)
|
||||
} elsif($arg =~ m,^$FW_ME/(.*)/([^/]*)$,) { # the "normal" case
|
||||
my ($dir, $ofile, $ext) = ($1, $2, "");
|
||||
$dir =~ s/\.\.//g;
|
||||
$dir =~ s,www/,,g; # Want commandref.html to work from file://...
|
||||
|
||||
my $file = $ofile;
|
||||
if($file =~ m/^(.*)\.([^.]*)$/) {
|
||||
$file = $1; $ext = $2;
|
||||
}
|
||||
Log 1, "GOT $dir";
|
||||
my $ldir = "$FW_dir/$dir";
|
||||
$ldir = "$FW_dir/pgm2" if($dir eq "css" || $dir eq "js");
|
||||
$ldir = "$attr{global}{modpath}/docs" if($dir eq "docs");
|
||||
@ -402,6 +406,7 @@ FW_answerCall($)
|
||||
return -1;
|
||||
|
||||
}
|
||||
Log 1, "Searching for $arg";
|
||||
|
||||
|
||||
$FW_plotmode = AttrVal($FW_wname, "plotmode", "SVG");
|
||||
|
@ -81,6 +81,10 @@ foreach my $lang (@lang) {
|
||||
|
||||
} elsif(!$skip) {
|
||||
# here we copy line by line from the module
|
||||
# if($l =~ m/<.?pre>/) {
|
||||
# print "$lang $mod REMOVING <pre> Formatting\n";
|
||||
# $l =~ s/<.?pre>//g;
|
||||
# }
|
||||
print OUT $l;
|
||||
$docCount++;
|
||||
$hasLink = ($l =~ m/<a name="$mod">/) if(!$hasLink);
|
||||
|
@ -19,6 +19,7 @@ my @hw = qw(
|
||||
CUL_HM
|
||||
CUL_HOERMANN
|
||||
CUL_IR
|
||||
CUL_MAX
|
||||
CUL_RFR
|
||||
CUL_TX
|
||||
CUL_WS
|
||||
@ -31,12 +32,24 @@ my @hw = qw(
|
||||
EMWZ
|
||||
ESA2000
|
||||
EnOcean
|
||||
FBAHA
|
||||
FBDECT
|
||||
FHT
|
||||
FHT8V
|
||||
FHZ
|
||||
FRM
|
||||
FRM_AD
|
||||
FRM_I2C
|
||||
FRM_IN
|
||||
FRM_OUT
|
||||
FRM_PWM
|
||||
FRM_SERVO
|
||||
FS20
|
||||
HMLAN
|
||||
HMS
|
||||
HTTPSRV
|
||||
HUEBridge
|
||||
HUEDevice
|
||||
IPCAM
|
||||
IPWE
|
||||
IT
|
||||
@ -45,17 +58,31 @@ my @hw = qw(
|
||||
KS300
|
||||
LGTV
|
||||
LIRC
|
||||
LUXTRONIK2
|
||||
M232
|
||||
M232Counter
|
||||
M232Voltage
|
||||
MAX
|
||||
MAXLAN
|
||||
NetIO230B
|
||||
OREGON
|
||||
OWAD
|
||||
OWCOUNT
|
||||
OWDevice
|
||||
OWFS
|
||||
OWID
|
||||
OWLCD
|
||||
OWMULTI
|
||||
OWSWITCH
|
||||
OWServer
|
||||
OWTEMP
|
||||
OWTHERM
|
||||
OWX
|
||||
POKEYS
|
||||
RFXCOM
|
||||
RFXMETER
|
||||
RFXX10REC
|
||||
RSS
|
||||
SCIVT
|
||||
SISPM
|
||||
SIS_PMS
|
||||
@ -69,6 +96,7 @@ my @hw = qw(
|
||||
TRX_WEATHER
|
||||
TUL
|
||||
TellStick
|
||||
UNIRoll
|
||||
USBWX
|
||||
USF1000
|
||||
VantagePro2
|
||||
@ -76,11 +104,12 @@ my @hw = qw(
|
||||
WEBIO
|
||||
WEBIO_12DIGITAL
|
||||
WEBTHERM
|
||||
WOL
|
||||
WS2000
|
||||
WS300
|
||||
WS3600
|
||||
Weather
|
||||
X10
|
||||
YAMAHA_AVR
|
||||
ZWDongle
|
||||
ZWave
|
||||
xxLG7000
|
||||
@ -90,33 +119,42 @@ my @hw = qw(
|
||||
my @help = qw(
|
||||
CULflash
|
||||
Calendar
|
||||
DbLog
|
||||
FB_CALLMONITOR
|
||||
FHEM2FHEM
|
||||
FileLog
|
||||
HTTPSRV
|
||||
HCS
|
||||
Heating_Control
|
||||
JsonList
|
||||
MSG
|
||||
MSGFile
|
||||
MSGMail
|
||||
PID
|
||||
PRESENCE
|
||||
PachLog
|
||||
RSS
|
||||
SUNRISE_EL
|
||||
Weather
|
||||
SYSSTAT
|
||||
Twilight
|
||||
WOL
|
||||
XmlList
|
||||
at
|
||||
autocreate
|
||||
average
|
||||
backup
|
||||
createlog
|
||||
dewpoint
|
||||
dummy
|
||||
fheminfo
|
||||
holiday
|
||||
notice
|
||||
notify
|
||||
sequence
|
||||
structure
|
||||
telnet
|
||||
updatefhem
|
||||
update
|
||||
usb
|
||||
watchdog
|
||||
weblink
|
||||
|
||||
);
|
||||
|
||||
@ -158,11 +196,15 @@ my $title = "Used FHEM Modules & Components";
|
||||
|
||||
my $q = new CGI;
|
||||
print $q->header,
|
||||
$q->start_html( -title => $title, -style=>{-src=>"style.css"}), "\n";
|
||||
$q->start_html( -title => $title,
|
||||
-style => {-src=>"../www/pgm2/style.css"}), "\n";
|
||||
|
||||
print '<div id="left">', "\n",
|
||||
'<img src="fhem.png" alt="fhem-logo"/>', "\n",
|
||||
'<div id="menuScrollArea">',"\n",
|
||||
'<div id="logo"></div>',"\n",
|
||||
'<div id="menu">',"\n",
|
||||
'<h3>FHEM survey</h3>', "\n",
|
||||
'</div>', "\n",
|
||||
'</div>', "\n";
|
||||
|
||||
print '<div id="right">',"\n",
|
||||
|
@ -4,13 +4,14 @@
|
||||
|
||||
<head>
|
||||
<title>FHEM Howto</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>FHEM Howto</h3>
|
||||
@ -33,6 +34,7 @@
|
||||
<tr><td><a href="#structure">Structures</a></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="right">
|
||||
|
@ -1,13 +1,14 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<title>Mit FHEM beginnen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>FHEM Howto</h3>
|
||||
@ -30,6 +31,7 @@
|
||||
<tr><td>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -4,17 +4,19 @@
|
||||
|
||||
<head>
|
||||
<title>USB compendium</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>USB compendium</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -5,19 +5,20 @@
|
||||
|
||||
<head>
|
||||
<title>fhem reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>fhem.pl reference</h3>
|
||||
Version: <b>EN</b> <a href="commandref_DE.html">DE</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head>
|
||||
<title>FHEM reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
||||
<link rel="shortcut icon" href="http://fhem.de/favicon.ico">
|
||||
|
||||
|
@ -4,17 +4,19 @@
|
||||
|
||||
<head>
|
||||
<title>FHEM FAQ</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>FHEM FAQ</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<head>
|
||||
<title>Home of FHEM</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
</head>
|
||||
@ -12,6 +12,7 @@
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<table><tr><td> <!-- Playing with the width -->
|
||||
@ -40,6 +41,7 @@
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="right">
|
||||
@ -309,11 +311,9 @@
|
||||
<a href="http://wiki.dungeon.de/all6250_opennas_mit_fhem">
|
||||
http://wiki.dungeon.de/all6250_opennas_mit_fhem</a></li>
|
||||
<li>Linux driver installation:
|
||||
<a href="http://fhem.de/linux.html">
|
||||
http://fhem.de/linux.html</a></li>
|
||||
<a href="linux.html">linux.html</a></li>
|
||||
<li>Misc USB problems:
|
||||
<a href="http://fhem.de/USB.html">
|
||||
http://fhem.de/USB.html</a></li>
|
||||
<a href="USB.html">USB.html</a></li>
|
||||
<li>Russels Blog for Windows user:
|
||||
<a href="http://russellallen.info/category/FHEM.aspx">
|
||||
http://russellallen.info/category/FHEM.aspx</a> <br>
|
||||
|
@ -4,17 +4,19 @@
|
||||
|
||||
<head>
|
||||
<title>fhem on the Fritz!Box</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>Fhem on the Fritz!Box</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -4,16 +4,18 @@
|
||||
|
||||
<head>
|
||||
<title>fhem.pl - Hints for GNU/Linux</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>fhem.pl - Hints for GNU/Linux</h3>
|
||||
Version: <b>EN</b> <a href="linux_DE.html">DE</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -4,17 +4,19 @@
|
||||
|
||||
<head>
|
||||
<title>fhem.pl - Hinweise zu GNU/Linux</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="menuScrollArea">
|
||||
<div id="logo"></div>
|
||||
<div id="menu">
|
||||
<h3>fhem.pl - Hinweise zu GNU/Linux</h3>
|
||||
Version: <a href="linux.html">EN</a> <b>DE</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Author: Till */
|
||||
body { background-color: #444444; background-image:url(../icons/darklogo); background-repeat:no-repeat; color: #CCCCCC; font-family:Arial, Helvetica, sans-serif; font-size:13px;}
|
||||
body { background-color: #444444; background-image:url(../images/dark/darklogo.png); background-repeat:no-repeat; color: #CCCCCC; font-family:Arial, Helvetica, sans-serif; font-size:13px;}
|
||||
#logo { position:absolute; top:10px; left:20px; width:140px; visibility:hidden; }
|
||||
#menu { position:absolute; top:170px;left:20px; width:140px; }
|
||||
#hdr { position:absolute; top:10px; left:180px; }
|
||||
|
@ -4,7 +4,7 @@ input { font-family:Arial, sans-serif; font-size:16px; }
|
||||
select { font-family:Arial, sans-serif; font-size:16px; }
|
||||
|
||||
#logo { margin-top:10px; margin-left:20px; width:120px; height:132px;
|
||||
background-image:url(../icons/fhemicon.png); }
|
||||
background-image:url(../images/default/fhemicon.png); }
|
||||
#menu { margin-top:10px; margin-left:20px; width:140px; }
|
||||
#menuScrollArea { width: 175px; left:0px; top:0px; height:100%;
|
||||
position:fixed; overflow-x:hidden; overflow-y:auto; }
|
||||
@ -28,7 +28,8 @@ table { border-radius:8px; }
|
||||
table#room { border:1px solid gray; width: 100%; background: #D7FFFF; }
|
||||
table#room tr.sel { background: #A0FFFF; }
|
||||
|
||||
#right { position:absolute; top:20px; left:180px; bottom:20px; right:10px; }
|
||||
#right { position:absolute; top:20px; left:180px; }
|
||||
|
||||
h2,h3,h4 { color:#52865D; line-height:1.3;
|
||||
margin-top:1.5em; font-family:Arial,Sans-serif; }
|
||||
div#block { border:1px solid gray; background: #F8F8E0; padding:0.7em; }
|
||||
|
Loading…
Reference in New Issue
Block a user