X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fglobal.asa;h=146310d5720c311e04629cbbfdb5b803e62ee04d;hb=97ddf39b5798913bbd2b0205b2767df2cd362a2b;hp=5652a6f4f5e2235c1ec9cd8d9b31e995822560d7;hpb=654234a526b5447ec02970962cccb1cf879796c8;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index 5652a6f4f..146310d57 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,6 +14,12 @@ use Tie::IxHash; use HTML::Entities; 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; use HTML::Widgets::SelectLayers 0.03; @@ -65,9 +71,11 @@ use FS::part_export; use FS::part_export_option; use FS::export_svc; use FS::msgcat; +use FS::rate; +use FS::rate_region; +use FS::rate_prefix; sub Script_OnStart { - $Response->AddHeader('Pragma' => 'no-cache'); $Response->AddHeader('Cache-control' => 'no-cache'); # $Response->AddHeader('Expires' => 0); $Response->{Expires} = -36288000; @@ -196,7 +204,10 @@ sub sprintAutoProfile { } sub include { - $Response->Include(@_); + ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/); + #broken in 5.005# ${$Response->TrapInclude($file, @_)}; + my $ref = $Response->TrapInclude($file, @_); + $$ref; } if ( defined(@DBIx::Profile::ISA) ) {