Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['Skript1'])) { shell_exec("sudo bash /var/www/skript1.sh"); }
- if (isset($_POST['Skript2'])) { shell_exec("sudo bash /var/www/skript2.sh"); }
- if (isset($_POST['Skript3'])) { shell_exec("sudo bash /var/www/skript3.sh"); }
- ?>
- <!DOCTYPE HTML >
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Raspberry Pi</title>
- <style type="text/css">
- body {
- background-color:#000000;
- color: white;
- }
- .style {
- text-align:center;
- font-size:60px;
- font-family:"Verdana";
- }
- .Button {
- width:760px;
- height:220px;
- color:black;
- background-color:#FAFAFA;
- border-radius:80px;
- font-size:45px;
- }
- </style>
- </head>
- <body>
- <nobr>
- <b>
- <form action="" method="post">
- <div class="style">
- <br>
- <button class="Button" type="submit" name="Skript1">Skript 1 Klick</button>
- </div>
- <div class="style">
- <br>
- <button class="Button" type="submit" name="Skript2">Skript 2 Klick</button>
- </div>
- <div class="style">
- <br>
- <button class="Button" type="submit" name="Skript3">Skript 3 Klick</button>
- </div>
- </form>
- </nobr>
- </b>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement