#!/usr/bin/perl5 # #------------------------------------------------------------------------------- # DISCUS COPYRIGHT NOTICE # # Discus is copyright (c) 2002 by DiscusWare, LLC, all rights reserved. # The use of Discus is governed by the Discus License Agreement which is # available from the Discus WWW site at: # http://www.discusware.com/discus/license # # Pursuant to the Discus License Agreement, this copyright notice may not be # removed or altered in any way. #------------------------------------------------------------------------------- use strict; use vars qw($GLOBAL_OPTIONS $PARAMS $DCONF); #------------------------------------------------------------------------------- $| = 1; print "Content-type: text/html\n\n"; print "
\n";
print "Your Perl Version is:", " " x (50 - length("Your Perl Version is:"));
print "$]\n";
#-------------------------------------------------------------------------------
print "Getting CGI extension", " " x (50 - length("Getting CGI extension"));
my $e = get_cgi_extension($0);
if ($e ne "") {
print "PASSED ($e)\n";
} else {
print "FAILED\n";
print "Script Execution Error: config.*** location error [1]\n";
print "\n";
exit(0);
}
#-------------------------------------------------------------------------------
print "Checking existence of config.$e", " " x (50 - length("Checking existence of config.$e"));
if (-e "$DCONF->{script_dir}/config.$e") {
print "PASSED (1)\n";
} elsif (-e "./config.$e") {
print "PASSED (2)\n";
} else {
print "FAILED\n";
print "Script Execution Error: config.*** location error [1].\n";
print "