daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top