Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( isset($_POST['remote']) ) {
- shell_exec('sudo /opt/433Utils/RPi_utils/codesend '.$_POST["remote"].'> /var/tmp/remote.log');
- }
- ?>
- <!DOCTYPE HTML>
- <html>
- <body>
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
- <button type="submit" name="remote" value="4128960" />on</button>
- <button type="submit" name="remote" value="4128768" />off</button>
- </form>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement