if (!window.OX_ads) { OX_ads = []; } OX_ads.push({ "auid" : "418330" }); END; $BANNER=<< END; if (strpos($_SERVER['HTTP_HOST'],"ww.") >0 ) { $server= str_replace("www.","", $_SERVER['HTTP_HOST']); $location = "http://".$server."/$url"; header ('HTTP/1.1 301 Moved Permanently'); header ('Location: '.$location); exit; } if (is_numeric($surl1)) { if ($surl1 > 2030 or $surl1 <= 2010) { $jaar = date('Y'); $location = "/$jaar/kalender.html"; header("HTTP/1.0 404 Not Found"); header ('Location: '.$location); } } $zoek = htmlentities(($surl1)); if (!recursive_array_search($zoek,$feestdag) and $surl2<>"kalender.html") { $testmaand = ucwords(str_replace(".html","", $surl2 )); if ( array_search ($testmaand , $maanden ) ) { $maandnummer = array_search ($testmaand , $maanden ); $maandcal=true; } else { $jaar = date('Y'); $location = "/$jaar/kalender.html"; header("HTTP/1.0 404 Not Found"); header ('Location: '.$location); exit; } } if ($surl2=="kalender.html") { include ($_SERVER['DOCUMENT_ROOT'].'/top-kalender.php') ; include ($_SERVER['DOCUMENT_ROOT'].'/subtop.php') ; include ($_SERVER['DOCUMENT_ROOT'].'/kalender.php'); } else { if ($maandcal) { include ($_SERVER['DOCUMENT_ROOT'].'/top-maandkalender.php') ; include ($_SERVER['DOCUMENT_ROOT'].'/subtop.php') ; include ($_SERVER['DOCUMENT_ROOT'].'/maandoverzicht.php'); } else { include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/subtop.php') ; include ($_SERVER['DOCUMENT_ROOT'].'/overzicht.php'); } } include ($_SERVER['DOCUMENT_ROOT'].'/bottom.php'); function recursive_array_search($needle,$haystack) { foreach($haystack as $key=>$value) { $current_key=$key; if (is_array($value)) $val = recursive_array_search($needle,$value,$jaar); if($needle===$value OR ($val != false and $val != NULL)) { if($val==NULL){ return array($current_key); } return array_merge(array($current_key), $val); } } return false; } ?>