1 and pshow = '1' and type = 'page' and taalid=".getTekst("id")." order by pos"; $hm_query = mysql_query($hm_select); $strSQL = "select h.id, h.soortlink, h.url, h.paginaid, h.homepage, h.hoofdmenu, p.paginatitel from hoofdmenus h left join paginas p on p.paginaid=h.paginaid where h.taalid=".$_SESSION['taal']->id; $hm_query = mysql_query($strSQL) or die(mysql_error()); $PaginaMenu = ""; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; while($hm = mysql_fetch_array($hm_query)) { $hoofdmenu = stripslashes($hm[hoofdmenu]); $htmllink=preg_replace("/[^A-Z0-9_\-\.]+/i", "_", $hm[hoofdmenu]); $htmllink=preg_replace("/_{2,}/", "_", $htmllink); switch ($hm[soortlink]) { case "geen": $strURL = "javascript:void(0);"; break; case "url": $strURL = $rootURL.$hm[url]; break; case "tekst": if ($hm[homepage] == "J") { $strURL = $rootURL; } else { $strURL = $rootURL."tekst/".$hm[paginaid]."/".$htmllink.".html"; } break; } $PaginaMenu .= "\n"; } //$PaginaMenu .= ""; //inloggen voor gebruikers /* if ($_SESSION[ustatus] > 0 and $_SESSION[uid] != "") { $PaginaMenu .= "\n"; $PaginaMenu .= "\n"; } else { $PaginaMenu .= "\n"; } */ //$PaginaMenu .= " "; //$PaginaMenu .= ""; //$PaginaMenu .= " "; $PaginaMenu .= " "; $PaginaMenu .= "
".getTekst("strTxtHome")."
".getTekst("strMenuAgenda")."
".getTekst("strMenuFotoalbum")."
".getTekst("strMenuNieuws")."
".getTekst("strMenuProdukten")."
".$hoofdmenu."
".getTekst("strMenuLeden")."
".getTekst("strMenuUitloggen")."
".getTekst("strMenuInloggen")."
|
\n"; $PaginaMenu = createMenu("J", $_SESSION['taal']->id); /* Contactinfo Footer ofzo */ $PaginaFooter = "\n"; $PaginaFooter .= "\n"; $PaginaFooter .= "\n"; $PaginaFooter .= ""; $PaginaFooter .= "\n"; $PaginaFooter .= ""; $PaginaFooter .= "\n"; $PaginaFooter .= ""; $PaginaFooter .= ""; $PaginaFooter .= ""; $PaginaFooter .= ""; $PaginaFooter .= ""; $PaginaFooter .= "
\n"; $PaginaFooter .= "\"".getTekst("strTxtMailons")."\"\n"; $PaginaFooter .= "".getTekst("strTxtMailons")."\n"; $PaginaFooter .= "\n"; $PaginaFooter .= "\"".getTekst("strTxtTelefoon")."\"\n"; $PaginaFooter .= getTekst("strTxtTelefoonnummer")."\n"; $PaginaFooter .= "\n"; $PaginaFooter .= "\"".getTekst("strTxtPrintdezepagina")."\"\n"; $PaginaFooter .= "".getTekst("strTxtPrintdezepagina")."\n"; $PaginaFooter .= "\n"; $PaginaFooter .= "".getTekst("strTxtContact")."\n"; $PaginaFooter .= "|\n"; $PaginaFooter .= "".getTekst("strTxtDisclaimer")."\n"; $PaginaFooter .= "
"; /* Nieuws */ $NieuwsQuery = mysql_query("select * from paginas where type='news' order by paginaid desc limit 3")or die(mysql_error()); while ($NieuwsResult = mysql_fetch_assoc($NieuwsQuery)) { $PaginaNieuws .= ""; $PaginaNieuws .= $NieuwsResult['paginatitel']."
"; $PaginaNieuws .= "
"; $PaginaNieuws .= $NieuwsResult['paginalead']."
"; $PaginaNieuws .= ""; $PaginaNieuws .= getTekst("strTxtLeesverder"); $PaginaNieuws .= "

"; } $NieuwsQueryMenu = mysql_query("select * from paginas where type='news' order by paginaid desc")or die(mysql_error()); while ($NieuwsResultMenu = mysql_fetch_assoc($NieuwsQueryMenu)) { $PaginaNieuwsHeaders .= ""; $PaginaNieuwsHeaders .= $NieuwsResultMenu['paginatitel']." »
"; $PaginaNieuwsHeaders .= "
"; } /* Portfolio */ $strSql = "select * from portfolio where reid != '$reid' and foto1 != '' order by rand() limit 0,3"; $queryp = mysql_query($strSql) or die(mysql_error()); $aantalp = mysql_num_rows($queryp); $PortfolioContent = ""; while ($rp = mysql_fetch_array($queryp)) { $thumbsize = getimagesize("$uploadDir/thumbs/$rp[foto1]"); $PortfolioContent .= ""; $PortfolioContent .= " "; $PortfolioContent .= ""; $PortfolioContent .= ""; $PortfolioContent .= " "; $PortfolioContent .= ""; $PortfolioContent .= ""; } $PortfolioContent .= "
"; $PortfolioContent .= " "; $PortfolioContent .= " \"".stripslashes($bsm[titel])."\""; $PortfolioContent .= "
"; $PortfolioContent .= " ".stripslashes($rp[titel]).""; $PortfolioContent .= "
 
"; if (!file_exists("templates/template_".$_SESSION['taal']->code.".php")) { $filename = "template.php"; } else { $filename = "template_".$_SESSION['taal']->code.".php"; } if ($mode == "default") { $filename = "home_".$_SESSION['taal']->code.".php"; } if ($mode == "news") { $filename = "templatenews_".$_SESSION['taal']->code.".php"; } include("templates/".$filename); ?>