Line | |
---|
1 | unit ServerInfoPage;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, FileUtil, WebPage, WebApp, HTTPServer, ModuleUser;
|
---|
7 |
|
---|
8 | type
|
---|
9 |
|
---|
10 | { TServerInfoPage }
|
---|
11 |
|
---|
12 | TServerInfoPage = class(TWebPage)
|
---|
13 | procedure DataModuleProduce(HandlerData: THTTPHandlerData);
|
---|
14 | end;
|
---|
15 |
|
---|
16 | var
|
---|
17 | ServerInfoPage: TServerInfoPage;
|
---|
18 |
|
---|
19 |
|
---|
20 | implementation
|
---|
21 |
|
---|
22 | {$R *.lfm}
|
---|
23 |
|
---|
24 | uses
|
---|
25 | Core, WebSession;
|
---|
26 |
|
---|
27 | { TServerInfoPage }
|
---|
28 |
|
---|
29 | procedure TServerInfoPage.DataModuleProduce(HandlerData: THTTPHandlerData);
|
---|
30 | var
|
---|
31 | ModuleUser: TModuleUser;
|
---|
32 | begin
|
---|
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;
|
---|
40 | end;
|
---|
41 |
|
---|
42 | end.
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.