I have modified my site_html_templates.pl by adding this :
# You can put variables here that you would like to use in any
# of your templates.
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner1 => \&insertadvert1,
banner2 => \&insertadvert2,
banner3 => \&insertadvert3,
);
sub insertadvert1 {
my $ad = `/home2/msmaster/cgi-bin/ads4/display.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
sub insertadvert2 {
my $ad = `/home2/msmaster/cgi-bin/ads5/display.cgi`;
return $ad;
}
sub insertadvert3 {
my $ad = `/home2/msmaster/cgi-bin/ads6/display.cgi`;
return $ad;
}
The problem is that when the ad is displayed, i always have the text : "content type : text/html" above each ads...
Can i get rid of this text on my pages ?
Thanks...
# You can put variables here that you would like to use in any
# of your templates.
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner1 => \&insertadvert1,
banner2 => \&insertadvert2,
banner3 => \&insertadvert3,
);
sub insertadvert1 {
my $ad = `/home2/msmaster/cgi-bin/ads4/display.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
sub insertadvert2 {
my $ad = `/home2/msmaster/cgi-bin/ads5/display.cgi`;
return $ad;
}
sub insertadvert3 {
my $ad = `/home2/msmaster/cgi-bin/ads6/display.cgi`;
return $ad;
}
The problem is that when the ad is displayed, i always have the text : "content type : text/html" above each ads...
Can i get rid of this text on my pages ?
Thanks...