Urja

Untitled

Jul 14th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <?php
  2. include_once 'database.php';
  3. $db = new Database();
  4. $token = $db->getRegisteredToken();
  5. echo $token;
  6. ?>
  7. <html lang=”en”>
  8. <head>
  9. <meta charset=”utf-8?>
  10. <meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
  11. <meta name=”viewport” content=”width=device-width, initial-scale=1?>
  12. <title>Admin Section Login</title>
  13. <link href=”style.css” rel=”stylesheet”>
  14. </head>
  15. <body>
  16. <div id=”form-wrapper”>
  17.  
  18. </style>
  19. <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script>
  20. <script>
  21. $(function(){
  22. $(“textarea”).val(“”);
  23. });
  24. function isEmptyTextBox(){
  25. var msgLength = $.trim($(“textarea”).val()).length;
  26. if(msgLength == 0){
  27. alert(“Text box must not be empty”);
  28. return false;
  29. }else{
  30. return true;
  31. }
  32. }
  33. </script>
  34. <p id=”logo”><img src=”images/fly.png” alt=”logo” /></p>
  35. <h2>Firesbase Cloud Messaging (Php Web Server) </h2>
  36. <p>Firebase Downstream Push Notification</p>
  37. <form method=”post” action=”Servertofirebase.php” onsubmit=”return isEmptyTextBox()”>
  38. <input type=”hidden” id=”user_id” name=”token” value=”<?php echo $token ? $token : 0 ?>”>
  39. <textarea cols=”70? rows=”12? name=”message” cols=”45? placeholder=”Message via Firebase Cloud Messaging”></textarea> <br/>
  40. <input id=”button-send” type=”submit” value=” Send Firebase Push Notification” />
  41. </form>
  42. </div>
  43. </body>
  44. </html>
Add Comment
Please, Sign In to add comment