another header. do you know what headers are?

This commit is contained in:
overflowerror 2015-04-22 22:06:00 +02:00
parent 67a8b9b1cf
commit 9350c4564c

View file

@ -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'); // ???