Changeset 54 for trunk/CGI.lpr


Ignore:
Timestamp:
Jul 20, 2011, 11:52:31 PM (13 years ago)
Author:
george
Message:
  • Upraveno: Přesunuty další části z UMainModule do třídy UWebApp valíku CoolWeb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CGI.lpr

    r53 r54  
    55uses
    66  UCore, USqlDatabase, SysUtils, Contnrs,
    7   UContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile, UPagesModule,
     7  UContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile,
    88  UCommon, UHTTPServer, UHTTPServerTCP, UHTTPServerCGI, UTCPServer, UPool,
    99  UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule, UWebApp,
     
    1212  UNetworkPage, UAboutPage;
    1313
    14 var
    15   Application: TWebApp;
    1614begin
    17   Application := TWebApp.Create(nil);
    1815  with Application do
    1916  try
    2017    Initialize;
     18    MainModule := TMainModule.Create(nil);
     19    MainModule.Run;
    2120    RegisterPage(TInternetPage, InternetPage, 'internet');
    2221    RegisterPage(THostingPage, HostingPage, 'hosting');
     
    3433    Run;
    3534  finally
    36     Free;
     35    MainModule.Free;
    3736  end;
    3837end.
Note: See TracChangeset for help on using the changeset viewer.