isMobile()) { $_REQUEST['mode'] = "mobile"; header("location: $rootURLm"); exit; } */ include("include/inc_functions.php"); request_session_4_sql_injection("informatie/disclaimer.html"); include("classes/db.class.php"); include("classes/talen_data.class.php"); /* unset($_SESSION[$rootURL]['mogrify']); if(!isset($_SESSION[$rootURL]['mogrify'])) exec('mogrify -version',$yaks); if(!isset($_SESSION[$rootURL]['mogrify']) && isset($yaks) && count($yaks)==3){ // print_r($yaks); $mog = explode(' ',$yaks[0]); $_SESSION[$rootURL]['mogrify'] = $mog[1].' '.$mog[2]; } if (!isset($_SESSION[$rootURL]['mogrify']) && function_exists('imagecopyresampled') ) { $_SESSION[$rootURL]['mogrify'] = "GD(module)"; } if (!isset($_SESSION[$rootURL]['mogrify']) && function_exists('imagecopyresampled') ) { $_SESSION[$rootURL]['mogrify'] = "no image resizer found, please install ImageMagick or GD(module)"; } echo $_SESSION[$rootURL]['mogrify']."
"; */ $TalenData = new talen_data_class; // aanroep class $TalenData->setData( $rootURL ); // data -> naar de class $TalenData->setShowInfo(false); // true geeft class info weer. $taalid = $TalenData->getData(); // haal de taalid uit de class! #print "
";
#print_r($_SESSION['dit']);
#print "
"; if(!isset($_SESSION['hid'])){ $_SESSION['hid'] = $hid = 1; $_SESSION['sid'] = $_SESSION['xid'] = $sid = $xid = 0; }else{ $hid = $_SESSION['hid']; $sid = $_SESSION['sid']; $xid = $_SESSION['xid']; } $crumbs = array(); if(isset($_REQUEST['mode'])) $crumbs[] = $mode = $_REQUEST['mode']; if(isset($_REQUEST['mode2']) && !strpos($_REQUEST['mode2'],"@") && $_REQUEST['mode']!="nieuwsbrief" && $_REQUEST['mode']!="shop" && $_REQUEST['action']!="dl" ) $crumbs[] = $mode = $_REQUEST['mode2']; if(isset($_REQUEST['mode3']) && !is_numeric($_REQUEST['mode3'])) $crumbs[] = $mode = $_REQUEST['mode3']; $crumbs = implode("/",$crumbs)."/"; # print "[$hid $sid $xid]"; # echo "
"; # print "[$crumbs]
"; if(isset($_REQUEST['action'])) $action = $_REQUEST['action']; if(isset($_REQUEST['html']) && ( $mode!="portfolio_categorie" && $mode!="portfolio" && $mode!="fotoalbum" && $mode!="nieuws" )) $mode = 'informatie'; $metakeywords = $metadescription = ""; if (!isset($mode)){ $mode = "default"; } if( !file_exists( $rootDir . "php/_".$mode.".php") ){ header( "HTTP/1.1 404 Not Found" ); header("location: index.php?mode=error&type=404"); exit(); } if ($mode){ $include = "php/_".$mode.".php"; } # ------ [TEKSTEN OP HOMEPAGE 3 KOLOMMEN] ------------------- $ns = "select * from paginas where type ='page' && bestand='1' && pshow = 1 && foto1!='' && taalid=".$_SESSION['taal']->id." ORDER BY pos LIMIT 9"; $nq = mysql_query($ns) or die(mysql_error()); $pagephoto = $pagetitle = $pagelead = $pagelink = array(); if (mysql_num_rows($nq) == 0){ $pagelead[] = getTekst("strTxtGeenItems"); $pagelead[] = getTekst("strTxtGeenItems"); $pagelead[] = getTekst("strTxtGeenItems"); } while ($n = mysql_fetch_array($nq)) { $newshtmllink = make_html_link($n['paginatitel']); $pagetitle[] = $n['paginatitel']; $pagelead[] = stripslashes(strip_tags($n['paginalead'])); $pagephoto[] = $uploadURL."tekst/".$n['foto1']; $pagelink[] = $rootURL."informatie/$newshtmllink.html"; } # --- [ Hoofd&Submenu ] --------------------------------------------- #$PaginaMenuTop = hoofdmenu($_SESSION['taal']->id, false,false); // alleen hoofdmenu #$PaginaMenuTop = hoofdmenu($_SESSION['taal']->id); // uitklap menu #$PaginaMenuTop = $MenuData->getData(); // nieuw mega menu !! #$PMT = megamenu($taalid); #$css = $PMT['css']; $css = ""; #$PaginaMenuTop = $PMT['menu']; $PaginaMenuTop = responsivemenu($_SESSION['taal']->id); // responsive menu #$PaginaMenu = hoofdmenu($_SESSION['taal']->id, false,true); // gesloten uitklap menu #$PaginaMenu = submenu($_SESSION['hid'], false,false); // uitklap submenu $PaginaMenu = hoofdmenu($_SESSION['taal']->id, true); // gesloten uitklap menu include($include); # --- [ Sitemap ] --------------------------------------------- $menu_links[0] = "SELECT `paginas`.`paginatitel`, `hoofdmenus`.`id` AS hid, `hoofdmenus`.`homepage` AS h FROM `hoofdmenus` Inner Join `paginas` ON `paginas`.`paginaid` = `hoofdmenus`.`paginaid` WHERE `paginas`.`paginaid` = "; $menu_links[1] = "SELECT `paginas`.`paginatitel`, `hoofdmenus`.`id` AS hid, `hoofdmenus`.`homepage` AS h, `submenus`.`id` AS sid, `submenus`.`homepage` AS s FROM `hoofdmenus` Inner Join `submenus` ON `hoofdmenus`.`id` = `submenus`.`hoofdmenuid` Inner Join `paginas` ON `paginas`.`paginaid` = `submenus`.`paginaid` WHERE `paginas`.`paginaid` = "; $menu_links[2] = "SELECT `paginas`.`paginatitel`, `hoofdmenus`.`id` AS hid, `hoofdmenus`.`homepage` AS h, `submenus`.`id` AS sid, `submenus`.`homepage` AS s, `extramenus`.`id` AS xid, `extramenus`.`homepage` AS e FROM `hoofdmenus` Inner Join `submenus` ON `hoofdmenus`.`id` = `submenus`.`hoofdmenuid` Inner Join `extramenus` ON `submenus`.`id` = `extramenus`.`hoofdmenuid` Inner Join `paginas` ON `paginas`.`paginaid` = `extramenus`.`paginaid` WHERE `paginas`.`paginaid` = "; $site_map = mysql_query("select * from paginas where type ='page' and pshow = 1 and taalid=".getTekst("id")) or die(mysql_error()); $i = 1;$total_cols = 6; while ($map = mysql_fetch_assoc($site_map)) { $newshtmllink=make_html_link($map['paginatitel']); if(!isset($sitemap["$i"])) $sitemap["$i"] = ""; $menu_linkz[0] = $menu_links[0] . "'".$map['paginaid']."'"; $menu_linkz[1] = $menu_links[1] . "'".$map['paginaid']."'"; $menu_linkz[2] = $menu_links[2] . "'".$map['paginaid']."'"; $new_hid = $new_sid = $new_xid = 0; $home = false; for($ii=0;$ii<3;$ii++){ $onclick = mysql_query($menu_linkz["$ii"]) or die(mysql_error()); $onclick_result = mysql_fetch_assoc($onclick); if($onclick_result){ if( isset($onclick_result['h']) && $onclick_result['h']=='J' || isset($onclick_result['s']) && $onclick_result['s']=='J' || isset($onclick_result['e']) && $onclick_result['e']=='J' ) $home = true; if(isset($onclick_result['hid']) && $onclick_result['hid']) { $new_hid=$onclick_result['hid']; }else{ $new_hid=0; } if(isset($onclick_result['sid']) && $onclick_result['sid']) { $new_sid=$onclick_result['sid']; }else{ $new_sid=0; } if(isset($onclick_result['xid']) && $onclick_result['xid']) { $new_xid=$onclick_result['xid']; }else{ $new_xid=0; } } } if($home == false) { $sitemap["$i"] .= "".htmlentities(stripslashes($map['paginatitel']), ENT_QUOTES, "UTF-8")."
"; $i++; } if($i>=($total_cols+1)) $i=1 ; } # --- [ Nieuwsberichten ] -------------------------------------------- $ns = "select * from paginas where type ='news' && `startdate` <= '$rightnow' && `enddate` >= '$rightnow' && pshow = 1 && taalid=".$_SESSION['taal']->id." ORDER BY RAND() LIMIT 1"; $nq = mysql_query($ns) or die(mysql_error()); $NieuwsContent = ""; if (mysql_num_rows($nq) == 0){ $NieuwsContent .= getTekst("strTxtGeenItems"); } while ($n = mysql_fetch_array($nq)) { $newshtmllink = make_html_link($n['paginatitel']); $NieuwsContent .= "".stripslashes($n['paginatitel'])."
"; $NieuwsContent .= "".strftime("%d-%m-%Y", $n['startdate'])." "; $NieuwsContent .= stripslashes(strip_tags($n['paginalead']))." "; //".$n['paginaid']."/ #$NieuwsContent .= "Lees verder »
"; $NieuwsLink = "

