blob: e6e50d5bd17cc89cefc7ade2af895f3adf0cc150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
% $m->call_next;
<%init>
dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
</%init>
<%filter>
my $profile = '';
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
#if contenttype is text/html!! **FIXME**
$profile = '<PRE>'. ("\n"x4096). encode_entities(dbh->sprintProfile()).
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
#endif
dbh->{'private_profile'} = {};
}
s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)$/$profile$1/i;
</%filter>
|