Changeset 11114 for trunk/gsdl


Ignore:
Timestamp:
2006-01-26T15:26:04+13:00 (18 years ago)
Author:
mdewsnip
Message:

Added the UnixCrypt.pm file into perllib/cpan/Crypt, and changed gliserver.pl to look for it there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/gliserver.pl

    r11110 r11114  
    33
    44use gsdlCGI;
    5 
    6 # The version of Perl distributed with Greenstone on Windows doesn't have crypt, so use this instead
    7 use Crypt::UnixCrypt;
    85
    96
     
    2118    my $gsdl_cgi = new gsdlCGI("+cmdline");
    2219
     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
    2327    # Encrypt the password
    2428    if (defined $gsdl_cgi->param("pw")) {
     
    2731
    2832    $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 Windows
    3433
    3534    my $cmd = $gsdl_cgi->clean_param("cmd");
Note: See TracChangeset for help on using the changeset viewer.