"; $hiddenVars.= ""; switch($module['accType']){ case "seller": $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; if ($module['testMode']) { $hiddenVars.= ""; } break; case "merchant": $billing_address = array(); if (strlen($orderSum['add_1'])>0) $billing_address[] = $orderSum['add_1']; if (strlen($orderSum['add_2'])>0) $billing_address[] = $orderSum['add_2']; if (strlen($orderSum['town'])>0) $billing_address[] = $orderSum['town']; if (strlen($orderSum['county'])>0) $billing_address[] = $orderSum['county']; $merchant_id = (strlen($module['merchant_id'])>0) ? $module['merchant_id'] : $module['email']; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; $hiddenVars.= ""; if ($module['passTemplate']) { $template_html = nochex_get_template_html(); $hiddenVars.= ""; $hiddenVars.= ""; } if ($module['testMode']) { $hiddenVars.= ""; } break; } return $hiddenVars; } function nochex_get_template_html() { global $module, $cc_session, $config; global $db, $glob, $config, $lang; ob_start(); $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/cart.tpl",'',null,'main',true,$skipPath=TRUE); $body->assign("SEARCHSTR",""); $body->assign("CURRENCY_VER", $currencyVer); $body->assign("VAL_ISO", $charsetIso); $body->assign("VAL_SKIN", $config['skinDir']); $body->assign("PAGE_CONTENT", ""); include("includes/boxes/searchForm.inc.php"); $body->assign("SEARCH_FORM", $box_content); include("includes/boxes/session.inc.php"); $body->assign("SESSION", $box_content); include("includes/boxes/siteDocs.inc.php"); $body->assign("SITE_DOCS", $box_content); include("includes/boxes/cartNavi.inc.php"); $body->assign("CART_NAVI", $box_content); $body->parse("body"); $body->out("body"); $body = ob_get_contents(); ob_end_clean(); $body = str_replace(array("", "
", "", ""), "", $body); $body = array_shift(explode("", $body)); //die("".print_r($GLOBALS, true).""); $body = nochex_insert_absolute_urls($body, array("src", "href")); $body = explode("", $body); $header_html = "