Advertisement
Guest User

Untitled

a guest
Jan 24th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if(isset($_GET['a'])){
  3. $f=fopen("message.txt","w");
  4. fwrite($f,$_GET['a']);
  5. fclose($f);
  6. exit;
  7.  
  8. } ?>
  9.  
  10. <?php
  11.     if (isset($_GET['message'])) {
  12.         $f=fopen("asdf.txt","w");
  13. fwrite($f,$_GET['a']);
  14. fclose($f);
  15. ?>
  16. <html>
  17. <head>
  18. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
  19.     <script type="text/javascript">
  20.     $(document).ready(function(){
  21.         $.ajax({
  22.           url: 'index.php',
  23.           data: 'a=<?php echo $_GET['message']; ?>',
  24.           dataType: 'json',
  25.           success: function(data)
  26.           {
  27.             $('#message').html('SEND');
  28.             $( "#message" ).fadeOut( "slow", function() {
  29.             $( "#message" ).html("&nbsp;");$( "#message" ).css("display","block");
  30.             });
  31.           }
  32.         });
  33.     });
  34.     </script>
  35. </head>
  36. </html>
  37. <?php
  38.     }
  39.     else {
  40. ?>
  41.  
  42. <!DOCTYPE html>
  43. <html>
  44. <head>
  45.     <title>2AHIFS InfoClock Webinterface</title>
  46.     <link rel="stylesheet" href="themes/my_theme.min.css" />
  47.     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile.structure-1.4.2.min.css" />
  48.     <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
  49.     <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
  50.     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
  51.     <script type="text/javascript">
  52.     $(document).ready(function(){
  53.       $('#submit').live('click', function() {
  54.           var button = $(this).val();
  55.           $.ajax({
  56.               url: 'index.php',
  57.               data: 'a=' + $("#input1").val(),
  58.               dataType: 'json',
  59.               success: function(data)
  60.               {
  61.                 $('#message').html('SEND');
  62.                 $( "#message" ).fadeOut( "slow", function() {
  63.                 $( "#message" ).html("&nbsp;");$( "#message" ).css("display","block");
  64.                 });
  65.               }
  66.           });
  67.           return false;
  68.       });
  69.       $('#knopf').live('click', function() {
  70.          var button = $(this).val();
  71.          $.ajax({
  72.          url: 'index.php',
  73.          data: 'a=letthebellring',
  74.          dataType: 'json',
  75.          success: function(data)
  76.          {
  77.             $('#message').html('RING');
  78.             $( "#message" ).fadeOut( "slow", function() {
  79.             $( "#message" ).html("&nbsp;");$( "#message" ).css("display","block");
  80.             });
  81.          }
  82.          });
  83.          return false;
  84.          });
  85.     });
  86.     </script>
  87.     <script>
  88.   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  89.   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  90.   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  91.   })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  92.  
  93.   ga('create', 'UA-51182728-1', 'gasser.tk');
  94.   ga('send', 'pageview');
  95.  
  96. </script>
  97.  
  98. </head>
  99.  
  100. <body style="background-color: #D8D8D8">
  101. <div data-role="page" id="one" data-theme="a">
  102.  
  103. <form action="" method="post" data-theme="b" style="margin-top:10px; background-color: #D8D8D8">
  104. <div data-role="header">
  105.         <h1>Webinterface 2AHIFS</h1>
  106. </div>
  107. <div  data-theme = "b" style="width: 80%; margin: auto;">
  108.     <span style=" width: 65%; float: left"><input onfocus="this.value=''" value="Text eingeben" id="input1" type="text" name="textinput" data-theme="b"; style="height: 25px; text-align:center;"></span>
  109.     <button type="button" style="background-color: #04B404; margin-left: 10%; width: 25%; float: right"  onclick="location.href='http://www.infoclock.gasser.tk/infoclock.html'">Visit clock</button>
  110.     <button data-theme="b" id="submit" type="submit" style="float: left; width: 65%; margin-top:1%">Submit</button>      
  111.     <div data-theme="b" style="float: right; width: 25%; margin-left: 10%; margin-top: 0.002%"><a data-theme="b" href="#popup" data-role="button" data-rel="dialog" data-transition="pop">Let the bell ring</a></div>
  112.     <button type="button" data-theme="b" style="margin-top: 4%; background-color: #04B404; margin-left: 10%; width: 25%; float: right"  onclick="location.href='http://www.infoclock.gasser.tk/infoscreen.php'">Visit InfoScreen</button>
  113.  </div>
  114.  
  115. <div id="message" style="text-align:center; font-size: 15pt; color:black;">&nbsp;</div>
  116.  
  117. <iframe src="http://www.infoclock.gasser.tk/timetable.html" style="width:100%; height: 800px"></iframe>
  118.  
  119.  
  120.         </div></form>
  121.        
  122. <div data-role="page" id="popup">
  123.  
  124.     <div data-role="header" data-theme="a">
  125.     <h1>Let the bell ring</h1>
  126.     </div>
  127.  
  128.     <form method="post" data-ajax="true">
  129.  
  130.         <div data-role="content" data-theme="a">   
  131.             <button type="submit" name="knopf" id="knopf" value="submit" class="ui-btn-hidden" aria-disabled="false">
  132.                 <input type="hidden" name="bell" value="true">
  133.                 <center><img src="http://diepresse.com/images/uploads/3/b/8/533432/schulglocke20100117193622.jpg" style="height:60px"></center>Schulglocke l&auml;uten<br>
  134.             </button>
  135.             <p><a href="#one" data-rel="back" data-role="button" data-inline="true">Back</a></p>   
  136.         </div>
  137.  
  138.     </form>
  139.     <div data-role="footer"><h1>ALL RIGHTS RESERVERD</h1></div>
  140. </div>
  141.  
  142. </div>
  143. </body>
  144. </html>
  145. <?php
  146.     }
  147. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement