\n"; $code .= "\n"; $code .= "\n\n"; return $code; } function getTargetParam( $targets, $tval, $tsale, $tonr, $customer = 0, $basket = "" ) { global $cname; $tval = str_replace(",", ".", $tval); $tsale = $tsale? 1 : 0; $targets = rawurlencode( $targets ); $code = "\n"; $code .= "\n"; $code .= "\n\n"; return $code; } function getCampaignParam( $lpage, $trigger, $se = 0 ) { $code = "\n"; $code .= "\n"; $code .= "\n\n"; return $code; } function getURLParam() { $code = "\n"; $code .= "\n"; $code .= "\n"; return $code; } function getBaseCode( $crypt_id, $easy = false, $ssl = false, $pagename = "", $areas = "", $ilevel = 0, $targets = "", $tval = "", $tsale = 0, $tonr = 0, $lpage = 0, $trigger = 0, $customer = 0, $basket = "", $free = false, $se = 0, $url = "" ) { global $cfgServername; $script = $free? "fcnt" : "cnt"; $easy = $easy? 1 : 0; $ssl = $ssl? 1 : 0; $pagename = rawurlencode( $pagename ); $areas = rawurlencode( $areas ); $targets = rawurlencode( $targets ); $basket = rawurlencode( $basket ); $tsale = $tsale ? 1 : 0; $code = "\n"; $code .= "\n"; $code .= "\n\n"; $code .= getURLParam(); $code .= "\n"; $code .= "\n"; $code .= "\n"; $code .= "\n"; $code .= "\n"; $code .= "\n"; $code .= "\n"; $code .= "\n"; return $code; } function getCode( $crypt_id, $easy = true, $ssl = false, $pagename = "", $areas = "", $ilevel = 0, $targets = "", $tval = "", $tsale = 0, $tonr = 0, $lpage = 0, $trigger = 0, $customer = 0, $basket = "", $se = 0, $plugins = false, $url = "" ) { $code = ""; return $code; $code = "\n"; $code .= "\n"; $code .= "\n\n"; if ( $plugins ) $code .= getPluginDetection ( $ssl ); $code .= getTargetParam ( $targets, $tval, $tsale, $tonr, $customer, $basket ); $code .= getCampaignParam ( $lpage, $trigger, $se ); $code .= getBaseCode ( $crypt_id, $easy, $ssl, $pagename, $areas, $ilevel, $targets, $tval, $tsale, $tonr, $lpage, $trigger, $customer, $basket, false, $se, $url ); return $code; }