Attributes = & $Attributes; // Controls $analytics = new clsanalytics("", "analytics", $MainPage); $analytics->Initialize(); $metatag = new clsmetatag("home/component/", "metatag", $MainPage); $metatag->Initialize(); $MainPage->analytics = & $analytics; $MainPage->metatag = & $metatag; BindEvents(); $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-F4748016 $analytics->Operations(); $metatag->Operations(); //End Execute Components //Go to destination page @1-7B5EA1DC if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); $analytics->Class_Terminate(); unset($analytics); $metatag->Class_Terminate(); unset($metatag); unset($Tpl); exit; } //End Go to destination page //Show Page @1-A642968E $analytics->Show(); $metatag->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-D6DEEFFE $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $analytics->Class_Terminate(); unset($analytics); $metatag->Class_Terminate(); unset($metatag); unset($Tpl); //End Unload Page ?>