# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.19 2005/02/12 13:13:14 ceri Exp $
#
# Perl routines to encapsulate various elements of HTML page style.
# For future reference, when is now?
($se,$mn,$hr,$md,$mo,$yr,$wd,$yd,$dst) = localtime(time);
$yr += 1900;
$mo += 1;
$timestamp = "$mo-$md-$yr";
if (!defined($hsty_base)) {
$hsty_base = "..";
}
if (!defined($hsty_email)) {
$hsty_email = "www\@FreeBSD.org";
}
if (!defined($hsty_author)) {
$hsty_author = "$hsty_email";
}
if (!defined($hsty_date)) {
$hsty_date = "";
}
# This can be set to either a string containing an inline CSS stylesheet
# or to a element that references an external CSS stylesheet, to
# make local modifications to the style of a CGI script's output.
$t_style = "";
$i_topbar = "
";
if (!defined($hsty_home)) {
$hsty_home = "
";
}
sub html_header {
local ($title) = @_;
return "Content-type: text/html\n\n" .
"\n