summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
authorivan <ivan>2001-08-21 09:34:13 +0000
committerivan <ivan>2001-08-21 09:34:13 +0000
commit6ef34dda51afba96d8dc6c4dd72427c3d4003945 (patch)
tree386c2a2659643f81bdcd08b4701ebee364282d7b /htetc
parentbfb8e18f5e245c3043ea44fad8fe3119ee73b37a (diff)
no more &swapuid
Diffstat (limited to 'htetc')
-rw-r--r--htetc/global.asa16
1 files changed, 14 insertions, 2 deletions
diff --git a/htetc/global.asa b/htetc/global.asa
index beb6d02f0..d6e0bbea2 100644
--- a/htetc/global.asa
+++ b/htetc/global.asa
@@ -2,7 +2,8 @@ use strict;
use vars qw( $cgi $p );
use CGI;
use CGI::Carp qw(fatalsToBrowser);
-use FS::UID qw(cgisuidsetup);
+use HTML::Entities;
+use FS::UID qw(cgisuidsetup dbh);
use FS::Record qw(qsearch qsearchs fields);
use FS::part_svc;
use FS::CGI qw(header menubar popurl table);
@@ -16,5 +17,16 @@ sub Script_OnStart {
sub Script_OnFlush {
my $ref = $Response->{BinaryRef};
- $$ref = $cgi->header( '-expires' => 'now' ) .$$ref;
+ $$ref = $cgi->header( '-expires' => 'now' ) . $$ref;
+# if ( dbh->can('sprintProfile') ) {
+
+ $$ref =~ s/<\/BODY>[\s\n]*<\/HTML>[\s\n]*$//i
+ or warn "can't remove";
+
+ $$ref .= '<PRE>'. encode_entities(dbh->sprintProfile()). '</PRE>';
+
+ $$ref .= '</BODY></HTML>';
+
+ dbh->{'private_profile'} = {};
+# }
}