// - Instantiate an error manager // - Define global variables relative to the current context (SelfUrl $Context = new Context(); // DEFINE THE LANGUAGE DICTIONARY include agAPPLICATION_PATH . "appg/language.php"; // INSTANTIATE THE PAGE OBJECT // The page object handles collecting all page controls // and writing them when it's events are fired. $Page = new Page($Context); // FIRE INITIALIZATION EVENT $Page->FireEvent("Page_Init"); // DEFINE THE MASTER PAGE CONTROLS $Head = $Context->ObjectFactory->NewContextObject($Context, "Head"); $Body = $Context->ObjectFactory->NewContextObject($Context, "ExternalBody"); $Foot = $Context->ObjectFactory->NewContextObject($Context, "ExternalFoot"); $PageEnd = $Context->ObjectFactory->NewContextObject($Context, "PageEnd"); // INCLUDE EXTENSIONS include agAPPLICATION_PATH . "appg/extensions.php"; // BUILD THE PAGE HEAD // Every page will require some basic definitions for the header. $Head->AddScript("./js/global.js"); $Head->AddScript("./js/vanilla.js"); $Head->AddScript("/egroupware/jscripts/tiny_mce/tiny_mce.js"); $Head->AddStyleSheet($Context->StyleUrl . "signin.css", "screen"); $Head->AddStyleSheet($Context->StyleUrl . "signin.handheld.css", "handheld"); // Add the end of the page $Page->AddControl("Head_Render", $Head); $Page->AddControl("Page_Unload", $PageEnd); // Include the control file for this page $Page->Import($Page->ControlFile);