X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=htetc%2Fglobal.asa;h=782e06223321565d05fba4591a82df57e7b7c651;hp=65f3355e1e78951c118a779d7066b1ea25957b2c;hb=eb4cf5563939a08eba1a10d8c2a8f52205f6535b;hpb=a60469e86166291a4a03a6c534d1f88ef070dd4a diff --git a/htetc/global.asa b/htetc/global.asa index 65f3355e1..782e06223 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,6 +14,11 @@ 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; @@ -68,7 +73,6 @@ use FS::export_svc; use FS::msgcat; sub Script_OnStart { - $Response->AddHeader('Pragma' => 'no-cache'); $Response->AddHeader('Cache-control' => 'no-cache'); # $Response->AddHeader('Expires' => 0); $Response->{Expires} = -36288000; @@ -197,9 +201,10 @@ sub sprintAutoProfile { } sub include { - ( my $file = shift ) =~ s(^/)(); - $Response->Include($file, @_); - ''; + ( 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) ) {