Attributes = & $Attributes; // Controls $articles_show = new clsarticle_show("home/component/", "articles_show", $MainPage); $articles_show->Initialize(); $menu_footer = new clsmenu_footer("home/component/", "menu_footer", $MainPage); $menu_footer->Initialize(); $menu_nav = new clsmenu_nav("home/component/", "menu_nav", $MainPage); $menu_nav->Initialize(); $analytics = new clsanalytics("", "analytics", $MainPage); $analytics->Initialize(); $MainPage->articles_show = & $articles_show; $MainPage->menu_footer = & $menu_footer; $MainPage->menu_nav = & $menu_nav; $MainPage->analytics = & $analytics; $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-E710DB26 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", ""); $Attributes->Show(); //End Initialize HTML Template //Execute Components @1-759F4C5E $articles_show->Operations(); $menu_footer->Operations(); $menu_nav->Operations(); $analytics->Operations(); //End Execute Components //Go to destination page @1-05C5BA04 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); $articles_show->Class_Terminate(); unset($articles_show); $menu_footer->Class_Terminate(); unset($menu_footer); $menu_nav->Class_Terminate(); unset($menu_nav); $analytics->Class_Terminate(); unset($analytics); unset($Tpl); exit; } //End Go to destination page //Show Page @1-DEAFC9C6 $articles_show->Show(); $menu_footer->Show(); $menu_nav->Show(); $analytics->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-5FA53FD4 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $articles_show->Class_Terminate(); unset($articles_show); $menu_footer->Class_Terminate(); unset($menu_footer); $menu_nav->Class_Terminate(); unset($menu_nav); $analytics->Class_Terminate(); unset($analytics); unset($Tpl); //End Unload Page ?>