Advertisement
Hoffy1988

index.php

Jul 24th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. if (isset($_POST['Licht1'])) {shell_exec("sudo bash skript1.sh");}
  3. ...
  4. if (isset($_POST['Licht6'])) {shell_exec("sudo bash skript6.sh");}
  5. ?>
  6.  
  7. <!DOCTYPE HTML>
  8. <html>
  9. ...
  10.  
  11. <form action="" method="post">
  12.     <div class="style">
  13.     <br>
  14.     <button class="Button" type="submit" name="Licht1">Lampe 1 toggeln</button>
  15.     </div>
  16.    
  17.     ...
  18.    
  19.     <div class="style">
  20.     <br>
  21.     <button class="Button" type="submit" name="Licht6">Lampe 6 toggeln</button>
  22.     </div>
  23.    
  24. ...
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement