if (empty($_REQUEST[titel])) {
echo "
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");
?>