mirror of
https://github.com/sigmasternchen/PiSwitch
synced 2025-03-15 07:58:58 +00:00
another header. do you know what headers are?
This commit is contained in:
parent
67a8b9b1cf
commit
9350c4564c
1 changed files with 8 additions and 9 deletions
17
param.php
17
param.php
|
@ -3,16 +3,15 @@
|
||||||
/* Prueft die evtl. uebergebenen Parameter */
|
/* Prueft die evtl. uebergebenen Parameter */
|
||||||
|
|
||||||
include 'config.php';
|
include 'config.php';
|
||||||
header("Content-Type: text/html; charset=UTF-8");
|
|
||||||
|
|
||||||
foreach($_GET as $key in $value) {
|
foreach($_GET as $key in $value) {
|
||||||
if (substr($key, 0, 4) != "sent")
|
if (substr($key, 0, 4) != "sent")
|
||||||
continue;
|
continue;
|
||||||
$num = substr($key, 3, 1);
|
$num = substr($key, 3, 1);
|
||||||
$state = substr($key, 4, 1);
|
$state = substr($key, 4, 1);
|
||||||
shell_exec($path . '/send ' . $code . ' ' . $num . ' ' . $state);
|
shell_exec($path . '/send ' . $code . ' ' . $num . ' ' . $state);
|
||||||
shell_exec('./script/regenerate.sh ' . $num . $state);
|
shell_exec('./script/regenerate.sh ' . $num . $state);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET["kette1"])){
|
if(isset($_GET["kette1"])){
|
||||||
shell_exec('sudo script/kette1.sh'); // ???
|
shell_exec('sudo script/kette1.sh'); // ???
|
||||||
|
|
Loading…
Reference in a new issue