Changeset 69 for trunk/Modules/UMainModule.pas
- Timestamp:
- Dec 30, 2011, 6:00:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/UMainModule.pas
r68 r69 25 25 procedure Show(Content: string); 26 26 procedure TopMenu; 27 procedure DoBeforePageProduce(HandlerData: THTTPHandlerData); 27 28 public 28 29 TimeStart: TDateTime; … … 68 69 TitleTag: THtmlString; 69 70 begin 70 User.HandlerData := HandlerData;71 UserOnline.HandlerData := HandlerData;72 UserOnline.Update;73 71 with HandlerData do begin 74 72 HtmlDocument.ContentLanguage := 'cs'; … … 235 233 end; 236 234 235 procedure TMainModule.DoBeforePageProduce(HandlerData: THTTPHandlerData); 236 begin 237 User.HandlerData := HandlerData; 238 UserOnline.HandlerData := HandlerData; 239 UserOnline.Update; 240 User.Id := UserOnline.User; 241 User.Load; 242 end; 243 237 244 procedure TMainModule.LoadFromRegistry; 238 245 const … … 291 298 InitDatabase; 292 299 //Database.Query('SELECT * FROM ssss'); 300 Application.OnBeforePageProduce := DoBeforePageProduce; 293 301 end; 294 302
Note:
See TracChangeset
for help on using the changeset viewer.