Attributes = & $Attributes; // Controls $articles_show = new clsarticle_show("../component/", "articles_show", $MainPage); $articles_show->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(); $MainPage->articles_show = & $articles_show; $MainPage->menu_footer = & $menu_footer; $MainPage->menu_header = & $menu_header; $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-0BB232E0 $articles_show->Operations(); $menu_footer->Operations(); $menu_header->Operations(); //End Execute Components //Go to destination page @1-123CB082 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_header->Class_Terminate(); unset($menu_header); unset($Tpl); exit; } //End Go to destination page //Show Page @1-90517D45 $articles_show->Show(); $menu_footer->Show(); $menu_header->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-2376FC33 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $articles_show->Class_Terminate(); unset($articles_show); $menu_footer->Class_Terminate(); unset($menu_footer); $menu_header->Class_Terminate(); unset($menu_header); unset($Tpl); //End Unload Page ?>