<?php
/*
+---------------------------------------------------------------------+
| |
| SensorAndSwitch Automation Pro |
| PseudoGeräte-Script RaspberryPI |
| =============================================================== |
| Reboot sashelper |
| |
+---------------------------------------------------------------------+
*/
error_reporting(0);
# In der folgenden Datei sind die Variablen der sashelper mit Pfadangaben
# benannt, wie z. B.:
# $helperurlpi='http://192.168.123.123/sensorandswitch/sensorandswitchhelper.php';
include "conf/sensorandswitchhelperurl.phpconf";
include "include/includedateien.php";
include "include/includefunctions.php";
include "include/includeconf.php";
include "include/includeconfig.php";
include "include/includedefine.php";
include PIC."design.php";
include PIC.DESIGN."design.php";
$befehl='sudo shutdown -r now -t 3';
$url=$helperurlpi."?befehl=".encodiere($befehl,33455);
$Status=web($url,$post);
printf (
'<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="refresh" content="70; url='.$Conf["EURL"].'" />
<script type="text/javascript">
function info(dauer){
var Zeit = dauer +"s";
document.getElementById("hgraktualisierung").innerHTML = Zeit;
if (dauer != 0) {
var dauer = dauer - 1;
}
window.setTimeout("info("+dauer+")",1000);
}
</script>
<link rel="shortcut icon" href="'.PIC.'sensorandswitch.ico">
<style type="text/css">
/* CSS Browser-Default-Werte löschen */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%%;
vertical-align:baseline;
background:transparent;
}
body {
line-height:1;
}
ol, ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after, q:before, q:after {
content:"";
content:none;
}
:focus {
outline:0;
}
ins {
text-decoration:none;
}
del {
text-decoration:line-through;
}
table {
border-collapse:collapse;
border-spacing:0;
}
/* CSS zum Zentrieren */
#seite {
display:table;
overflow:hidden;
margin:0px auto;
}
*:first-child+html #seite {
position:relative;
}
* html #seite {
position:relative;
}
#container {
display:table-cell;
vertical-align: middle;
}
*:first-child+html #container {
position:absolute;
top:50%%;
}
* html #container {
position:absolute;
top:50%%;
}
*:first-child+html #inhalt {
position:relative;
top:-50%%;
}
* html #inhalt {
position:relative;
top:-50%%;
}
html, body {
height:100%%;
}
/* CSS des Inhalts */
body {
margin:0;
padding:0;
font-family:"'.$schrift.'";
color:'.$farbeschrift.';
background-color:'.$farbehintergrund.';
font-size:20px;
}
#seite {
height:100%%;
width:800px;
}
#container {
padding:0px;
}
img {
display:initial;
}
img.block {
display:block;
}
div {
border:0px;
border-style:solid;
border-color:white;
text-align:center;
}
#rahmen {
border-radius:20px;
padding:15px;
margin:15px;
border:2px;
border-style:solid;
border-color:'.$farbeschrift.';
color:'.$farbeschrift.';
position:relative;
font-size:28px;
text-align:center;
text-shadow:0px 0px 20px '.$farbebuttongluehen.',0px 0px 20px '.$farbebuttongluehen.',0px 0px 20px '.$farbebuttongluehen.';
}
</style>
</head>
<body>
<div id="seite">
<div id="container">
<div id="inhalt">
<div id="rahmen">SensorAndSwitch<br />RaspberryPI<br />Reboot läuft... <span id="hgraktualisierung"></span></div>
</div>
</div>
</div>
<script type="text/javascript">
var nix = info(70);
</script>
</body>
</html>');
exit;
?>