Changeset 53 for trunk/CGI.lpr


Ignore:
Timestamp:
Jul 20, 2011, 10:50:41 PM (13 years ago)
Author:
george
Message:
  • Upraveno: Projekt jako potomek TWebApp.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CGI.lpr

    r52 r53  
    55uses
    66  UCore, USqlDatabase, SysUtils, Contnrs,
    7   UMainPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile, UPagesModule,
     7  UContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile, UPagesModule,
    88  UCommon, UHTTPServer, UHTTPServerTCP, UHTTPServerCGI, UTCPServer, UPool,
    9   UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule;
     9  UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule, UWebApp,
     10  UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage,
     11  ULinksPage, UPlansPage, UServerInfoPage, UWebCamPage, UUserControlPage,
     12  UNetworkPage, UAboutPage;
    1013
     14var
     15  Application: TWebApp;
    1116begin
    12   MainModule := TMainModule.Create(nil);
    13   PagesModule := TPagesModule.Create(nil);
    14   with MainModule, PagesModule do
     17  Application := TWebApp.Create(nil);
     18  with Application do
    1519  try
    16     RegisterPage('internet', PageInternet);
    17     RegisterPage('hosting', PageHosting);
    18     RegisterPage('historie', PageHistory);
    19     RegisterPage('dokumenty', PageDocuments);
    20     RegisterPage('voip', PageVoIP);
    21     RegisterPage('odkazy', PageLinks);
    22     RegisterPage('kontakt', PageContact);
    23     RegisterPage('serverinfo', PageServerInfo);
    24     RegisterPage('kamery', PageWebCam);
    25     RegisterPage('uzivatel', PageUserControl);
    26     RegisterPage('plany', PagePlans);
    27     RegisterPage('sit', PageNetwork);
    28     RegisterPage('', PageAbout);
     20    Initialize;
     21    RegisterPage(TInternetPage, InternetPage, 'internet');
     22    RegisterPage(THostingPage, HostingPage, 'hosting');
     23    RegisterPage(THistoryPage, HistoryPage, 'historie');
     24    RegisterPage(TDocumentsPage, DocumentsPage, 'dokumenty');
     25    RegisterPage(TVoIPPage, VoIPPage, 'voip');
     26    RegisterPage(TLinksPage, LinksPage, 'odkazy');
     27    RegisterPage(TContactPage, ContactPage, 'kontakt');
     28    RegisterPage(TServerInfoPage, ServerInfoPage, 'serverinfo');
     29    RegisterPage(TWebCamPage, WebCamPage, 'kamery');
     30    RegisterPage(TUserControlPage, UserControlPage, 'uzivatel');
     31    RegisterPage(TPlansPage, PlansPage, 'plany');
     32    RegisterPage(TNetworkPage, NetworkPage, 'sit');
     33    RegisterPage(TAboutPage, AboutPage, '');
    2934    Run;
    3035  finally
    31     MainModule.Free;
    32     PagesModule.Free;
     36    Free;
    3337  end;
    3438end.
Note: See TracChangeset for help on using the changeset viewer.