echo.lpr 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Library echo;
  2. {$mode objfpc}{$H+}
  3. { $define use_apache22}
  4. Uses
  5. {$ifdef unix}
  6. cthreads, cwstring,
  7. {$endif}
  8. {$ifdef use_apache22}
  9. httpd,fpApache,
  10. {$else}
  11. httpd24,fpApache24,
  12. {$endif}
  13. wmecho;
  14. Const
  15. { The following constant is used to export the module record. It must
  16. always match the name in the LoadModule statement in the apache
  17. configuration file(s). It is case sensitive !}
  18. ModuleName='mod_fpcecho';
  19. { The following constant is used to determine whether the module will
  20. handle a request. It should match the name in the SetHandler statement
  21. in the apache configuration file(s). It is not case sensitive. }
  22. HandlerName=ModuleName;
  23. Var
  24. DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix}
  25. Exports defaultmodule name ModuleName;
  26. {$R *.res}
  27. begin
  28. Application.ModuleName:=ModuleName;
  29. Application.HandlerName:=HandlerName;
  30. Application.SetModuleRecord(DefaultModule);
  31. Application.Initialize;
  32. end.