Changeset 50 for trunk/CGI.lpr


Ignore:
Timestamp:
Apr 30, 2011, 10:56:05 PM (13 years ago)
Author:
george
Message:
  • Added: MainModule component of non visual type TDataModule. Now THTTPServer and session systems are components.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CGI.lpr

    r48 r50  
    55uses
    66  UCore, USqlDatabase, SysUtils, Contnrs,
    7   UMainPage, UCustomApplication, UUser, UHTTPSessionMySQL, UHTTPSessionFile,
     7  UMainPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile,
    88  UCommon, UHTTPServer, UHTTPServerTCP, UHTTPServerCGI, UTCPServer, UPool,
    9   UMemoryStreamEx, UMIMEType, UPageList, Interfaces;
    10 
    11 var
    12   Application: TCustomApplication;
     9  UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule;
    1310
    1411begin
    15   Application := TCustomApplication.Create;
    16   with Application do
     12  MainModule := TMainModule.Create(nil);
     13  with MainModule do
    1714  try
    1815    RegisterPage('internet', Internet);
     
    2926    RegisterPage('sit', Network);
    3027    RegisterPage('', About);
    31     HTTPServer := THTTPServerCGI.Create;
    32     HTTPServer.OnRequest := Execute;
    3328    Run;
    3429  finally
Note: See TracChangeset for help on using the changeset viewer.