=================================================================== RCS file: /cvs/cvsweb/cvsweb.cgi,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- cvsweb/cvsweb.cgi 1996/09/28 23:31:06 1.1 +++ cvsweb/cvsweb.cgi 1996/09/29 02:19:30 1.2 @@ -28,6 +28,9 @@ require 'timelocal.pl'; require 'ctime.pl'; +$hsty_base = ""; +require 'cgi-style.pl'; + $cvsroot = '/home/ncvs'; $intro = " This is a WWW interface to the FreeBSD CVS tree. @@ -72,23 +75,15 @@ if (-d $fullname) { opendir(DIR, $fullname) || &fatal("404 Not Found","$where: $!"); @dir = readdir(DIR); closedir(DIR); - print "Content-type: text/html\n\n"; - print "FreeBSD CVS Tree: /$where\n"; - print "\n"; - print "

\"\" "; - print "FreeBSD CVS Tree

\n
\n"; -# print "\n"; -# print "
\n"; -# print "\"\"\n"; -# print "
\n"; -# print "

FreeBSD CVS Tree

\n"; if ($where eq '') { + print &html_header("FreeBSD CVS Repository"); print $intro; } else { + print &html_header("/$where"); print $shortinstr; } print "

Current directory: /$where\n"; - print "


\n"; + print "


\n"; # Using in this manner violates the HTML2.0 spec but # provides the results that I want in most browsers. Another # case of layout spooging up HTML. @@ -111,15 +106,7 @@ if (-d $fullname) { } } print "\n"; -print "
-\"FreeBSD -
- www@freebsd.org -
\n"; -# print "
\n"; -# print "\"FreeBSD\n"; -# print "\n"; + print &html_footer; print "\n"; } elsif (-f $fullname . ',v') { if ($_ = $ENV{'QUERY_STRING'}) { @@ -364,15 +351,12 @@ print "
$sel .= "