source: trunk/Pages/ServerInfoPage.pas

Last change on this file was 151, checked in by chronos, 9 months ago
File size: 764 bytes
Line 
1unit ServerInfoPage;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, WebPage, WebApp, HTTPServer, ModuleUser;
7
8type
9
10 { TServerInfoPage }
11
12 TServerInfoPage = class(TWebPage)
13 procedure DataModuleProduce(HandlerData: THTTPHandlerData);
14 end;
15
16var
17 ServerInfoPage: TServerInfoPage;
18
19
20implementation
21
22{$R *.lfm}
23
24uses
25 Core, WebSession;
26
27{ TServerInfoPage }
28
29procedure TServerInfoPage.DataModuleProduce(HandlerData: THTTPHandlerData);
30var
31 ModuleUser: TModuleUser;
32begin
33 with TWebSession(HandlerData) do begin
34 ModuleUser := TModuleUser(ModuleManager.FindModuleByName('User'));
35 ModuleUser.LoadUserInfo;
36 Session.Values['Test'] := 'Tst';
37 TCore(MainModule).WebApp1.HTTPServer.ServerInfo(HandlerData);
38 GeneratePage(Self);
39 end;
40end;
41
42end.
43
Note: See TracBrowser for help on using the repository browser.