X-Git-Url: http://git.i-scream.org/?a=blobdiff_plain;f=cgi-bin%2Fdocs.cgi;h=91e99f009a74f9c0ac06355cd8924c3256b6e413;hb=HEAD;hp=ee22b7b9ed4c8f05aeda8a797f03484ec286a06c;hpb=dab5dbc565daac5f26e957130e49e29fc4d3cb6a;p=www.i-scream.org.git diff --git a/cgi-bin/docs.cgi b/cgi-bin/docs.cgi index ee22b7b..91e99f0 100755 --- a/cgi-bin/docs.cgi +++ b/cgi-bin/docs.cgi @@ -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;