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); # 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 = Extended_Menu($_SESSION['taal']->id, "top" ); // $PaginaMenu = Extended_Menu($_SESSION['taal']->id, "close" ); #$PaginaMenu = Extended_Menu($_SESSION['taal']->id, "open" ); #$PaginaMenu = Extended_Menu($_SESSION['taal']->id, "menu" ); #if ($mode != "default"){ $PaginaMenu = Extended_Menu($_SESSION['taal']->id, "submenu" ); } # --- [ Nieuwsberichten ] -------------------------------------------- if($mode!="nieuws"){ $ns = "select * from paginas where type ='news' && `startdate` < '$rightnow' && `enddate` > '$rightnow' && pshow = 1 && taalid=".$_SESSION['taal']->id." ORDER BY paginaid DESC LIMIT 5"; $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 »
"; //UPDATE HMH 2010-04-02: niet meer striptags! $NieuwsContent .= '
'.stripslashes($n['paginatitel']).'
'.strftime("%d-%m-%Y", $n['startdate']).' '.stripslashes($n['paginalead']). ' 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.
'; */ # --- [ 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 (!file_exists("templates/template_".$_SESSION['taal']->code.".php")) { $filename = "template.php"; }else{ $filename = "template_".$_SESSION['taal']->code.".php"; } if ($mode == "default"){ $filename = "home_".$_SESSION['taal']->code.".php"; } if($mode == "contact") $filename = "contact.php"; #echo $filename; include("templates/".$filename); ?>