X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fhandler.pl;h=b81606a0a1876574b6db515a97fff1d1dac47ce1;hb=35effa1bf4ac902547615c816960bbc8db8e7256;hp=584d930b11d2c2a46f2ecd5f9da5f1aa2d587f9f;hpb=c7e637f35948396ca2bf760160f2a1a3081e0484;p=freeside.git diff --git a/htetc/handler.pl b/htetc/handler.pl index 584d930b1..b81606a0a 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -38,7 +38,7 @@ use strict; my $ah = new HTML::Mason::ApacheHandler ( #interp => $interp, #auto_send_headers => 0, - comp_root=>'/var/www/freeside', + comp_root=>'%%%FREESIDE_DOCUMENT_ROOT%%%', data_dir=>'/usr/local/etc/freeside/masondata', #out_mode=>'stream', ); @@ -71,6 +71,8 @@ sub handler use HTML::Entities; use IO::Handle; use IO::File; + use Net::Whois::Raw qw(whois); + use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; use HTML::Widgets::SelectLayers 0.03; @@ -80,6 +82,8 @@ sub handler use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot small_custview myexit http_header); use FS::Msgcat qw(gettext geterror); + use FS::Misc qw( send_email ); + use FS::Report::Table::Monthly; use FS::agent; use FS::agent_type; @@ -195,7 +199,7 @@ sub handler #eorar my $headers = $r->headers_out; - $headers->{'Pragma'} = $headers->{'Cache-control'} = 'no-cache'; + $headers->{'Cache-control'} = 'no-cache'; #$r->no_cache(1); $headers->{'Expires'} = '0';