#!C:\Perl\bin\perl.exe
#
# $Id: webevent.cgi.in,v 1.2.2.2 2002/08/28 14:23:51 sgr Exp $
#
# WebEvent CGI stub which ties the server's CGI namespace into
# the actual WebEvent product installation directory location.
#
# This is the only portion of the WebEvent installation that
# needs to be installed in a CGI-enabled location on the 
# customer's web server platform. The rest of the WebEvent
# code can (and *should*, for security reasons...) be installed
# outside of the web server's logical URL namespace.
# 
# (c) Copyright 1998-2002 WebEvent, Inc.   All Rights Reserved.
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

# Add WebEvent's library directory to perl's library search path.
use lib 'd:/wwwroot/cals/lib';

eval {
    require 'webeventcommon.pl';	# Pull in the WebEvent main script
};
$@ and do {
    print STDOUT <DATA>;
    exit(0);
};


WE::webeventscript();			# ...and run it.
exit(0);

__END__
content-type: text/html

<html>
<head><title>Installation Failure</title></head>
<body bgcolor=#CCCC99>
  <table border=0>
  <tr width=100%>
  <td width=25%>&nbsp;</td>
  <td>
  <div align=center width=30%>
    <big><font color=red>Installation Failure</font></big>
    <hr noshade>

    <p>This version of WebEvent was installed at location
    <tt><b>d:/wwwroot/cals</b></tt>, but the WebEvent library
    files couldn't be loaded using that path. </p>

    <p>Please have your site administrator check that
    that directory exists, that it contains
    the WebEvent installation files, and that the web server
    user has appropriate permissions to read the directory and
    the files within it.
  </div>
  </td>
  <td width=25%>&nbsp;</td>
  </tr>
  </table>

</body>
</html>
