X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fglobal.asa;h=612f6f4af51c20aef52d9f804f6cd55be987733f;hb=584caeef2ac90ab10fc028a7928b9ebc53e8b33a;hp=bb94b92683029aec15a027f55f3c61f50ed5ccc6;hpb=73f34cbe08a9be968a2557cd6906dde5bb9a97a3;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index bb94b9268..612f6f4af 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,10 +14,16 @@ 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; +use FS; use FS::UID qw(cgisuidsetup dbh getotaker datasrc driver_name); use FS::Record qw(qsearch qsearchs fields dbdef); use FS::Conf; @@ -26,6 +32,7 @@ use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot use FS::Msgcat qw(gettext geterror); use FS::Misc qw( send_email ); use FS::Report::Table::Monthly; +use FS::TicketSystem; use FS::agent; use FS::agent_type; @@ -66,9 +73,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; @@ -197,7 +206,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) ) {