Changeset 76 for trunk/ZdechovNET.lpr
- Timestamp:
- Apr 29, 2012, 9:44:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ZdechovNET.lpr
r71 r76 7 7 cthreads, 8 8 {$ENDIF} 9 UCore, USqlDatabase, SysUtils, Contnrs, 10 U ContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile,9 UCore, USqlDatabase, SysUtils, Contnrs, Forms, 10 UUser, UHTTPSessionMySQL, UHTTPSessionFile, 11 11 UCommon, UHTTPServer, UHTTPServerTCP, UHTTPServerCGI, UTCPServer, UPool, 12 UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule, UWebApp, 13 UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage, 14 ULinksPage, UPlansPage, UServerInfoPage, UWebCamPage, UUserControlPage, 15 UNetworkPage, UAboutPage; 12 UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule, UWebApp; 16 13 17 14 begin 18 with Application do 19 try 15 with Application do begin 20 16 Initialize; 21 MainModule := TMainModule.Create( nil);17 MainModule := TMainModule.Create(Application); 22 18 MainModule.Run; 23 RegisterPage(TInternetPage, InternetPage, 'internet');24 RegisterPage(THostingPage, HostingPage, 'hosting');25 RegisterPage(THistoryPage, HistoryPage, 'historie');26 RegisterPage(TDocumentsPage, DocumentsPage, 'dokumenty');27 RegisterPage(TVoIPPage, VoIPPage, 'voip');28 RegisterPage(TLinksPage, LinksPage, 'odkazy');29 RegisterPage(TContactPage, ContactPage, 'kontakt');30 RegisterPage(TServerInfoPage, ServerInfoPage, 'serverinfo');31 RegisterPage(TWebCamPage, WebCamPage, 'kamery');32 //RegisterPage(TUserControlPage, UserControlPage, 'uzivatel');33 RegisterPage(TPlansPage, PlansPage, 'plany');34 RegisterPage(TNetworkPage, NetworkPage, 'sit');35 RegisterPage(TAboutPage, AboutPage, '');36 //RegisterPage(TUserControlPage, UserControlPage, '');37 ServerType := stCGI;38 if ServerType = stTCP then begin39 THTTPServerTCP(HTTPServer).Socket.Address := MainModule.NetworkAddress;40 THTTPServerTCP(HTTPServer).Socket.Port := MainModule.NetworkPort;41 THTTPServerTCP(HTTPServer).MaxConnection := MainModule.MaxConnections;42 end;43 19 Run; 44 finally45 MainModule.Free;46 20 end; 47 21 end.
Note:
See TracChangeset
for help on using the changeset viewer.