import of rt 3.0.4
[freeside.git] / rt / bin / mason_handler.scgi.in
1 #!@SPEEDY_BIN@
2 # BEGIN LICENSE BLOCK
3
4 # Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
5
6 # (Except where explictly superceded by other copyright notices)
7
8 # This work is made available to you under the terms of Version 2 of
9 # the GNU General Public License. A copy of that license should have
10 # been provided with this software, but in any event can be snarfed
11 # from www.gnu.org.
12
13 # This work is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # General Public License for more details.
17
18 # Unless otherwise specified, all modifications, corrections or
19 # extensions to this work which alter its source code become the
20 # property of Best Practical Solutions, LLC when submitted for
21 # inclusion in the work.
22
23
24 # END LICENSE BLOCK
25
26 use strict;
27 require ('@RT_BIN_PATH@/webmux.pl');
28
29 my $h = &RT::Interface::Web::NewCGIHandler();
30
31 require CGI;
32
33 RT::Init();
34
35 my $cgi = CGI->new;
36 unless ($h->interp->comp_exists($cgi->path_info)) {
37     $cgi->path_info($cgi->path_info . "/index.html");
38 }
39 $h->handle_cgi_object($cgi);
40
41 1;