Guest User

Untitled

a guest
Jun 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  2. if($host === "domain.com/checkout/") {
  3. //if im at that page, I get a alert as I should
  4. echo "<script>alert('$host');</script>";
  5. return false;
  6. } else {
  7. //Here i get the h alert only at pages that is not checkout, BUT require is loaded at checkout as well. Which it shouldn't.
  8. echo "<script>alert('h');</script>";
  9. require_once 'lazyload.php';
  10. }
Add Comment
Please, Sign In to add comment