header("location:http://www.alpinesicherheit.at/"); die(); if($_SERVER['SERVER_NAME']=="www.alpinforum.info") header("location:http://www.alpinesicherheit.at/index.php?menuid=2400"); if($_SERVER['SERVER_NAME']=="www.alpinmesse.info") header("location:http://www.alpinesicherheit.at/index.php?menuid=4"); include("config.php"); if(!isset($menuid)) $menuid=10; if($menuid=="1") $menuid=73; //if($menuid=="2168") $menuid=2321; if(ismother($menuid) && $menuid!=0 || $menuid=="73") { $sql="SELECT * FROM menu where mother='".mysql_real_escape_string($menuid)."' order by reihe ASC"; $res=mysql_query($sql,$conn); if(mysql_num_rows($res)!=0) { $dat=mysql_fetch_array($res); $menuid=$dat['id']; } } $sqltpl="SELECT * FROM menu where id='".mysql_real_escape_string($menuid)."'"; $restpl=mysql_query($sqltpl,$conn); if(mysql_num_rows($restpl)==0) { $menuid=10; $template="tpl10.php"; } else { $dattpl=mysql_fetch_array($restpl); $template="tpl".$dattpl['template'].".php"; } $active4=0; if(!ismother($menuid)) { $sql="SELECT * FROM menu where id='".mysql_real_escape_string($menuid)."'"; $res=mysql_query($sql,$conn); $dat=mysql_fetch_array($res); $sql="SELECT * FROM menu where id='".$dat['mother']."'"; $res=mysql_query($sql,$conn); $dat=mysql_fetch_array($res); if(!ismother($dat['id'])) { $sql="SELECT * FROM menu where id='".$dat['mother']."'"; $res=mysql_query($sql,$conn); $dat2=mysql_fetch_array($res); if(!ismother($dat2['id'])) { $sql="SELECT * FROM menu where id='".$dat2['mother']."'"; $res=mysql_query($sql,$conn); $dat3=mysql_fetch_array($res); $active1=$dat3['id']; $active2=$dat2['id']; $active3=$dat['id']; $active4=1; } else { $active1=$dat2['id']; $active2=$dat['id']; $active3=$menuid; } } else { $active1=$dat['id']; $active2=$menuid; $active3=0; } } else { $active1=$menuid; $active2=0; $active3=0; } if($menuid==10) $active=10; else $active=$active1; if($menuid==165) $active=10; else $active=$active1; $anzeige=$menuid; if(($dattpl['template']=="2" || $dattpl['template']=="1") && isset($detail)) { $sql="SELECT * FROM menu where id='".mysql_real_escape_string($detail)."'"; $res=mysql_query($sql,$conn); $dat=mysql_fetch_array($res); $template="tpl".$dat['template'].".php"; $anzeige=$detail; } if(isset($login2)) { setcookie ("login",$login2 ,null,"/"); setcookie ("pass",md5($pass2),null,"/"); $pass=md5($pass2); $login=$login2; } if($active2=="9") { if(!isset($login) || !isset($pass) || (($login!="alpinesicherheit" || $pass!=md5("securealps")) && ($login!="alp" || $pass!="2005"))) { header("location: auth.php"); exit(); } } ?>
if(!ismother($menuid) && !$active3==0)
{
?>
} ?>
if(!ismother($menuid) && !$active3==0)
{
?>
} ?>
if(!ismother($menuid) && !$active3==0)
{
?>
} ?>
if($active4==0 && $menuid!=0 && $active2!=0)
{
?>
} ?>
if(!ismother($menuid))
{
?>
} ?>