I got it to work without messing with the internal workings of linksSQL and loading the banner locally.
In global.txt I created this sub routine:
#------------------------------------------------------------------my $ad; if ($ENV{'SCRIPT_NAME'} =~ /nph-build/) {
$ad = '<!--#exec cgi="/cgi-bin/random/ads.cgi" -->';
}
else {
$ad = `/my_full_paths/cgi-bin/random/ads.cgi`;
$ad =~ s,Content-type:\stext/html,,;
}
return $ad;
}
in my dump I added:
'banner' => \&banner,
And in my include_menu template I added <%banner%>. The banner works fine on every page and will change.
If this helps anyone out let me know (I'm curious)...
Meanwhile... I will be working on a way to simply insert php or other perl files into the system using a similar fashion...
Thanks for the suggestions,
- Jonathan
In global.txt I created this sub routine:
Code:
sub banner { #------------------------------------------------------------------my $ad; if ($ENV{'SCRIPT_NAME'} =~ /nph-build/) {
$ad = '<!--#exec cgi="/cgi-bin/random/ads.cgi" -->';
}
else {
$ad = `/my_full_paths/cgi-bin/random/ads.cgi`;
$ad =~ s,Content-type:\stext/html,,;
}
return $ad;
}
in my dump I added:
'banner' => \&banner,
And in my include_menu template I added <%banner%>. The banner works fine on every page and will change.
If this helps anyone out let me know (I'm curious)...
Meanwhile... I will be working on a way to simply insert php or other perl files into the system using a similar fashion...
Thanks for the suggestions,
- Jonathan