Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. if ( isset($_POST['remote']) ) {
  4. shell_exec('sudo /opt/433Utils/RPi_utils/codesend '.$_POST["remote"].'> /var/tmp/remote.log');
  5. }
  6. ?>
  7.  
  8. <!DOCTYPE HTML>
  9. <html>
  10.  
  11. <body>
  12. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  13. <button type="submit" name="remote" value="4128960" />on</button>
  14. <button type="submit" name="remote" value="4128768" />off</button>
  15. </form>
  16. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement