titel) != "home"){ $db_titel_decode = str_replace(' ','_',strtolower($home_row->titel)); header("Location: index.php?page=".$db_titel_decode); } } } $page_check_query = mysql_query("SELECT * FROM `dijkhoek1_pagina` WHERE titel='".$titel_decode2."'") or die (mysql_error()); $page_check_sum = mysql_num_rows($page_check_query); if($page_check_sum == "1"){ while ($db_pages_row=mysql_fetch_object($page_check_query)) { $db_pages_text = $db_pages_row->text; } } else{ if(!file_exists($_GET['page'].".php")){ $db_pages_text = "Ongeldige pagina"; $title_img = "\"404"; $titel_decode2 = "404 error"; } } echo" ".$naam_website."

"; $menu_query = mysql_query("SELECT * FROM `dijkhoek1_pagina` WHERE zichtbaar='true' AND intern='false' ORDER BY id ASC") or die (mysql_error()); while ($menu_row=mysql_fetch_object($menu_query)) { $menu_titel_decode = str_replace(' ','_',strtolower($menu_row->titel)); echo" ".htmlentities($menu_row->titel)."
"; } if($menu_agenda == true){ echo" Agenda
"; } if($menu_fotoboek == true){ echo" Fotoboek
"; } if(mysql_real_escape_string($_SESSION['vsa1']) == true AND $menu_fotoboek_intern == true){ echo" Fotoboek Intern
"; } if($menu_contact == true){ echo" Contact
"; } echo"
"; if(mysql_real_escape_string($_SESSION['vsa1']) == true){ $menu_query = mysql_query("SELECT * FROM `dijkhoek1_pagina` WHERE zichtbaar='true' AND intern='true' ORDER BY id ASC") or die (mysql_error()); while ($menu_row=mysql_fetch_object($menu_query)) { $menu_titel_decode = str_replace(' ','_',strtolower($menu_row->titel)); echo" ".htmlentities($menu_row->titel)."
"; } echo" Uitloggen "; } else{ echo" Ledenpagina "; } echo"

Buurtvereniging
Paasvuurbouwers
Vrijetijds Team Dijkhoek

".ucwords($titel_decode2)."

"; if(file_exists($_GET['page'].".php")){ include($_GET['page'].".php"); } else{ echo ($db_pages_text); } echo"

"; ?>