Changeset 14235
- Timestamp:
- 2007-07-09T13:40:53+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/cgi-bin/gliserver.pl
r14218 r14235 3 3 4 4 5 use gsdlCGI;6 5 use strict; 6 7 8 # Set this to 1 to work around IIS 6 craziness 9 my $iis6_mode = 0; 10 11 12 # IIS 6: for some reason, IIS runs this script with the working directory set to the Greenstone 13 # directory rather than the cgi-bin directory, causing lots of stuff to fail 14 if ($iis6_mode) 15 { 16 # Change into cgi-bin directory 17 chdir("cgi-bin"); 18 } 19 20 21 # We use require and an eval here (instead of "use") to catch any errors loading the module (for IIS) 22 eval("require \"gsdlCGI.pm\""); 23 if ($@) 24 { 25 print STDOUT "Content-type:text/plain\n\n"; 26 print STDOUT "ERROR: $@\n"; 27 exit 0; 28 } 7 29 8 30
Note:
See TracChangeset
for help on using the changeset viewer.