Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_GET['a'])){
- $f=fopen("message.txt","w");
- fwrite($f,$_GET['a']);
- fclose($f);
- exit;
- } ?>
- <?php
- if (isset($_GET['message'])) {
- $f=fopen("asdf.txt","w");
- fwrite($f,$_GET['a']);
- fclose($f);
- ?>
- <html>
- <head>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $.ajax({
- url: 'index.php',
- data: 'a=<?php echo $_GET['message']; ?>',
- dataType: 'json',
- success: function(data)
- {
- $('#message').html('SEND');
- $( "#message" ).fadeOut( "slow", function() {
- $( "#message" ).html(" ");$( "#message" ).css("display","block");
- });
- }
- });
- });
- </script>
- </head>
- </html>
- <?php
- }
- else {
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>2AHIFS InfoClock Webinterface</title>
- <link rel="stylesheet" href="themes/my_theme.min.css" />
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile.structure-1.4.2.min.css" />
- <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#submit').live('click', function() {
- var button = $(this).val();
- $.ajax({
- url: 'index.php',
- data: 'a=' + $("#input1").val(),
- dataType: 'json',
- success: function(data)
- {
- $('#message').html('SEND');
- $( "#message" ).fadeOut( "slow", function() {
- $( "#message" ).html(" ");$( "#message" ).css("display","block");
- });
- }
- });
- return false;
- });
- $('#knopf').live('click', function() {
- var button = $(this).val();
- $.ajax({
- url: 'index.php',
- data: 'a=letthebellring',
- dataType: 'json',
- success: function(data)
- {
- $('#message').html('RING');
- $( "#message" ).fadeOut( "slow", function() {
- $( "#message" ).html(" ");$( "#message" ).css("display","block");
- });
- }
- });
- return false;
- });
- });
- </script>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-51182728-1', 'gasser.tk');
- ga('send', 'pageview');
- </script>
- </head>
- <body style="background-color: #D8D8D8">
- <div data-role="page" id="one" data-theme="a">
- <form action="" method="post" data-theme="b" style="margin-top:10px; background-color: #D8D8D8">
- <div data-role="header">
- <h1>Webinterface 2AHIFS</h1>
- </div>
- <div data-theme = "b" style="width: 80%; margin: auto;">
- <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>
- <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>
- <button data-theme="b" id="submit" type="submit" style="float: left; width: 65%; margin-top:1%">Submit</button>
- <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>
- <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>
- </div>
- <div id="message" style="text-align:center; font-size: 15pt; color:black;"> </div>
- <iframe src="http://www.infoclock.gasser.tk/timetable.html" style="width:100%; height: 800px"></iframe>
- </div></form>
- <div data-role="page" id="popup">
- <div data-role="header" data-theme="a">
- <h1>Let the bell ring</h1>
- </div>
- <form method="post" data-ajax="true">
- <div data-role="content" data-theme="a">
- <button type="submit" name="knopf" id="knopf" value="submit" class="ui-btn-hidden" aria-disabled="false">
- <input type="hidden" name="bell" value="true">
- <center><img src="http://diepresse.com/images/uploads/3/b/8/533432/schulglocke20100117193622.jpg" style="height:60px"></center>Schulglocke läuten<br>
- </button>
- <p><a href="#one" data-rel="back" data-role="button" data-inline="true">Back</a></p>
- </div>
- </form>
- <div data-role="footer"><h1>ALL RIGHTS RESERVERD</h1></div>
- </div>
- </div>
- </body>
- </html>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement