X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fglobal.asa;h=c362f1137fe2a42d737592ff9cc504cd43bf9aee;hb=9299390ef485780f9990f95ecfa5b50d87078a1d;hp=d04a5edbf54268c92e09f2fcb4e1242c79634d62;hpb=d35af6bf3827731fc639b975616b941d1e470183;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index d04a5edbf..c362f1137 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -1,21 +1,30 @@ use strict; use vars qw( $cgi $p ); -use CGI; +use Apache::ASP 2.55; +use CGI 2.47; #use CGI::Carp qw(fatalsToBrowser); use Date::Format; use Date::Parse; +use Time::Local; 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 HTML::Widgets::SelectLayers 0.02; +use HTML::Widgets::SelectLayers 0.03; use FS::UID qw(cgisuidsetup dbh getotaker datasrc driver_name); use FS::Record qw(qsearch qsearchs fields dbdef); use FS::Conf; use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot - small_custview myexit); + small_custview myexit http_header); use FS::Msgcat qw(gettext geterror); +use FS::Misc qw( send_email ); use FS::agent; use FS::agent_type; @@ -53,7 +62,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; @@ -66,7 +74,7 @@ sub Script_OnStart { sub Script_OnFlush { my $ref = $Response->{BinaryRef}; - $$ref = $cgi->header( @FS::CGI::header ) . $$ref; + #$$ref = $cgi->header( @FS::CGI::header ) . $$ref; if ( dbh->can('sprintProfile') ) { $$ref =~ s/<\/BODY>[\s\n]*<\/HTML>[\s\n]*$//i