"; */ $TalenData = new talen_data_class; // aanroep class $TalenData->setData( $_REQUEST, $_SESSION, $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'])){ $hid = $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" ) $crumbs[] = $mode = $_REQUEST['mode2']; if(isset($_REQUEST['mode3']) && !is_numeric($_REQUEST['mode3'])) $crumbs[] = $mode = $_REQUEST['mode3']; $crumbs = implode("/",$crumbs)."/"; # print "[$hid $sid $xid]"; # print_r($_REQUEST); # echo "
"; # print "[$crumbs]
"; if(isset($_REQUEST['action'])) $action = $_REQUEST['action']; $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"; } include($include); # --- [ Hoofd&Submenu ] --------------------------------------------- #$PaginaMenuTop = hoofdmenu($_SESSION['taal']->id, false,false); // alleen hoofdmenu $PaginaMenuTop = hoofdmenu($_SESSION['taal']->id); // uitklap 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 # --- [ 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 = 5; 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 »
"; } # --- [ 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<8;$i++){ $viewpic = "foto$i"; if ($p[$viewpic] != "") { $PortfolioContent .= "
"; $PortfolioContent .= ""; $PortfolioContent .= "\"\""; $PortfolioContent .= ""; $PortfolioContent .= "
"; } } $PortfolioContent .= "
"; } # ---[ 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 ] --------------------------------------------- unset($Headers);$komma = $Headers = ""; $nq = mysql_query("select * from headers ORDER BY RAND()") or die(mysql_error()); while ($n = mysql_fetch_array($nq)) { $up_down = array ('up','down'); $welke = rand(0,count($up_down)-1); $up_down[$welke]; if(isset($Headers) && $Headers) $komma = ", \n"; $Headers .= "$komma { src: '".$uploadURL."headers/".$n['header']."', dir: '".$up_down["$welke"]."' }"; } # $Headers = ""; # --- [ Banner ] --------------------------------------------- $query = mysql_query("select * from banners order by RAND() LIMIT 1") or die(mysql_error()); $result = mysql_fetch_assoc($query); if($result['foto1']!=""){ $banner = ""; // height=\"90px\" width=\"420px\" if($result['url']!=""){ $banner = "$banner"; } $banner = "
$banner
  "; }else{ $banner = "
   Ruimte voor banner.
"; } # --------------------------------------------------------------------- if ($mode == "default"){ if (!file_exists("templates/home_".$_SESSION['taal']->code.".php")){ $filename = "home_nl.php"; }else{ $filename = "home_".$_SESSION['taal']->code.".php"; } }else{ if (!file_exists("templates/template_".$_SESSION['taal']->code.".php")) { $filename = "template.php"; }else{ $filename = "template_".$_SESSION['taal']->code.".php"; } } #echo $filename; include("templates/".$filename); ?>