Guest User

Untitled

a guest
Oct 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <?php
  2. if (isset($_GET["googlesearch"])) {
  3. header("Location: https://www.test.com/#!q=" . $_GET["googlesearch"] . "&page=0&refinements=%5B%5D&numerics_refinements=%7B%7D&index_name=%22_default_products%22");
  4. exit;
  5. }
  6. ?>
  7.  
  8. <!--
  9. This is the minimum valid AMP HTML document. Just type away
  10. here and the AMP Playground will render your document on the fly.
  11. -->
  12. <?php
  13. if (isset($_GET["googlesearch"])) {
  14. header("Location: https://www.test.com/#!q=" . $_GET["googlesearch"] . "&page=0&refinements=%5B%5D&numerics_refinements=%7B%7D&index_name=%22_default_products%22");
  15. exit;
  16. }
  17. ?>
  18. <!doctype html>
  19. <html ⚡>
  20. <head>
  21. <meta charset="utf-8">
  22. <link rel="canonical" href="self.html" />
  23. <meta name="viewport" content="width=device-width,minimum-scale=1">
  24. <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  25. <script async src="https://cdn.ampproject.org/v0.js"></script>
  26. <!-- Custom CSS -->
  27. <style amp-custom>
  28. <?php include './components/skin/style/css/base.css'; ?>
  29. </style>
  30. </head>
  31. <body>
  32. <!-- Search bar -->
  33. <div class="sidebar">
  34.  
  35. <form method="GET"
  36. class="p2"
  37. action="<?php echo $_SERVER['PHP_SELF']; ?>"
  38. target="_top">
  39. <div class="ampstart-input inline-block relative mb3">
  40. <input type="search"
  41. placeholder="Search..."
  42. name="googlesearch">
  43. </div>
  44. <input type="submit"
  45. value="OK"
  46. class="ampstart-btn caps">
  47. </form>
  48.  
  49. </div>
  50. </body>
  51. </html>
Add Comment
Please, Sign In to add comment