X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=htetc%2Fglobal.asa;h=c22afc1321b4da03bb999fbf52d25523f475c435;hb=cf16b23820da69e3c8d0156ae27e21c635bf1ec5;hp=cb2a28037e7663a7fd43b17cd0e7ff81efc061ce;hpb=f8e860c838ee6a59eaefe261fa629825ffbec422;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index cb2a28037..c22afc132 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -3,12 +3,16 @@ use vars qw( $cgi $p ); use CGI; #use CGI::Carp qw(fatalsToBrowser); use HTML::Entities; +use Date::Format; +use Date::Parse; use FS::UID qw(cgisuidsetup dbh); use FS::Record qw(qsearch qsearchs fields); use FS::part_svc; use FS::part_pkg; use FS::pkg_svc; -use FS::CGI qw(header menubar popurl table); +use FS::cust_pkg; +use FS::cust_svc; +use FS::CGI qw(header menubar popurl table itable ntable); sub Script_OnStart { $cgi = new CGI; @@ -19,13 +23,13 @@ sub Script_OnStart { sub Script_OnFlush { my $ref = $Response->{BinaryRef}; - $$ref = $cgi->header( '-expires' => 'now' ) . $$ref; + $$ref = $cgi->header( @FS::CGI::header ) . $$ref; if ( dbh->can('sprintProfile') ) { $$ref =~ s/<\/BODY>[\s\n]*<\/HTML>[\s\n]*$//i or warn "can't remove"; - $$ref .= '
'. encode_entities(dbh->sprintProfile()). '
'; + $$ref .= '
'. ("\n"x96). encode_entities(dbh->sprintProfile()). '
'; $$ref .= '';