X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=htetc%2Fhandler.pl;h=81c983692b26ade96f302f8da8aca301004f57ec;hp=d425c2270f7b452baa3860639c74379b4fa19063;hb=48ba2845d0119c56971d5b724661aa37e73b49dd;hpb=ce41102169513f44c89a1e9bddfb250b29f239bb diff --git a/htetc/handler.pl b/htetc/handler.pl index d425c2270..81c983692 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -98,6 +98,10 @@ sub handler use IO::Handle; use IO::File; use Net::Whois::Raw qw(whois); + if ( $] < 5.006 ) { + eval "use Net::Whois::Raw 0.32 qw(whois)"; + die $@ if $@; + } use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; @@ -150,6 +154,9 @@ sub handler use FS::part_export_option; use FS::export_svc; use FS::msgcat; + use FS::rate; + use FS::rate_region; + use FS::rate_prefix; if ( %%%RT_ENABLED%%% ) { eval ' @@ -204,11 +211,14 @@ sub handler } }; + + unless ( $HTML::Mason::r->filename =~ /\/rt\/.*NoAuth/ ) { #RT + $cgi = new CGI; + &cgisuidsetup($cgi); + #&cgisuidsetup($r); + $p = popurl(2); + } - $cgi = new CGI; - &cgisuidsetup($cgi); - #&cgisuidsetup($r); - $p = popurl(2); sub include { use vars qw($m);