Changeset 91 for trunk/UCore.pas
- Timestamp:
- Sep 7, 2012, 8:36:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r89 r91 51 51 procedure RegisterModules; 52 52 public 53 CommonDatabase: TSqlDatabase; 53 54 ModuleManager: TModuleManager; 54 55 Load: string; … … 110 111 SessionStorage.Free; 111 112 Database.Free; 112 inherited Destroy;113 inherited; 113 114 end; 114 115 … … 173 174 ModuleManager := TModuleManager.Create(nil); 174 175 Pages := TPageList.Create; 175 176 RegisterModules; 177 ModuleManager.InstallMarked; 176 CommonDatabase := TSqlDatabase.Create(nil); 178 177 179 178 LoadFromRegistry; … … 188 187 RegisterPage(TServerInfoPage, ServerInfoPage, 'serverinfo'); 189 188 RegisterPage(TWebCamPage, WebCamPage, 'kamery'); 190 //RegisterPage(TUserControlPage, UserControlPage, 'uzivatel');191 189 RegisterPage(TPlansPage, PlansPage, 'plany'); 192 190 RegisterPage(TNetworkPage, NetworkPage, 'sit'); 193 191 RegisterPage(TProjectsPage, ProjectsPage, 'projekty'); 194 192 RegisterPage(TAboutPage, AboutPage, ''); 195 //RegisterPage(TUserControlPage, UserControlPage, '');196 193 end; 197 194 with WebApp1 do begin … … 207 204 begin 208 205 //SaveToRegistry; 209 Pages.Free; 210 inherited Destroy; 206 FreeAndNil(CommonDatabase); 207 FreeAndNil(ModuleManager); 208 FreeAndNil(Pages); 209 inherited; 211 210 end; 212 211 … … 419 418 procedure TCore.Run; 420 419 begin 420 CommonDatabase.UserName := DatabaseUserName; 421 CommonDatabase.HostName := DatabaseHostname; 422 CommonDatabase.Database := DatabaseSchema; 423 CommonDatabase.Password := DatabasePassword; 424 CommonDatabase.Connect; 425 426 RegisterModules; 427 ModuleManager.StartInstalled; 428 421 429 WebApp1.HTTPServer.DocumentRoot := ExtractFileDir(ParamStrUTF8(0)); 422 430 WebApp1.Run;
Note:
See TracChangeset
for help on using the changeset viewer.