Lees verder »

"; } # --- [ Vraagbaak ] -------------------------------------------- $query = mysql_query("select * from vraagbaak where antwoord!='' order by rand() limit 3") or die(mysql_error()); $VraagBaak = ""; while ($v = mysql_fetch_array($query)) { $newshtmllink = make_html_link( $v['naam'] ) ; $VraagBaak .= '
'.$v['naam'].'
'.substr(strip_tags($v['vraag']),0,190).'...
Lees verder »
'; } # ---[ Portfolio ]--------------------------------------------------------------------------------------------------------- $pselect = "select * from portfolio ORDER BY RAND() LIMIT 1"; $pquery = mysql_query($pselect) or die(mysql_error()); $PortfolioContent = ""; while($p = mysql_fetch_array($pquery)){ $PortfolioContent .= "
".stripslashes($p['titel'])."".stripslashes($p['omschrijving']); for($i=1;$i<7;$i++){ $viewpic = "foto$i"; if ($p[$viewpic] != "") { // class="thumbnail fancybox" rel="ligthbox" /* $PortfolioContent .= "
"; // data-lightbox=\"true\" $PortfolioContent .= ""; $PortfolioContent .= "\"\""; $PortfolioContent .= ""; $PortfolioContent .= "
"; */ $PortfolioContent .= "
"; $PortfolioContent .= " \"\" "; $PortfolioContent .= "
"; } } $PortfolioContent .= "
"; } # --- [ Agenda ] -------------------------------------------- $ns = "select * from paginas where type ='event' && `startdate_tonen` <= '".time()."' && `enddate_tonen` >= '".time()."' && pshow = 1 && taalid=".$_SESSION['taal']->id." ORDER BY startdate desc"; $nq = mysql_query($ns) or die(mysql_error()); $AgendaContent = ""; if (mysql_num_rows($nq) == 0){ $AgendaContent .= "-"; } while ($n = mysql_fetch_array($nq)) { $newshtmllink = make_html_link($n['paginatitel']); $AgendaContent .= "
".stripslashes($n['paginatitel'])."
"; $AgendaContent .= "".strftime("%d-%m-%Y", $n['startdate'])."

