PageRenderTime 10ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/components/fpweb/demo/fptemplate/sessions/urlsessions-login/apache/mod_urlsession.lpr

http://github.com/graemeg/lazarus
Unknown | 38 lines | 27 code | 11 blank | 0 comment | 0 complexity | 29ab49b0fbb2e5d95d5537cf1dab2f82 MD5 | raw file
 1Library mod_urlsession;
 2
 3{$mode objfpc}{$H+}
 4
 5Uses
 6{$ifdef unix}
 7  cthreads,
 8{$endif}
 9  httpd,fpApache, webmodule;
10
11Const
12
13{ The following constant is used to export the module record. It must 
14  always match the name in the LoadModule statement in the apache
15  configuration file(s). It is case sensitive !}
16  ModuleName='mod_urlsession';
17
18{ The following constant is used to determine whether the module will
19  handle a request. It should match the name in the SetHandler statement
20  in the apache configuration file(s). It is not case sensitive. }
21
22  HandlerName=ModuleName;
23
24Var
25  DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix}
26
27Exports defaultmodule name ModuleName;
28
29{$IFDEF WINDOWS}{$R mod_urlsession.rc}{$ENDIF}
30
31begin
32  Application.Title:='mod_urlsession';
33  Application.ModuleName:=ModuleName;
34  Application.HandlerName:=HandlerName;
35  Application.SetModuleRecord(DefaultModule);
36  Application.Initialize;
37end.
38