0) extract(${'HTTP_GET_VARS'}, EXTR_OVERWRITE); $checkvar_slui_conf = true; include_once("config/config.inc.php"); include_once("function/sqlfunc_site.php"); $sqlid = mysql_connect($host, $username, $password); foreach($_REQUEST as $x => $y) { ${$x} = $y; } // basic definitions $defaulturl = "public/"; $defaulttype = "tekst"; $defaultpageid = 11; $found = false; $titel_after = " - Administratie- en advieskantoor J. van der Sluis"; //if (!in_array($language,$beschikbare_talen)) $language = $defaulttaal; $pageid = ($pageid <> ''?$pageid:$defaultpageid); $query_tekst = "SELECT menu.idparent, menu.idmenu id, menu.naam_".$language." as 'naam', hoofdmenu.naam_".$language." as 'naam_hoofdpagina', menu.titel_".$language." as 'titel', menu.tekst_".$language." as 'tekst', taal.item_naam as 'taal', menu.afbeelding_links, menu.afbeelding_rechts FROM ".$pre_table."menu as `menu` LEFT JOIN ".$pre_table."dimensions as `taal` on taal.id = menu.taal LEFT JOIN ".$pre_table."menu as `hoofdmenu` on hoofdmenu.idmenu = menu.idparent WHERE menu.idmenu = '".$pageid."' and str_to_date(menu.vandatum, '%d-%m-%Y' )<= curdate() and str_to_date(menu.tmdatum, '%d-%m-%Y' ) >= curdate()"; $result_tekst = execute($query_tekst,$sqlid); $tekst = mysql_fetch_object($result_tekst); $pagina_categorie = ($pagina_categorie == ""?$tekst->categorie:$pagina_categorie); $titel_pagina = ($tekst -> titel <> ""?$tekst->titel:$tekst->naam); $xhtml_tekst = html_to_xhtml($tekst -> tekst); $afbeelding_links = $tekst->afbeelding_links; $afbeelding_rechts = $tekst->afbeelding_rechts; $parent = ($tekst->idparent<> 0?$tekst->idparent:$tekst->id); //einde tekst include_once("includes/menu.php"); ?> <?PHP echo $titel_pagina.$titel_after;?> ":"");?>
"" and $type <> "tekst") { $k = $type; if (strpos($k,":")=== false) // no other drive if ((strpos($k,"..")===false)&&(strpos($k,"__")===false)) // no dir back { if ($session_pageid == "") $pageid = $defaultpageid; if (strrpos($k,"/")==(strlen($k)-1)) $k.="tekst"; $document= "public/".$k.".php"; $k=$defaulturl.$k.".php"; if (file_exists($document)) { include($document); // $k.$v)only the first input $found = true; } else $found = false; } } if (!$found) { ?>

"); echo "
"; } ?>
 
":"");?>
]*>)/e", "strtolower('\\1').'\\2'", $html_body)); // Add end slashes to tags $html_body = stripslashes(preg_replace("/<(br|hr|img|link|meta){1}([^(\/|>)]*)(>)/e", "'<\\1\\2 /\\3'", $html_body)); // Attributes to lowercase (better match would be nice) $html_body = stripslashes(preg_replace("/(\ \w+\=)([\'\"]{1})/e", "strtolower('\\1').'\\2'", $html_body)); return $html_body; } mysql_close($sqlid); ?>