Initialize(); $MainPage->events_inc = & $events_inc; $CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage); $Charset = $Charset ? $Charset : "iso-8859-1"; if ($Charset) header("Content-Type: text/html; charset=" . $Charset); //End Initialize Objects //Initialize HTML Template @1-42189F85 $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); //End Initialize HTML Template //Execute Components @1-46B6AC9A $events_inc->Operations(); //End Execute Components //Go to destination page @1-FA19FDAC if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); $events_inc->Class_Terminate(); unset($events_inc); unset($Tpl); exit; } //End Go to destination page //Show Page @1-03F63224 $events_inc->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); $main_block = $Tpl->GetVar($BlockToParse); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage); if ($CCSEventResult) echo $main_block; //End Show Page //Unload Page @1-4A8A255C $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $events_inc->Class_Terminate(); unset($events_inc); unset($Tpl); //End Unload Page ?>