Changeset 14325 for greenstone3/trunk/web/WEB-INF/cgi/gliserver4gs3.pl
- Timestamp:
- 2007-08-07T09:33:55+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/WEB-INF/cgi/gliserver4gs3.pl
r14314 r14325 1 #!/ perl -w1 #!/usr/bin/perl -w 2 2 # Need to specify the full path of Perl above 3 #print STDOUT "Content-type:text/plain\n\n"; 3 4 #print "Content-type: text/html\n\n"; 4 5 5 6 &main; … … 8 9 use strict; 9 10 11 #my $authentication_enabled = 0; 10 12 my $debugging_enabled = 1; 11 13 … … 146 148 my $java_gsdl3_classpath = &util::filename_cat($gsdl3srchome, "web", "WEB-INF", "lib", "gsdl3.jar"); 147 149 my $java_derby_classpath = &util::filename_cat($gsdl3srchome, "web", "WEB-INF", "lib", "derby.jar"); 148 my $java_classpath="classes/:" . $java_gsdl3_classpath . ":" . $java_derby_classpath; 149 150 my $java_classpath; 151 my $gsdlos = $ENV{'GSDLOS'}; 152 if ($gsdlos !~ /windows/){ 153 $java_classpath = $java_gsdl3_classpath . ":" . $java_derby_classpath; 154 }else{ 155 $java_classpath = $java_gsdl3_classpath . ";" . $java_derby_classpath; 156 } 150 157 my $java_args = &util::filename_cat($gsdl3srchome, "web", "sites", $site, "etc", "usersDB"); 151 158 my $java_command="$java -classpath \"$java_classpath\" org.greenstone.gsdl3.util.DerbyWrapper \"$java_args\" 2>&1"; … … 272 279 my $java_status = $?; 273 280 print "<pre>"; 281 print "===============" ; 274 282 print "$java_output"; 275 283 print "</pre>"; … … 356 364 357 365 # Ensure the user is allowed to edit this collection 358 #&authenticate_user($gsdl_cgi, $username, $collection, $site);366 &authenticate_user($gsdl_cgi, $username, $collection, $site); 359 367 360 368 my $gsdl3srchome = $ENV{'GSDL3SRCHOME'}; … … 920 928 921 929 # Ensure the user is allowed to edit this collection 922 &authenticate_user($gsdl_cgi, $username, $collection, $site);930 #&authenticate_user($gsdl_cgi, $username, $collection, $site); 923 931 924 932 my $gsdl3srchome = $ENV{'GSDL3SRCHOME'};
Note:
See TracChangeset
for help on using the changeset viewer.