added FastCGI support

This commit is contained in:
JT Smith 2004-08-30 20:59:11 +00:00
parent a11a5d73b4
commit 13002676db
5 changed files with 44 additions and 4 deletions

33
www/index.fpl Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/perl
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2004 Plain Black LLC.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
# NOTE: This gateway script is to be used with FastCGI.
our ($webguiRoot, $configFile);
BEGIN {
$configFile = "WebGUI.conf";
$webguiRoot = "/data/WebGUI";
unshift (@INC, $webguiRoot."/lib");
}
#-----------------DO NOT MODIFY BELOW THIS LINE--------------------
use CGI::Carp qw(fatalsToBrowser);
use strict;
use WebGUI;
use CGI::Fast;
while my $fcgi = new CGI::Fast) {
print WebGUI::page($webguiRoot,$configFile,"","",$fcgi);
}