Changeset 11114 for trunk/gsdl
- Timestamp:
- 2006-01-26T15:26:04+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/gliserver.pl
r11110 r11114 3 3 4 4 use gsdlCGI; 5 6 # The version of Perl distributed with Greenstone on Windows doesn't have crypt, so use this instead7 use Crypt::UnixCrypt;8 5 9 6 … … 21 18 my $gsdl_cgi = new gsdlCGI("+cmdline"); 22 19 20 # Load the Greenstone modules that we need to use 21 $gsdl_cgi->setup_gsdl(); 22 my $gsdlhome = $ENV{'GSDLHOME'}; 23 $gsdl_cgi->checked_chdir($gsdlhome); 24 require "$gsdlhome/perllib/util.pm"; # This is OK on Windows 25 require "$gsdlhome/perllib/cpan/Crypt/UnixCrypt.pm"; # This is OK on Windows 26 23 27 # Encrypt the password 24 28 if (defined $gsdl_cgi->param("pw")) { … … 27 31 28 32 $gsdl_cgi->parse_cgi_args(); 29 $gsdl_cgi->setup_gsdl();30 31 my $gsdlhome = $ENV{'GSDLHOME'};32 $gsdl_cgi->checked_chdir($gsdlhome);33 require "$gsdlhome/perllib/util.pm"; # This is OK on Windows34 33 35 34 my $cmd = $gsdl_cgi->clean_param("cmd");
Note:
See TracChangeset
for help on using the changeset viewer.