<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width"/>
<meta charset="UTF-8">
<title>Gartenlicht schalten</title>
</head>
<body>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Pool" name="Pool">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Poolaus" name="Poolaus">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Terasse" name="Terasse">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Terasseaus" name="Terasseaus">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Gartenhaus" name="Gartenhaus">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="Gartenhausaus" name="Gartenhausaus">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="alle" name="alle">
</form>
</br>
<form method="get" action="Gartenlicht.php">
<input type="submit" value="alleaus" name="alleaus">
</form>
<?php
if(isset($_GET['Pool'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 1 1");
}
if(isset($_GET['Poolaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 1 O");
}
if(isset($_GET['Terasse'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 2 1");
}
if(isset($_GET['Terasseaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 2 O");
}
if(isset($_GET['Gartenhaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 3 1");
}
if(isset($_GET['Gartehausaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 3 O");
}
if(isset($_ GET['alleaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 1 1");
exec("sudo /home/pi/raspberry-remote/./send 11111 2 1");
exec("sudo /home/pi/raspberry-remote/./send 11111 3 1");
}
if(isset($_ GET['alleaus'])){
exec("sudo /home/pi/raspberry-remote/./send 11111 1 0");
exec("sudo /home/pi/raspberry-remote/./send 11111 2 0");
exec("sudo /home/pi/raspberry-remote/./send 11111 3 0");
}
?>
</body>
</html>
- Output for 5.4.0 - 5.4.45, 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected 'GET' (T_STRING), expecting ',' or ')' in /in/V24XM on line 69
Process exited with code 255. - Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected 'GET' (T_STRING) in /in/V24XM on line 69
Process exited with code 255. - Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected T_STRING, expecting ',' or ')' in /in/V24XM on line 69
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected T_STRING, expecting ',' or ')' in /in/V24XM on line 69
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error, expecting `','' or `')'' in /in/V24XM on line 69
Process exited with code 255.
preferences:
234.3 ms | 1395 KiB | 153 Q