X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=htetc%2Fhandler.pl;h=f970df842fed838706b653150e67b3332de11ada;hp=618c5856f4881e2b484e6c5439e0768f590f6ea3;hb=e5f676566d9fd2dd61d5e48c26ccd9f4387f8cc8;hpb=f4ffa3596c3b8bfc9e862c2a7e8efc68f86207ab diff --git a/htetc/handler.pl b/htetc/handler.pl index 618c5856f..f970df842 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,7 @@ sub handler use HTML::Entities; use IO::Handle; use IO::File; + use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; use HTML::Widgets::SelectLayers 0.03; @@ -81,6 +82,7 @@ sub handler 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; @@ -196,7 +198,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';