".htmlentities($match[3]).""; } else { return $match[0]; } } function link_korrigieren($titel) { $titel = str_replace("&", "Und", $titel); $titel = str_replace("+", "plus", $titel); $titel = str_replace("ö", "Oe", $titel); $titel = str_replace("ü", "Ue", $titel); $titel = str_replace("Ü", "UE", $titel); $titel = str_replace("ä", "Ae", $titel); $titel = str_replace("/", "__", $titel); $titel = str_replace(" ", "_", $titel); return $titel; } function link_korrigieren2($titel) { $titel = str_replace("Und", "&", $titel); $titel = str_replace("plus", "+", $titel); $titel = str_replace("Oe", "ö", $titel); $titel = str_replace("Ue", "ü", $titel); $titel = str_replace("UE", "Ü", $titel); $titel = str_replace("Ae", "ä", $titel); $titel = str_replace("__", "/", $titel); $titel = str_replace("_", " ", $titel); return urldecode($titel); #return $titel; } if ($_REQUEST[output]=="xml") { echo "\n"; $res = $db->query("select * from elexikon_eintraege order by titel asc"); while($row=$db->fetch_array($res)) { if($row[link]) { $resadd = $db->query("select * from elexikon_eintraege where titel='$row[link]' or link = '$row[link]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } else { $resadd = $db->query("select * from elexikon_eintraege where titel='$row[titel]' or link = '$row[titel]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } echo "$row[titel]\n"; unset($link); } echo "\n"; } elseif ($_REQUEST[output]=="list") { echo "\n"; } else { /* (c) 2009 ComeOne dev. - dennis decker - decodo it */ define( 'DX_BASE' , dirname(__FILE__)."/../"); define( 'DS' , DIRECTORY_SEPARATOR ); define( 'DX_LOCK' , 1 ); require_once ( DX_BASE . DS . 'inc' . DS . 'dx_api.php' ); ob_start(); ?>
    query("select * from elexikon_eintraege order by titel asc"); while($row=$db->fetch_array($res)) { if($row[link]) { $resadd = $db->query("select * from elexikon_eintraege where titel='$row[link]' or link = '$row[link]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } else { $resadd = $db->query("select * from elexikon_eintraege where titel='$row[titel]' or link = '$row[titel]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } echo "
  • $row[titel]
  • "; unset($link); } ?>

Lexikon rund um Webhosting, Domains, VServer, Rootserver
"; echo "Bitte wählen Sie einen der Begriffe aus der linken Navigation"; $SeoDesc = "ComeHost.de - Ihr Lexikon rund um Webhosting, Domains, Vserver, Rootserver"; $SeoKey = "ComeHost.de - Ihr Lexikon rund um Webhosting, Domains, Vserver, Rootserver"; $SiteTitle = "ComeHost.de - Ihr Lexikon rund um Webhosting, Domains, Vserver, Rootserver"; } else { $titel = explode(".", $_REQUEST[titel]); $titel = link_korrigieren2($titel[0]); $res = $db->query("select * from elexikon_eintraege where titel='$titel'"); if ($db->num_rows($res)==0) { $titel = link_korrigieren2($titel); $res = $db->query("select * from elexikon_eintraege where titel='$titel'"); } $row =$db->fetch_array($res); if (!empty($row[link])) { $res = $db->query("select * from elexikon_eintraege where titel='$row[link]'"); $row =$db->fetch_array($res); } $resadd = $db->query("select * from elexikon_eintraege where link = '$row[titel]'"); while ($rowadd = $db->fetch_array($resadd)) { if (!$add) $add = "($rowadd[titel]"; else $add .= ", $rowadd[titel]"; $add2 .= ",$rowadd[titel]"; } if ($add) $add .= ")"; $SeoDesc = $titel." ".$add; $SeoKey = $titel.$add2; if ($row[keywords]) { $SeoKey .= ",".$row[keywords]; } $SiteTitle = "ComeHost.de - $titel $add - Ihr Lexikon rund um Webhosting, Domains, Vserver, Rootserver"; echo "

$row[titel] $add


"; //BANNER if (!empty($row[banner])) { $resb = $db->query("select * from werben_banner where id='$row[banner]'"); $rowb = $db->fetch_array($resb); $banner = $row[banner]; $produkt = $rowb[produkt]; } else { $resb = $db->query("select * from werben_banner where horizontal='0' order by RAND()"); $rowb = $db->fetch_array($resb); $banner = $rowb[id]; $produkt = $rowb[produkt]; } if (!empty($row[bannerurl])) { $bannerurl = $row[bannerurl]; } else { $resb = $db->query("select * from werben_produkte where id ='$produkt'"); $rowb = $db->fetch_array($resb); $bannerurl = $rowb[url]; } $text = $row[text]; $text = str_replace(" ", "", $text); #$text = str_replace(" ", " ", $text); $pattern = '/title="(.*?)"/is'; $text= preg_replace($pattern, '', $text); $ersetzt=array(); $resrep = $db->query("select * from elexikon_eintraege order by CHAR_LENGTH(titel) desc"); while ($rowrep = $db->fetch_array($resrep)) { if($rowrep[link]) { $resadd = $db->query("select * from elexikon_eintraege where titel='$rowrep[link]' or link = '$rowrep[link]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } else { $resadd = $db->query("select * from elexikon_eintraege where titel='$rowrep[titel]' or link = '$rowrep[titel]'"); while ($rowadd = $db->fetch_array($resadd)) { if ($link) $link .= ".$rowadd[titel]"; else $link = "$rowadd[titel]"; } } $link = link_korrigieren($link).".html"; $link_title = $rowrep[titel]; $word = " ".$rowrep[titel]; $word_e = preg_quote($word,'~'); $text = preg_replace_callback("~(]*href.*{$word_e}.*)|(<[^>]+{$word_e}[^>]*>)|($word_e)~Uims", 'linkify', $text); unset($link); } echo "
"; echo str_replace("[inserted_space]", " ", $text)."

"; #echo "$text

"; if (!empty($row[siehe])) { echo "Siehe auch:
"; $arr = explode(",", $row[siehe]); foreach ($arr as $value) { echo "$value "; } } echo "

"; echo "$row[text2]

"; echo "
 
"; } $out1 = ob_get_contents(); ob_end_clean(); /*SEO STUFF*/ #$SeoKey = ""; #$SeoDesc = ""; /* SITE-SPECIFIC */ $activeTopNav = "Lexikon"; $activeMainNav = ""; $KeyWords = ""; /* NAVIGATION */ $TopNav['top'] = array("Startseite" => "../index.php", "Kundencenter" => "../login.php", "Partnerprogramm" => "../affiliate-partnerprogramm.php", "News" => "../news.php", "Lexikon" => "/lexikon", "AGB" => "../agb.php", "Kontakt" => "../kontakt.php", "Impressum" => "../impressum.php"); $MainNav['top'] = array("Webhosting" => "../webhosting.php", "Domains" => "../domains.php", "Server" => "../server_vserver.php", "E-Mail" => "../email.php", "Reseller" => "http://www.comereseller.de"); ?>