0){ $datURL=mysql_fetch_array($result); $act=$datURL["act1"]; $act2=$datURL["act2"]; $act3=$datURL["act3"]; $act4=$datURL["act4"]; $act5=$datURL["act5"]; } if($datURL["txtf_id"]>0) { $act6=$datURL["txtf_id"]; if(isset($_SESSION["prev_act"])) { if($act=="?") $act=$_SESSION["prev_act"]; if($act2=="?") $act2=$_SESSION["prev_act2"]; if($act3=="?") $act3=$_SESSION["prev_act3"]; if($act4=="?") $act4=$_SESSION["prev_act4"]; if($act5=="?") $act5=$_SESSION["prev_act5"]; } } if($datURL["news_id"]>0) { $isnews=1; $act6=$datURL["news_id"]; if(isset($_SESSION["prev_act"])) { if($act=="?") $act=$_SESSION["prev_act"]; if($act2=="?") $act2=$_SESSION["prev_act2"]; if($act3=="?") $act3=$_SESSION["prev_act3"]; if($act4=="?") $act4=$_SESSION["prev_act4"]; if($act5=="?") $act5=$_SESSION["prev_act5"]; } } } } $_SESSION["prev_act"]=$act; $_SESSION["prev_act2"]=$act2; $_SESSION["prev_act3"]=$act3; $_SESSION["prev_act4"]=$act4; $_SESSION["prev_act5"]=$act5; if($_SESSION["prev_act"]!="" && $_SESSION["prev_act2"]=="" && $_SESSION["prev_act3"]=="" && $_SESSION["prev_act4"]=="" && $_SESSION["prev_act5"]=="") {$prev_katid=$act;} if($_SESSION["prev_act"]!="" && $_SESSION["prev_act2"]!="" && $_SESSION["prev_act3"]=="" && $_SESSION["prev_act4"]=="" && $_SESSION["prev_act5"]=="") {$prev_katid=$act2;} if($_SESSION["prev_act"]!="" && $_SESSION["prev_act2"]!="" && $_SESSION["prev_act3"]!="" && $_SESSION["prev_act4"]=="" && $_SESSION["prev_act5"]=="") {$prev_katid=$act3;} if($_SESSION["prev_act"]!="" && $_SESSION["prev_act2"]!="" && $_SESSION["prev_act3"]!="" && $_SESSION["prev_act4"]!="" && $_SESSION["prev_act5"]=="") {$prev_katid=$act4;} if($_SESSION["prev_act"]!="" && $_SESSION["prev_act2"]!="" && $_SESSION["prev_act3"]!="" && $_SESSION["prev_act4"]!="" && $_SESSION["prev_act5"]!="") {$prev_katid=$act5;} //eigene urls ende if ($act=="index" || $act=="") { $query="SELECT kat_id FROM ".$db_prefix."kategorien WHERE kat_idA=0 ORDER by sort limit 0, 1"; $result=mysql_query($query,$link); $dat=mysql_fetch_array($result); $query="SELECT kat_id FROM ".$db_prefix."kategorien WHERE kat_idA=".$dat["kat_id"]." ORDER by sort limit 0, 1"; $result=mysql_query($query,$link); $datB=mysql_fetch_array($result); $act="cms"; $act2=$dat["kat_id"]; $act3=$datB["kat_id"]; } //$act="Startseite"; switch($act) { case "ajaxInput": require "data/ajaxInput.php"; break; case "cms": require "data/header.php"; require "data/nav.php"; require $lan."/cms.php"; require "data/footer.php"; break; /**********************/ DEFAULT: $BildOrdner="startseite"; require "data/header.php"; require "data/nav.php"; require $lan."/startseite.php"; require "data/footer.php"; break; } ?>