Attributes = & $Attributes; // Controls $showPage = new clsshowPage("../component/", "showPage", $MainPage); $showPage->Initialize(); $menu_footer = new clsmenu_footer("../component/", "menu_footer", $MainPage); $menu_footer->Initialize(); $menu_header = new clsmenu_header("../component/", "menu_header", $MainPage); $menu_header->Initialize(); $menu_nav = new clsmenu_nav("../component/", "menu_nav", $MainPage); $menu_nav->Initialize(); $MainPage->showPage = & $showPage; $MainPage->menu_footer = & $menu_footer; $MainPage->menu_header = & $menu_header; $MainPage->menu_nav = & $menu_nav; $CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage); if ($Charset) { header("Content-Type: " . $ContentType . "; charset=" . $Charset); } else { header("Content-Type: " . $ContentType); } //End Initialize Objects //Initialize HTML Template @1-152A1930 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "ISO-8859-1"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", "../"); $Attributes->Show(); //End Initialize HTML Template //Execute Components @1-93820277 $showPage->Operations(); $menu_footer->Operations(); $menu_header->Operations(); $menu_nav->Operations(); //End Execute Components //Go to destination page @1-1569F6B8 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); $showPage->Class_Terminate(); unset($showPage); $menu_footer->Class_Terminate(); unset($menu_footer); $menu_header->Class_Terminate(); unset($menu_header); $menu_nav->Class_Terminate(); unset($menu_nav); unset($Tpl); exit; } //End Go to destination page //Show Page @1-9C52D1F8 $showPage->Show(); $menu_footer->Show(); $menu_header->Show(); $menu_nav->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage); if ($CCSEventResult) echo $main_block; //End Show Page //Unload Page @1-498F5ED0 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $showPage->Class_Terminate(); unset($showPage); $menu_footer->Class_Terminate(); unset($menu_footer); $menu_header->Class_Terminate(); unset($menu_header); $menu_nav->Class_Terminate(); unset($menu_nav); unset($Tpl); //End Unload Page ?>