Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['Licht1'])) {shell_exec("sudo bash skript1.sh");}
- ...
- if (isset($_POST['Licht6'])) {shell_exec("sudo bash skript6.sh");}
- ?>
- <!DOCTYPE HTML>
- <html>
- ...
- <form action="" method="post">
- <div class="style">
- <br>
- <button class="Button" type="submit" name="Licht1">Lampe 1 toggeln</button>
- </div>
- ...
- <div class="style">
- <br>
- <button class="Button" type="submit" name="Licht6">Lampe 6 toggeln</button>
- </div>
- ...
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement