diff options
| author | David Aspinall | 2000-09-29 17:47:34 +0000 |
|---|---|---|
| committer | David Aspinall | 2000-09-29 17:47:34 +0000 |
| commit | 0343b2b7187a599d2373e92e00d5e8ad7da91c3f (patch) | |
| tree | f2a8ed42df461e6cd9171a5bce55792172cea98f /html/header.html | |
| parent | 4e2c1e49359fdc4f1dbb0fe31b182c6d8e09eaae (diff) | |
Remove messy link_root links.
Diffstat (limited to 'html/header.html')
| -rw-r--r-- | html/header.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/html/header.html b/html/header.html index 9b7d70d3..cb5b3aba 100644 --- a/html/header.html +++ b/html/header.html @@ -18,7 +18,9 @@ * and fix $WANTED. Hrefs are given by page parameter to current doc. */ $separator='<td><img src="images/bullethole.gif" width=15 height=15 align="top" alt=".">'; - $WANTED=$HTTP_GET_VARS["page"]; + $urlbits = parse_url($REQUEST_URI); + $file = ereg_replace("^(.*/)+","",$urlbits["path"]); + $WANTED = ereg_replace(".html","",$file); print "<table><tr>\n"; $links_arr = array( "Home" => "main", @@ -47,7 +49,7 @@ print "<b>" . $name . "</b>"; } else { - link_root($links_arr[$name],$name); + print "<a href=\"$links_arr[$name]\">$name</a>"; } print " </td>\n"; if ($name=="Download" || $name=="Documentation") print "</tr>\n<tr>"; |
