include("output/include/open.inc.php");
//Sprachausgabe:
if(!$_SESSION["land"]){
$_SESSION["land"] = "www_content_german";
}
if(!$_SESSION["termine"]){
$_SESSION["termine"] = "www_termine_german";
}
if(!$_SESSION["isolkz"]){
$_SESSION["isolkz"] = "DE";
}
$_SESSION['gobacksearch'] = "";
//Rücklink für Navigation
$link_target = "test_output.php";
//Abfrage des Seiteninhalts
if(!$_GET['id']){
$inf= 2; //ID der Startseite
}else{
if($_GET['ukat']){
$inf= $_GET['ukat'];
}else{
$inf= $_GET['id'];
}
}
if($_GET['ukat']){
$navi_info = "?id=".$_GET['id']."&top=".$_GET['top']."&top2=".$_GET['top2']."&ukat=".$_GET['ukat']."&idf=".$_GET['idf'];
}else{
$navi_info = "?id=".$_GET['id']."&top=".$_GET['top']."&top2=".$_GET['top2']."&ukat=".$_GET['ukat']."&idf=".$_GET['idf'];
}
$sql ="SELECT * FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND ids = ".$inf;
$result = mysql_query($sql, $conn);
$treffer = mysql_num_rows($result);
if($treffer<=0){
header("Location: ../index.php");
die;
}
$detail = mysql_fetch_array($result);
$text = $detail['text'];
//Folgeseite
if($_GET['ffid']){
$sqlf ="SELECT * FROM www_content_folgeseite WHERE id=".$_GET['ffid'];
$resultf = mysql_query($sqlf, $conn);
$detailf = mysql_fetch_array($resultf);
$text = $detailf['text'];
}
//Meta+Titel Infos
$sql2 ="SELECT * FROM www_metainfos WHERE sprache='".$_SESSION["isolkz"]."'";
$result2 = mysql_query($sql2, $conn);
$meta = mysql_fetch_array($result2);
######################################Titel Anzeige
if($detail['hierarchy'] == 4){ //Hierarchy == 4
$sql2 = "SELECT in_1,navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$detail['in_1'];
$result2 = mysql_query($sql2, $conn);
$res2 = mysql_fetch_array($result2);
$sql3 = "SELECT in_1,navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$detail['in_1'];
$result3 = mysql_query($sql3, $conn);
$res3 = mysql_fetch_array($result3);
$sql4 = "SELECT navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$res3[0];
$result4 = mysql_query($sql4, $conn);
$res4 = mysql_fetch_array($result4);
$metapfad = " · ".$res4[0]." · ".$res3[1]." · ".$res2[1]." · ".$detail['navtext'];
}
if($detail['hierarchy'] == 3){ //Hierarchy == 3
$sql3 = "SELECT in_1,navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$detail['in_1'];
$result3 = mysql_query($sql3, $conn);
$res3 = mysql_fetch_array($result3);
$sql4 = "SELECT navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$res3[0];
$result4 = mysql_query($sql4, $conn);
$res4 = mysql_fetch_array($result4);
$metapfad = " · ".$res4[0]." · ".$res3[1]." · ".$detail['navtext'];
}
if($detail['hierarchy'] == 2){ //Hierarchy == 2
$sql4 = "SELECT navtext FROM www_content_main,".$_SESSION["land"]." WHERE id= ids AND id = ".$detail['in_1'];
$result4 = mysql_query($sql4, $conn);
$res4 = mysql_fetch_array($result4);
$metapfad = " · ".$res4[0]." · ".$detail['navtext'];
}
if(($detail['hierarchy'] == 1) or ($detail['hierarchy'] == 0)){ //Hierarchy == 1
$metapfad = " · ".$detail['navtext'];
}
?>
echo $meta['titlefirst'].$metapfad;?>
if($detail['robots'] == 1){
echo "";
}
if($detail['robots'] == 0){
echo "";
}
echo $meta['metafirst'];
?>