if (strpos($tag, ':') == FALSE) { //No dublicates if (in_array($tag, $link[0]) == FALSE) { if (strpos($tag, '|') != FALSE) { $wTag = substr($tag, 0, strpos($tag, '|')); $link[1][$i] = str_replace(" ", "_", $wTag); $link[0][$i] = str_replace("|", " / ", $tag); } else { $link[1][$i] = str_replace(" ", "_", $tag); $link[0][$i] = $tag; } $wikilink = 'http://' . $wiki . $access_path . '/' . $link[1][$i]; $mmlink = 'viewmap.php?wiki=' . $wiki . '&topic=' . $link[1][$i]; $textTmp = preg_replace("/[\n&]/", "%26", $link[0][$i]); $wikilink = preg_replace("/[\n&]/", "%26", $wikilink); echo '<node TEXT="' . cleanText($textTmp) . '" LINK="' . cleanWikiLink($wikilink) . "\">\n"; //echo '<node TEXT="T" STYLE="fork">/n'; echo "</node>\n"; $i++; } } $contents = strstr($contents, $linkEnd); $contents = substr($contents, strlen($linkEnd)); } } if ($openSubChap == TRUE) { echo "</node>\n"; } if ($openChap == TRUE) { echo "</node>\n"; }
//echo $tag; // Keine Bilder etc... if (strpos($tag, ':') == FALSE) { //No dublicates if (in_array($tag, $link[0]) == FALSE) { if (strpos($tag, '|') != FALSE) { $wTag = substr($tag, 0, strpos($tag, '|')); $link[1][$i] = str_replace(" ", "_", $wTag); $link[0][$i] = str_replace("|", " / ", $tag); } else { $link[1][$i] = str_replace(" ", "_", $tag); $link[0][$i] = $tag; } $wikilink = 'http://' . $wiki . $access_path . '/' . $link[1][$i]; $mmlink = 'viewmap.php?wiki=' . $wiki . '&topic=' . $link[1][$i]; echo "<node TEXT=\"" . cleanText($link[0][$i]) . "\" WIKILINK=\"" . cleanWikiLink($wikilink) . "\" MMLINK=\"" . $mmlink . "\" STYLE=\"fork\">\n"; //echo '<node TEXT="T" STYLE="fork">/n'; echo "</node>\n"; $i++; } } $contents = strstr($contents, $linkEnd); $contents = substr($contents, strlen($linkEnd)); } } if ($openSubChap == TRUE) { echo "</node>\n"; } if ($openChap == TRUE) { echo "</node>\n"; }