"; } # ---[ Wiki ]--------------------------------------------------------------------------------------------------------- $pselect = "select * from wiki ORDER BY RAND() LIMIT 6"; $pquery = mysql_query($pselect) or die(mysql_error()); $Wiki = ""; while($p = mysql_fetch_array($pquery)){ $wikihtmllink = make_html_link( $p['naam'] ) ; //'.$p['id'].'/ $Wiki .= '
'.$p['naam'].'
'; } //# ---[ tagcloud ]--------------------------------------------------------------------------------------------------------- $tagcloud ='
This will be shown to users with no Flash or Javascript.
'; $tagcloud = ""; # --- [ Headers ] --------------------------------------------- $img = $sliders = ""; $nq = mysql_query("select * from headers ORDER BY RAND()") or die(mysql_error()); while ($n = mysql_fetch_array($nq)) { //$sliders .= '
  • '; // $sliders .= ''; $img[] = $uploadURL."headers/".$n['header']; #$sliders .= '
    '; } # --- [ Banner ] --------------------------------------------- $banner = ""; $query = mysql_query("select * from banners") or die(mysql_error()); if(mysql_num_rows($query)){ while ($result = mysql_fetch_assoc($query)) { if($result['foto1']!=""){ $bannerT = ""; // height=\"90px\" if($result['url']!=""){ $bannerT = "$bannerT"; } $banner .= "
    $bannerT
      "; }else{ $banner .= "
       Ruimte voor banner.
    "; } } }else{ $banner .= "
       Ruimte voor banner.
    "; } # --------------------------------------------------------------------- if ($mode == "default"){ if (file_exists("templates/home_".$_SESSION['taal']->code.".php")){ $filename = "home_".$_SESSION['taal']->code.".php"; }else{ $filename = "home_nl.php"; } }else{ if(file_exists("templates/".$mode."_".$_SESSION['taal']->code.".php")){ $filename = $mode."_".$_SESSION['taal']->code.".php"; }elseif(file_exists("templates/$mode.php")){ $filename = "$mode.php"; }elseif(file_exists("templates/template_".$_SESSION['taal']->code.".php")){ $filename = "template_".$_SESSION['taal']->code.".php"; }else{ $filename = "template.php"; } } # echo $filename; include("templates/".$filename); ?>