Hi,
If you don't way to use SSI, your global should return the content of the url, not that url only. And you need to the work of SSI, something like this:
sub {
use LWP::Simple;
my $one_poll = "/cgi-bin/forum/gforum.cgi?do=poll_ssi;poll=1";
$one_poll=get($one_poll);
$one_poll =~ s,Content-type:\stext/plain,,;
return $one_poll;
}
Cheers,
Dat
Programming and creating plugins and templates
Blog
If you don't way to use SSI, your global should return the content of the url, not that url only. And you need to the work of SSI, something like this:
sub {
use LWP::Simple;
my $one_poll = "/cgi-bin/forum/gforum.cgi?do=poll_ssi;poll=1";
$one_poll=get($one_poll);
$one_poll =~ s,Content-type:\stext/plain,,;
return $one_poll;
}
Cheers,
Dat
Programming and creating plugins and templates
Blog