Advertisement
Guest User

Untitled

a guest
May 29th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. <?php
  2. if (isset($_POST['Skript1'])) { shell_exec("sudo bash /var/www/skript1.sh"); }
  3.  
  4. if (isset($_POST['Skript2'])) { shell_exec("sudo bash /var/www/skript2.sh"); }
  5.  
  6. if (isset($_POST['Skript3'])) { shell_exec("sudo bash /var/www/skript3.sh"); }
  7. ?>
  8.  
  9. <!DOCTYPE HTML >
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <title>Raspberry Pi</title>
  14. <style type="text/css">
  15.  
  16. body    {
  17.        background-color:#000000;
  18.            color: white;
  19.            }
  20.  
  21.  
  22. .style      {
  23.        text-align:center;
  24.        font-size:60px;
  25.        font-family:"Verdana";
  26.            }
  27.  
  28.  
  29. .Button     {
  30.        width:760px;
  31.        height:220px;
  32.        color:black;
  33.        background-color:#FAFAFA;
  34.        border-radius:80px;
  35.        font-size:45px;
  36.        }
  37.  
  38. </style>
  39. </head>
  40. <body>
  41. <nobr>
  42. <b>
  43.  
  44. <form action="" method="post">
  45.  
  46. <div class="style">
  47. <br>
  48. <button class="Button" type="submit" name="Skript1">Skript 1 Klick</button>
  49. </div>
  50.  
  51. <div class="style">
  52. <br>
  53. <button class="Button" type="submit" name="Skript2">Skript 2 Klick</button>
  54. </div>
  55.  
  56. <div class="style">
  57. <br>
  58. <button class="Button" type="submit" name="Skript3">Skript 3 Klick</button>
  59. </div>
  60.  
  61. </form>
  62. </nobr>
  63. </b>
  64. </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement