Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

adding header footer error

Quote Reply
adding header footer error
I'f appreciate any help.
# You can put variables here that you would like to use in any
# of your templates.

%globals = (
date => &get_date,
Date => &get_date,
time => &get_time,
Time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,

site_title => $build_site_title,
site_header => &site_header,
site_footer => &site_footer,
css => $build_css_url
);

sub site_header {
# -----------------------------------
# This is the header file to insert into your LINKS pages.

open (INC, "/common/winnet/ccunet/WWW/local-cgi/links/header.txt") or return "Can't find include file: header.txt";
return join ("", <INC> );
}

sub site_footer {
# -----------------------------------
# This is the footer file to insert into your LINKS pages.

open (INC, "/common/winnet/ccunet/WWW/local-cgi/links/footer.txt") or return "Can't find include file: footer.txt";
return join ("", <INC> );
}

------------------
ccunet
Quote Reply
Re: adding header footer error In reply to
I just responded to your redundant Thread in the Discussion Forum. Please try to post one Thread per problem in one Forum.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: adding header footer error In reply to
Thanks for the suggestions. Problem was in the location of the header and footer files moved them to the admin dir and it works fine.


------------------
ccunet