jkhsjdhjs

index.php | WakeOnLAN | AJAX

May 22nd, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <?php
  3.     require_once("config.php");
  4. ?>
  5. <html>
  6.     <head>
  7.         <meta http-equiv="content-type" content="text/html; charset=<?php echo "$website_charset"; ?>">
  8.         <title>
  9.             <?php
  10.                 echo "$website_title";
  11.             ?>
  12.         </title>
  13.         <script type="text/javascript" src="jquery.js"></script>
  14.         <script type="text/javascript">
  15.             function callPHPScript() {
  16.                 var password = $('input[name=password]').val();
  17.                 var wake_up_pc = $('input[name=wake_up_pc]').val();
  18.              
  19.                 $.post("wakeup.php", {
  20.                     pwd: password,
  21.                     wup: wake_up_pc
  22.                 },
  23.                 function (data) {
  24.                     $('#output').text(data);
  25.                 });
  26.             }
  27.         </script>
  28.     </head>
  29.     <body>
  30.         Welcher Rechner soll gestartet werden?
  31.         <br>
  32.         <form action="">
  33.             <input type="radio" name="wake_up_pc" value="Benziuminator" id="wake_up_pc"> Benziuminator<br>
  34.             Passwort:
  35.             <input type="password" name="password" id="password"><br>
  36.             <input type="button" value="Starten!" onclick="callPHPScript()">
  37.         </form>
  38.         <br>
  39.         Log:
  40.         <div nav="output" name="output" id="output" style="border:1px solid black; width:700px; height:120px">
  41.         </div>
  42.     </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment