3 # Perl routines to encapsulate various elements of HTML page style.
5 # For future reference, when is now?
6 ($se,$mn,$hr,$md,$mo,$yr,$wd,$yd,$dst) = localtime(time);
9 $timestamp = "$mo-$md-$yr";
14 if (!defined($hsty_base)) {
17 if (!defined($hsty_email)) {
18 $hsty_email = "webmaster\@$ENV{SERVER_NAME}";
20 if (!defined($hsty_author)) {
21 $hsty_author = "<a href=\"$hsty_base/mailto.html\">$hsty_email</a>";
24 $i_topbar = "<P><CENTER><A HREF=\"/\">BGUI Developers Site</A> | <A HREF=\"/bugs.html\">BGUI Bug Database</A></CENTER></A>";
26 if ($hsty_home eq "") {
27 $hsty_home = "<a href=\"$hsty_base/\"><img src=\"$hsty_base/gifs/home.gif\"
28 alt=\"FreeBSD Home Page\" border=\"0\" align=\"right\"></a>";
34 return "Content-type: text/html\n\n" .
35 "<html>\n<title>$title</title>\n</head>\n$t_body\n" .
36 "$i_topbar <h1>$title</h1>\n";
39 sub short_html_header
{
42 return "Content-type: text/html\n\n" .
43 "<html>\n<title>$title</title>\n</head>\n$t_body\n" .
48 return "<hr><address>$hsty_author<br>$hsty_date</address>\n";
52 return if $ENV{'PATH_INFO'} ne '/get_the_source';
55 print "Oops! open $0: $!\n"; # should not reached
59 print "Content-type: text/plain\n\n";