summaryrefslogtreecommitdiff
path: root/httemplate/search/report_credit.cgi
diff options
context:
space:
mode:
authorivan <ivan>2002-02-26 22:09:44 +0000
committerivan <ivan>2002-02-26 22:09:44 +0000
commitb717ff208f1593bc7d2021f17fbb63006e66e6ef (patch)
tree20cc2433bd6894c63838cf93c7c8a046865610b4 /httemplate/search/report_credit.cgi
parentffc6bb4416bc6e0c29d0e38a389a948d38c5534c (diff)
fixup reports for templated webUI
Diffstat (limited to 'httemplate/search/report_credit.cgi')
-rwxr-xr-xhttemplate/search/report_credit.cgi20
1 files changed, 5 insertions, 15 deletions
diff --git a/httemplate/search/report_credit.cgi b/httemplate/search/report_credit.cgi
index e4a9bf241..fac6c8d0f 100755
--- a/httemplate/search/report_credit.cgi
+++ b/httemplate/search/report_credit.cgi
@@ -1,25 +1,15 @@
+<!-- mason kludge -->
<%
-use strict;
-use vars qw( $cgi $user $beginning $ending );
-use CGI;
-use CGI::Carp qw( fatalsToBrowser );
-use FS::UID qw( cgisuidsetup getotaker );
-use FS::CGI qw( header );
-
-$cgi = new CGI;
-&cgisuidsetup($cgi);
-
-$user = getotaker;
+my $user = getotaker;
$cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/;
-$beginning = $1;
+my $beginning = $1;
$cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/;
-$ending = $1;
+my $ending = $1;
-print $cgi->header( '-expires' => '-2m' ),
- header('In House Credit Report Results');
+print header('In House Credit Report Results');
open (REPORT, "freeside-credit-report -v -s $beginning -d $ending $user |");