Changeset 89 for trunk/UCore.pas
- Timestamp:
- Sep 6, 2012, 8:29:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r83 r89 8 8 Classes, SysUtils, FileUtil, LResources, UHTTPServerCGI, UHTTPSessionMySQL, 9 9 UHTTPServer, USqlDatabase, INIFiles, DateUtils, UWebPage, UWebApp, 10 UXmlClasses, UHtmlClasses, UUtils, UHTTPServerTCP, 11 UHTTPSessionFile, UUser, SpecializedList, Registry; 10 UXmlClasses, UHtmlClasses, UUtils, UApplicationInfo, UHTTPServerTCP, 11 UModuleUser, UHTTPSessionFile, UUser, SpecializedList, Registry, 12 UModularSystem; 12 13 13 14 const … … 43 44 44 45 TCore = class(TDataModule) 46 ApplicationInfo1: TApplicationInfo; 45 47 WebApp1: TWebApp; 46 48 procedure WebApp1PageProduce(HandlerData: THTTPHandlerData); 47 49 private 48 50 procedure Show(Content: string); 51 procedure RegisterModules; 49 52 public 53 ModuleManager: TModuleManager; 50 54 Load: string; 51 55 Unload: string; … … 80 84 81 85 uses 82 U ApplicationInfo, UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage,86 UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage, 83 87 ULinksPage, UPlansPage, UServerInfoPage, UWebCamPage, UUserControlPage, 84 88 UNetworkPage, UAboutPage, UContactPage, UProjectsPage; … … 167 171 begin 168 172 inherited; 173 ModuleManager := TModuleManager.Create(nil); 169 174 Pages := TPageList.Create; 175 176 RegisterModules; 177 ModuleManager.InstallMarked; 178 170 179 LoadFromRegistry; 171 180 with Pages do begin … … 269 278 TopMenu, PageMenu, Content, Footer); 270 279 Result := Document.GetOutput; *) 280 end; 281 282 procedure TCore.RegisterModules; 283 begin 284 with ModuleManager do begin 285 RegisterModule(TModuleUser.Create(nil), True); 286 end; 271 287 end; 272 288
Note:
See TracChangeset
for help on using the changeset viewer.