1. <?php
  2. if (isset($_POST['buttonO1'])) { shell_exec('/home/pi/upload-now.sh <?php echo $_POST["title"]; ?> <?php echo $_POST["file"]; ?> <?php echo $_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. <title>PYouTube Upload</title>
  16. <style type="text/css">
  17. body {
  18. background-color:#1b191a;
  19. background-image:url(./);
  20. background-repeat:no-repeat;
  21. color: white;
  22. }
  23. .Buttons {
  24. text-align:center;
  25. font-size:50px;
  26. font-family:verdana, sans-serif;
  27. }
  28. .onButton{
  29. width:200px;
  30. height:100px;
  31. margin:-10px 10px 0px 10px;
  32. color:white;
  33. background-color:#53bc41;
  34. border-radius:8px;
  35. font-size:50px;
  36. }
  37. .bottom_text {
  38. text-align-center;
  39. font-size: 20px;
  40. font-family: verdana, sans-serif;
  41. position: static;
  42. }
  43. </style>
  44. </head>
  45. <body>
  46. <form action="" method="post">
  47. <div class="bottom_text">
  48. <p style="text-align:center">Title:</p><input type="text" name="title">
  49. <p style="text-align:center">File</p> <input type="text" name="file">
  50. <p style="text-align:center">Time:</p> <input type="text" name="time">
  51. </div>
  52. <div class="Buttons">
  53. <p>Upload to YouTube</p>
  54. <button class="onButton" type="submit" name="buttonO1">Upload</button>
  55. </div>
  56. </form>
  57. <hr style="margin-top:20px;">
  58. <div class="bottom_text">
  59. <p style="text-align:center;">Systemtemperature: <?php echo $systemp; ?></p>
  60. </div>
  61. </body>
  62. </html>

Der Code ist genommen von einer funksteckdosen-control seite, die ich schonmal geschrieben habe. Wäre toll, wenn ihr mir hiermit helfen könntet!