PageRenderTime 20ms CodeModel.GetById 18ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/components/fpweb/demo/helloworld/apache/mod_helloworld.lpr

http://github.com/graemeg/lazarus
Unknown | 38 lines | 27 code | 11 blank | 0 comment | 0 complexity | 35468e29c171b3ffaba5e278398f01cb MD5 | raw file
 1Library mod_helloworld;
 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_helloworld';
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_helloworld.rc}{$ENDIF}
30
31begin
32  Application.Title:='mod_helloworld';
33  Application.ModuleName:=ModuleName;
34  Application.HandlerName:=HandlerName;
35  Application.SetModuleRecord(DefaultModule);
36  Application.Initialize;
37end.
38