300 // set expiry date 5 minutes from now for all pages # ); //+ default is 1 hour # $myconteg = new Conteg( $param ); # } ####################################################################################################################################### # ACTIVATE SMARTY & GENERATE CONTENT - MAIN CONTENT AREA # ####################################################################################################################################### # # Some key variables are setup in these and used in the templates later. # $TITLE ... Page Title # $METATAGS_DESCRIPTION ... The Description Metatags for the page. # # $contentparms = array(); if (! isset($_REQUEST["module"])) $_REQUEST["module"] = "homepage"; $is_homepage = "N"; switch ($_REQUEST["module"]) { case "advancedsearch": $TITLE = "Advanced Christian Product Search"; $module = new moduleAdvancedSearch(); $content = $module->getContent($contentparms); break; case "content": $module = new moduleContent(); $contentparms["content_id"] = $_REQUEST["content_id"] + 0; $content = $module->getContent($contentparms); break; case "trackmyorders": $module = new moduleTrackMyOrders(); $content = $module->getContent($contentparms); break; case "gc": case "GC": case "globalcontent": $module = new moduleContent(); $contentparms["content_id"] = $_REQUEST["content_id"] + 0; $content = $module->getGlobalContent($contentparms); break; case "homeschoolcategory": $module = new moduleHomeschool(); $content = $module->getCategoryListPage($contentparms); break; case "search": case "productsearch": $module = new moduleProductSearch(); $content = $module->getContent($contentparms); break; case "product": case "productview": case "viewitem": case "item": $module = new moduleProductView(); $content = $module->getContent($contentparms); break; # case "generalcategory": # $module = new moduleCategory(); # $content = $module->getCategoryListPage($contentparms); # break; # case "subcategory": # $module = new moduleSubCategory(); # $content = $module->getCategoryListPage($contentparms); # break; case "homepage": default: # $TITLE not set, so it comes up as default $is_homepage = "Y"; $module = new moduleHomePage(); $content = $module->getContent($contentparms); break; } ####################################################################################################################################### ####################################################################################################################################### ## This function is called to generate the content for the page. function insert_getMainContent($parms) { global $content; return $content; } ####################################################################################################################################### ####################################################################################################################################### $smarty = new DC_Smarty(); ## Initiate Template Processing Setup $smarty->DC_Print(); ## Output Template... ####################################################################################################################################### # CONTEG # # Close off conteg and make sure it works! ####################################################################################################################################### # if (isset($globals["conteg_mode"]) && $globals["conteg_mode"] == "on") { # $myconteg->show(); # header('P3P: policyref="/w3c/p3p.xml", CP="ALL DSP COR CURa CONi OUR STP"'); # } ?>