Hi,
i'm having a really weird problem here :/
require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
works fine (except it obviously doesn't include $CFG or $USER).
However, if I use;
require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
The error_log shows;
If I add in print $IN->header();, then it just outputs a blank page (I'm guessing it was trying to output something.... but I can't see where/why :/).
Any ideas are MUCH appreciated. BTW, this is a freebie plugin for LSQL =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
i'm having a really weird problem here :/
Code:
# $IN = { %$IN, %$CFG, %$USER }; require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
works fine (except it obviously doesn't include $CFG or $USER).
However, if I use;
Code:
$IN = { %$IN, %$CFG, %$USER }; require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
The error_log shows;
Quote:
[Tue Feb 15 08:51:39 2005] [error] [client 81.153.51.17] Premature end of script headers: /var/home/ultranerds/ultranerds-dev.com/cgi-bin/add.cgiIf I add in print $IN->header();, then it just outputs a blank page (I'm guessing it was trying to output something.... but I can't see where/why :/).
Any ideas are MUCH appreciated. BTW, this is a freebie plugin for LSQL =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

