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 # ####################################################################################################################################### $smarty = new DC_Smarty(); $contentparms = array(); if (! isset($_REQUEST["module"])) $_REQUEST["module"] = "homepage"; 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"]; $content = $module->getContent($contentparms); break; case "globalcontent": $module = new moduleContent(); $contentparms["content_id"] = $_REQUEST["content_id"]; $content = $module->getGlobalContent($contentparms); break; case "homeschoolcategory": $module = new moduleHomeschool(); $content = $module->getCategoryListPage($contentparms); break; case "homepage": default: # $TITLE not set, so it comes up as default $module = new moduleHomePage(); $content = $module->getContent($contentparms); break; } ####################################################################################################################################### ####################################################################################################################################### function insert_getMainContent($parms) { global $content; return $content; } ####################################################################################################################################### ####################################################################################################################################### $smarty->DC_Print(); ####################################################################################################################################### # 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"'); # } ?>