gnudip.cgi 591 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/perl
  2. #####################################################
  3. # gnudip.cgi
  4. #
  5. # This is the GnuDIP Web Tool.
  6. #
  7. # See COPYING for licensing information.
  8. #
  9. # Derived from GnuDIP 2.1.2 written by:
  10. #
  11. # Mike Machado
  12. #
  13. #####################################################
  14. # for mod_perl compatibility
  15. package gnudip;
  16. # Perl modules
  17. use strict;
  18. # locate ourselves
  19. use vars qw($gnudipdir);
  20. use FindBin;
  21. BEGIN {
  22. $gnudipdir = '';
  23. if ($FindBin::Bin =~ /(.*)\/.+?/) {
  24. $gnudipdir = $1;
  25. }
  26. }
  27. use lib "$gnudipdir/lib";
  28. # GnuDIP CGI subroutine
  29. use gdipcgi;
  30. # run the CGI
  31. gdipcgi();