//Include Common Files @1-82042FB9 define("RelativePath", "."); define("PathToCurrentPage", "/"); define("FileName", "index.php"); include_once(RelativePath . "/Common.php"); include_once(RelativePath . "/Template.php"); include_once(RelativePath . "/Sorter.php"); include_once(RelativePath . "/Navigator.php"); //End Include Common Files //Initialize Page @1-7AAAEEFF // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = ""; // Events; $CCSEvents = ""; $CCSEventResult = ""; $FileName = FileName; $Redirect = ""; $TemplateFileName = "index.html"; $BlockToParse = "main"; $TemplateEncoding = "CP1252"; $ContentType = "text/html"; $PathToRoot = "./"; //End Initialize Page //Include events file @1-B7D86394 include_once("./index_events.php"); //End Include events file //Before Initialize @1-E870CEBC $CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage); //End Before Initialize //Initialize Objects @1-DFB0958F $Attributes = new clsAttributes("page:"); $MainPage->Attributes = & $Attributes; // Controls $cont = new clsControl(ccsLabel, "cont", "cont", ccsText, "", CCGetRequestParam("cont", ccsGet, NULL), $MainPage); $cont->HTML = true; $MainPage->cont = & $cont; 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-0C2E73E8 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252", "replace"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", ""); $Attributes->Show(); //End Initialize HTML Template //Go to destination page @1-FBA93089 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); unset($Tpl); exit; } //End Go to destination page //Show Page @1-946051E4 $cont->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-74A7C1E7 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); unset($Tpl); //End Unload Page ?>