$value ) { if ( !empty($value) ) { //echo '.'.$key.'=>'.$value.'
'; $_GET[$baseOptions[$count]] = $value; $_REQUEST[$baseOptions[$count]] = $value; $QUERY_STRING .= '&'.$baseOptions[$count].'='.$value; $count++; } } $_SERVER['QUERY_STRING'] = htmlspecialchars($QUERY_STRING); $REQUEST_URI = "index.html?".htmlspecialchars($QUERY_STRING); $_SERVER['REQUEST_URI'] = $REQUEST_URI; // Fill in the variables needed by original system if ( empty($_GET['een']) ){ /* Zoek naam HomePage*/ $resulthomepage=mysql_query("select navigatie_name FROM navigatie WHERE navigatie_ID='1'"); { while(list($nav_home) = mysql_fetch_array($resulthomepage)) { $nav_home=$nav_home; $_GET['een']=$nav_home; $_GET['naam1'] = str_replace('.html','',$_GET['een']); $naam1=$_GET['naam1']; $naam1=URLdecode($naam1); }}//HomePage }//if ( empty($_GET['een']) ){ $_GET['l'] = $_GET['een']; // Niveau 1 if ( strstr($_GET['een'],'.html') ) $_GET['naam1'] = str_replace('.html','',$_GET['een']); $naam1=$_GET['naam1']; $naam1=URLdecode($naam1); $resultnav1=mysql_query("select navigatie_ID FROM navigatie WHERE navigatie_name='$naam1' AND navigatie_level='1'"); { while(list($nav_ID) = mysql_fetch_array($resultnav1)) { $_GET['nav_ID']=$nav_ID; }}//$resultnav1 $nav_ID=$_GET['nav_ID']; // Niveau 2 if ( strstr($_GET['twee'],'.html') ) { $_GET['naam1'] = $_GET['een']; $_GET['naam2'] = str_replace('.html','',$_GET['twee']); $naam2=$_GET['naam2']; $naam1=$_GET['naam1']; $naam2=URLdecode($naam2); $naam1=URLdecode($naam1); $resultnav1=mysql_query("select navigatie_id FROM navigatie WHERE navigatie_name='$naam1' AND navigatie_level='1'"); { while(list($nav_ID) = mysql_fetch_array($resultnav1)) { $_GET['nav_ID']=$nav_ID; }}//$resultnav1 $resultnav1=mysql_query("select navigatie_ID FROM navigatie WHERE navigatie_name='$naam2' AND navigatie_level='2'"); { while(list($nav_ID2) = mysql_fetch_array($resultnav1)) { $_GET['nav_ID2']=$nav_ID2; }}//$resultnav1 $nav_ID=$_GET['nav_ID']; $nav_ID2=$_GET['nav_ID2']; } //print_r($_GET); //exit(); $_naam1 = $_GET['naam1']; //$_GET['naam2']=$naam2; unset($_GET['option']); unset($_GET['een']); unset($_GET['twee']); echo << END; $result2=mysql_query("select navigatie_name,navigatie_description,navigatie_keywords FROM navigatie WHERE navigatie_ID='$nav_ID'"); { while(list($title,$description,$navigatie_keywords) = mysql_fetch_array($result2)) { $description=stripslashes($description); $title=stripslashes($title); echo <<Praktijk voor Psychologie Prins $title END; }}//$result2 echo <<