assign("SEARCHSTR",treatGet($_GET['searchStr'])); } else { $body->assign("SEARCHSTR",""); } $body->assign("CURRENCY_VER",$currencyVer); $body->assign("VAL_ISO",$charsetIso); $body->assign("VAL_SKIN",$config['skinDir']); // START META DATA $body->assign("META_TITLE",htmlspecialchars(str_replace("'","'",$config['siteTitle'])).c()); $body->assign("META_DESC",$config['metaDescription']); $body->assign("META_KEYWORDS",$config['metaKeyWords']); // START MAIN CONTENT switch (treatGet($_GET['act'])) { case "step1": include("includes/content/step1.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "cart": case "step2": case "step3": case "step4": include("includes/content/cart.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "step5": include("includes/content/gateway.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "reg": include("includes/content/reg.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "viewOrders": include("includes/content/viewOrders.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "viewOrder": include("includes/content/viewOrder.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "noShip": include("includes/content/noShip.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "overWeight": include("includes/content/overWeight.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; case "confirmed": include("includes/content/confirmed.inc.php"); $body->assign("PAGE_CONTENT",$page_content); break; default: header("Location: index.php"); exit; break; } // END MAIN CONTENT // START CONTENT BOXES 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); // END CONTENT BOXES // parse and spit out final document $body->parse("body"); $body->out("body"); echo $testoutput; ?>