Changeset 51 for trunk/Modules/UMainModule.pas
- Timestamp:
- Apr 30, 2011, 11:44:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/UMainModule.pas
r50 r51 32 32 HTTPServer: THTTPServerCGI; 33 33 HTTPSessionStorageMySQL1: THTTPSessionStorageMySQL; 34 Database: TSqlDatabase; 34 35 procedure HTTPServerRequest(HandlerData: THTTPHandlerData); 35 36 private … … 51 52 HtmlDocument: THtmlDocument; 52 53 Pages: TRegistredPageList; 53 Database: TSqlDatabase;54 54 PageName: string; 55 55 ModuleName: string; … … 164 164 begin 165 165 inherited; 166 Database := TSqlDatabase.Create;167 166 Pages := TRegistredPageList.Create; 168 167 HtmlDocument := THtmlDocument.Create; … … 176 175 begin 177 176 HtmlDocument.Free; 178 Database.Free;179 177 Pages.Free; 180 178 User.Free; … … 291 289 MainModule.HTTPServer.ShowExceptions := Config.ShowException; 292 290 //Database.Query('SELECT * FROM ssss'); 293 THTTPSessionStorageMySQL(MainModule.HTTPServer.SessionStorage).SqlDatabase := Database;294 291 MainModule.HTTPServer.Run; 295 292 end;
Note:
See TracChangeset
for help on using the changeset viewer.