Advertisement
Guest User

WeWe Update

a guest
Dec 12th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. isset( $_GET[‘clickid’] ) ? $click_code = $_GET[‘clickid’] : $click_code = ‘0’;
  3. ?>
  4. <script type="text/javascript">
  5. (function (document, window) {
  6. // Declaring script and what should happen on load
  7. var script = document.createElement("script");
  8. script.type = "text/javascript";
  9. script.src = "https://api.pushnami.com/scripts/v1/pushnami-adv/Key";
  10. script.onload = function() {
  11. Pushnami
  12. .update({
  13. "binomid": "<REPLACE WITH YOUR VARIABLE>"
  14. })
  15. .prompt()
  16.  
  17. // Listen for opt-in event
  18. Pushnami.on(['permissions-action-subscribed-new'], function() {
  19. var request = new XMLHttpRequest();
  20. request.onreadystatechange = function() {
  21. if (request.readyState == XMLHttpRequest.DONE) {
  22. }
  23. }
  24. request.open("GET", "https://postback.com/click.php?cnv_id=<?php echo $click_code; ?>", true);
  25. request.send(null);
  26. });
  27. };
  28. // load the script
  29. document.getElementsByTagName("head")[0].appendChild(script);
  30.  
  31. })(document, window);
  32. </script>
  33.  
  34. <link rel="manifest" href="/manifest.json">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement