diff options
Diffstat (limited to 'packages/fcl-web/examples/fptemplate/listrecords/apache/listrecords.lpr')
-rw-r--r-- | packages/fcl-web/examples/fptemplate/listrecords/apache/listrecords.lpr | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/fcl-web/examples/fptemplate/listrecords/apache/listrecords.lpr b/packages/fcl-web/examples/fptemplate/listrecords/apache/listrecords.lpr new file mode 100644 index 0000000000..76bc2ab489 --- /dev/null +++ b/packages/fcl-web/examples/fptemplate/listrecords/apache/listrecords.lpr @@ -0,0 +1,37 @@ +Library mod_listrecords; + +{$mode objfpc}{$H+} + +Uses +{$ifdef unix} + cthreads, +{$endif} + httpd,fpApache, webmodule; + +Const + +{ The following constant is used to export the module record. It must + always match the name in the LoadModule statement in the apache + configuration file(s). It is case sensitive !} + ModuleName='mod_listrecords'; + +{ The following constant is used to determine whether the module will + handle a request. It should match the name in the SetHandler statement + in the apache configuration file(s). It is not case sensitive. } + + HandlerName=ModuleName; + +Var + DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix} + +Exports defaultmodule name ModuleName; + +{$R *.res} + +begin + Application.ModuleName:=ModuleName; + Application.HandlerName:=HandlerName; + Application.SetModuleRecord(DefaultModule); + Application.Initialize; +end. + |