cvs: phpweb /include shared-manual.inc

From: Date: Mon, 07 Aug 2000 22:56:38 +0000
Subject: cvs: phpweb /include shared-manual.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1555@lists.php.net to get a copy of this message
rasmus Mon Aug 7 15:56:38 2000 EDT Modified files: /phpweb/include shared-manual.inc Log: Only put up links to translations if they exist. And don't display flag for current page. Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.62 phpweb/include/shared-manual.inc:1.63 --- phpweb/include/shared-manual.inc:1.62 Mon Aug 7 15:06:07 2000 +++ phpweb/include/shared-manual.inc Mon Aug 7 15:56:38 2000 @@ -49,7 +49,7 @@ function makeBorderTOC($this) { - global $NEXT, $PREV, $UP, $HOME, $TOC, $FONTFACEATTR, $PHP_SELF; + global $NEXT, $PREV, $UP, $HOME, $TOC, $FONTFACEATTR, $PHP_SELF, $DOCUMENT_ROOT; global $HAVE_STYLE, $HAVE_TD_BG; $tocfontsize = "-1"; // replace with CSS? @@ -66,13 +66,14 @@ echo "<B>$UP[1]</B></FONT></A></TD></TR>\n"; $this = eregi_replace("^Manual: *", "", $this); + $cur = substr(dirname($PHP_SELF),-3); $file = basename($PHP_SELF); if(substr($file,-5)=='.php3') $file = substr($file,0,-1); - echo "<a href=\"/manual/$file\"><img src=\"/gifs/flag-uk.gif\" valign=bottom height=24 width=45 alt=\"English version of this page\"></a>"; - echo "<a href=\"/manual/de/$file\"><img src=\"/gifs/flag-de.gif\" valign=bottom height=24 width=45 alt=\"German version of this page\"></a>"; - echo "<a href=\"/manual/ja/$file\"><img src=\"/gifs/flag-jp.gif\" valign=bottom height=24 width=45 alt=\"Japanese version of this page\"></a><br>"; - echo "<a href=\"/manual/it/$file\"><img src=\"/gifs/flag-it.gif\" valign=bottom height=24 width=45 alt=\"Italian version of this page\"></a>"; - echo "<a href=\"/manual/fr/$file\"><img src=\"/gifs/flag-fr.gif\" valign=bottom height=24 width=45 alt=\"French version of this page\"></a>"; + if($cur!='ual') echo "<a href=\"/manual/$file\"><img src=\"/gifs/flag-uk.gif\" valign=bottom height=24 width=45 alt=\"English version of this page\"></a>"; + if($cur!='/de' && is_file("$DOCUMENT_ROOT/manual/de/$file")) echo "<a href=\"/manual/de/$file\"><img src=\"/gifs/flag-de.gif\" valign=bottom height=24 width=45 alt=\"German version of this page\"></a>"; + if($cur!='/ja' && is_file("$DOCUMENT_ROOT/manual/ja/$file")) echo "<a href=\"/manual/ja/$file\"><img src=\"/gifs/flag-jp.gif\" valign=bottom height=24 width=45 alt=\"Japanese version of this page\"></a>"; + if($cur!='/it' && is_file("$DOCUMENT_ROOT/manual/it/$file")) echo "<a href=\"/manual/it/$file\"><img src=\"/gifs/flag-it.gif\" valign=bottom height=24 width=45 alt=\"Italian version of this page\"></a>"; + if($cur!='/fr' && is_file("$DOCUMENT_ROOT/manual/fr/$file")) echo "<a href=\"/manual/fr/$file\"><img src=\"/gifs/flag-fr.gif\" valign=bottom height=24 width=45 alt=\"French version of this page\"></a>"; for ($i = 0; $i < count($TOC); $i++) { list($url, $title) = $TOC[$i];

« previous php.mirrors (#1555) next »