--- web/cgi-bin/docs.cgi 2004/03/24 23:29:21 1.10 +++ web/cgi-bin/docs.cgi 2004/03/25 22:51:20 1.13 @@ -6,14 +6,14 @@ use CGI; $| = 1; # Settings -my ($incdir) = "../nwww"; +my ($incdir) = "../htdocs"; # Include files my ($doctype) = "$incdir/doctype.inc"; my ($style) = "$incdir/style.inc"; my ($header) = "$incdir/header.inc"; my ($footer) = "$incdir/footer.inc"; -my ($menu) = "$incdir/menu.inc" ; +my ($menu) = "$incdir/menu-static.inc" ; my ($query) = new CGI; @@ -35,7 +35,7 @@ unless ($doc =~ /^[a-zA-Z_\-0-9\.\/]+$/) { print "Malformed request."; exit; } -$doc = "../htdocs/documentation/".$doc; +$doc = "../htdocs/cms/documentation/".$doc; my($docname) = $doc =~ /\/([^\/]+)$/; @@ -136,13 +136,8 @@ my ($urls) = '(' . join ('|', qw{ # Print the contents of a file containing html sub print_html ($) { my ($filename) = @_; - my($virtual) = ''; - my(@virtualresponse) = `/web/i-scream/nwww.cgi-bin/logo.cgi`; open(FILE, $filename); while() { - if(/$virtual/) { - s/$virtual/$virtualresponse[@virtualresponse-1]/; - } print; } close FILE;