Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch($network) {
- case CouponCabin_Provider::COMMISSION_JUNCTION:
- return $link . $separator . 'sid=' . $rCode;
- case CouponCabin_Provider::LINKSHARE :
- return $link . $separator . 'u1=' . $rCode;
- case CouponCabin_Provider::GOOGLE_NETWORK :
- return $link . $separator . 'mid=' . $rCode;
- case CouponCabin_Provider::CLEAFS :
- return $link . $separator . 'label=' . $rCode;
- case CouponCabin_Provider::TRADE_DOUBLER :
- // Special logic to fix a trade-doubler-only bug
- // In that epi needs to be BEFORE the url parameter (if it exists)
- if (($idx = strpos($link, '&url=')) > -1) {
- $start = substr($link, 0, $idx);
- return $start . '&epi=' . $rCode . substr($link, $idx);
- }
- return $link . $separator . 'epi=' . $rCode;
- case CouponCabin_Provider::ZANOX :
- return $link . $separator . 'zpar0=[[' . $rCode . ']]'; // requires the brackets for whatever reason
- // Perfect
- case CouponCabin_Provider::AFFILIATE_WINDOW :
- // Do special check for maplin
- if ($store->name == 'Maplin') {
- return $link . $separator . 'U=' . $rCode;
- }
- // Special logic to fix a weird awin bug where the clickref needs
- // to be BEFORE the p parameter (if it exists), we want to insert
- // the clickref in before the p
- if (($idx = strpos($link, '&p=')) > -1) {
- $start = substr($link, 0, $idx);
- return $start . '&clickref=' . $rCode . substr($link, $idx);
- }
- // Otherwise use default
- return $link . $separator . 'clickref=' . $rCode;
- case CouponCabin_Provider::AFFILIATE_FUTURE :
- return $link . $separator . 'tracking=' . $rCode;
- case CouponCabin_Provider::BUY_AT :
- return $link . $separator . 'LID=' . $rCode;
- default :
- return $link;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement