1. <?php
  2. if (isset($_POST['buttonO1'])) { shell_exec("/var/www/scripts/upload.sh {$_POST['title']} {$_POST['file']} {$_POST['time']}"); }
  3. $systemp = shell_exec('/var/www/scripts/temp.sh');
  4. ?>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  6. "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <link rel="apple-touch-icon" href="./icons/apple-touch-icon-57x57.png" />
  10. <link rel="apple-touch-icon" sizes="500x500" href="./icons/apple-touch-icon.png" />
  11. <link rel="apple-touch-icon" sizes="72x72" href="./icons/apple-touch-icon-72x72.png" />
  12. <link rel="apple-touch-icon" sizes="114x114" href="./icons/apple-touch-icon-114x114.png" />
  13. <link rel="apple-touch-icon" sizes="144x144" href="./icons/apple-touch-icon-144x144.png" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <meta name="robots" content="noindex">
  16. <title>YouTube Upload</title>
  17. <style type="text/css">
  18. body {
  19. background-color:#1b191a;
  20. background-image:url(./);
  21. background-repeat:no-repeat;
  22. color: white;
  23. }
  24. .wrapButtons {
  25. text-align:center;
  26. font-size:50px;
  27. font-family:verdana, sans-serif;
  28. }
  29. .onButton, .offButton {
  30. width:200px;
  31. height:100px;
  32. margin:-10px 10px 0px 10px;
  33. color:white;
  34. background-color:#53bc41;
  35. border-radius:8px;
  36. font-size:50px;
  37. }
  38. .bottom_text {
  39. text-align-center;
  40. font-size: 20px;
  41. font-family: verdana, sans-serif;
  42. position: static;
  43. }
  44. .offButton {
  45. background-color:#e40e12;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <form action="" method="post">
  51. <div class="wrapButtons">
  52. <p style="text-align:center">Title:</p> <input type="text" name="title">
  53. <p style="text-align:center">File</p> <input type="text" name="file">
  54. <p style="text-align:center">Time:</p> <input type="text" name="time">
  55. <p>Upload to YouTube</p>
  56. <button class="onButton" type="submit" name="buttonO1">Upload</button>
  57. </div>
  58. </form>
  59. <hr style="margin-top:20px;">
  60. <div class="bottom_text">
  61. <p style="text-align:center;">System temperature: <?php echo $systemp; ?></p>
  62. </div>
  63. </body>
  64. </html>

Verändertest script - funktioniert immer noch nicht