Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2.  
  3. function get_c1() {
  4. if (isset($_REQUEST['c1'])) {
  5. $c1 = $_REQUEST['c1'];
  6. return $c1;
  7. }
  8. }
  9.  
  10. function get_c2() {
  11. if (isset($_REQUEST['c2'])) {
  12. $c2 = $_REQUEST['c2'];
  13. return $c2;
  14. }
  15. }
  16.  
  17. function get_c3() {
  18. if (isset($_REQUEST['c3'])) {
  19. $c3 = $_REQUEST['c3'];
  20. return $c3;
  21. }
  22. }
  23.  
  24. function get_affID() {
  25.  
  26. $default = '370432';
  27.  
  28. if (isset($_REQUEST['affid'])) {
  29. $affid = $_REQUEST['affid'];
  30. return $affid;
  31. }
  32. else {
  33. return $default;
  34. }
  35.  
  36. }
  37.  
  38. function encodeTrackingParameters() {
  39.  
  40. $tpl = '?affid='.get_affID().'&c1='.get_c1().'&c2='.get_c2().'&c3='.get_c3();
  41.  
  42. return $tpl;
  43.  
  44. }
  45.  
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement