Changeset 89 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 6, 2012, 8:29:27 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Balíček ModularSystem namísto vlastní implementace.
  • Upraveno: Aktualizace balíčku Common.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r83 r89  
    88  Classes, SysUtils, FileUtil, LResources, UHTTPServerCGI, UHTTPSessionMySQL,
    99  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;
    1213
    1314const
     
    4344
    4445  TCore = class(TDataModule)
     46    ApplicationInfo1: TApplicationInfo;
    4547    WebApp1: TWebApp;
    4648    procedure WebApp1PageProduce(HandlerData: THTTPHandlerData);
    4749  private
    4850    procedure Show(Content: string);
     51    procedure RegisterModules;
    4952  public
     53    ModuleManager: TModuleManager;
    5054    Load: string;
    5155    Unload: string;
     
    8084
    8185uses
    82   UApplicationInfo, UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage,
     86  UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage,
    8387  ULinksPage, UPlansPage, UServerInfoPage, UWebCamPage, UUserControlPage,
    8488  UNetworkPage, UAboutPage, UContactPage, UProjectsPage;
     
    167171begin
    168172  inherited;
     173  ModuleManager := TModuleManager.Create(nil);
    169174  Pages := TPageList.Create;
     175
     176  RegisterModules;
     177  ModuleManager.InstallMarked;
     178
    170179  LoadFromRegistry;
    171180  with Pages do begin
     
    269278  TopMenu, PageMenu, Content, Footer);
    270279  Result := Document.GetOutput;        *)
     280end;
     281
     282procedure TCore.RegisterModules;
     283begin
     284  with ModuleManager do begin
     285    RegisterModule(TModuleUser.Create(nil), True);
     286  end;
    271287end;
    272288
Note: See TracChangeset for help on using the changeset viewer.