id ) ) || ( isset($_SESSION['site']) && $_SESSION['site']!=$rootURL )){ $taalid = 1; } if (!isset($_SESSION['taal']) || $_SESSION['site']!=$rootURL) { $_SESSION['site']=$rootURL; // Instellingen ophalen en in array plaatsen. $strSql = "select code from talen where id=$taalid"; $queryt = mysql_query($strSql) or die(mysql_error()); $rtc = mysql_fetch_array($queryt); $_SESSION['taal']->id = $taalid; $_SESSION['taal']->code = $rtc['code']; $strSql = "select d.waarde, lower(t.code) as code from talen_data d inner join talen_tekstcodes t on t.id=d.tekstcodeid where taalid=$taalid;"; $queryt = mysql_query($strSql) or die(mysql_error()); $taaldata = array(); while ($rt = mysql_fetch_array($queryt)) { $_SESSION['taal']->$rt['code'] = $rt['waarde']; } } else { if ($taalid) { // Instellingen ophalen en in array plaatsen. $strSql = "select code from talen where id=$taalid"; $queryt = mysql_query($strSql) or die(mysql_error()); $rtc = mysql_fetch_array($queryt); if ($_SESSION['taal']->code != $rtc['code']) { session_unregister("taal"); $_SESSION['taal']->id = $taalid; $_SESSION['taal']->code = $rtc['code']; $strSql = "select d.waarde, lower(t.code) as code from talen_data d inner join talen_tekstcodes t on t.id=d.tekstcodeid where taalid=$taalid;"; $queryt = mysql_query($strSql) or die(mysql_error()); $taaldata = array(); while ($rt = mysql_fetch_array($queryt)) { $_SESSION['taal']->$rt['code'] = $rt['waarde']; } } } } $PaginaTitel = ""; if(isset($_REQUEST['mode'])) $mode = $_REQUEST['mode']; if(isset($_REQUEST['action'])) $action = $_REQUEST['action']; if(isset($_REQUEST['hid'])) $hid = nvl($_REQUEST['hid'], 0); if(isset($_REQUEST['sid'])) $sid = nvl($_REQUEST['sid'], 0); if( !isset($hid) && !isset($sid)) $hid = $sid = 0; #echo "$sid $hid
$mode ".$_REQUEST['sid']."-".$_REQUEST['hid']."
"; #print "
";
#print_r($_REQUEST);
#print_r($_SESSION);
#print "
"; $metakeywords = $metadescription = ""; if (!isset($mode)) { $mode = "default"; } if ($mode) { $include = "php/_".$mode.".php"; } include($include); # --- [ Hoofd&Submenu ] --------------------------------------------- $hm_select = "select * from paginas where parent_pid = 0 and paginaid > 1 and pshow = '1' and type = 'page' and taalid=".getTekst("id")." order by pos"; $hm_query = mysql_query($hm_select); $strSQL = "select h.id, h.soortlink, h.url, h.paginaid, h.homepage, h.hoofdmenu, p.paginatitel from hoofdmenus h left join paginas p on p.paginaid=h.paginaid where h.taalid=".$_SESSION['taal']->id; $hm_query = mysql_query($strSQL) or die(mysql_error()); $PaginaMenu = ""; $PaginaMenu .= "
"; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; //$PaginaMenu .= " "; while($hm = mysql_fetch_array($hm_query)) { $hoofdmenu = stripslashes($hm['hoofdmenu']); $htmllink=preg_replace("/[^A-Z0-9_\-\.]+/i", "_", $hm['hoofdmenu']); $htmllink=preg_replace("/_{2,}/", "_", $htmllink); switch ($hm['soortlink']) { case "geen": $strURL = "javascript:void(0);"; break; case "url": $strURL = $rootURL.$hm['url']; break; case "tekst": if ($hm['homepage'] == "J") { $strURL = $rootURL; } else { $strURL = $rootURL."0/0/tekst/".$hm['paginaid']."/".$htmllink.".html"; } break; } $PaginaMenu .= "\n"; } //$PaginaMenu .= ""; //inloggen voor gebruikers /* if ($_SESSION[ustatus] > 0 and $_SESSION[uid] != "") { $PaginaMenu .= "\n"; $PaginaMenu .= "\n"; } else { $PaginaMenu .= "\n"; } */ //$PaginaMenu .= " "; //$PaginaMenu .= ""; //$PaginaMenu .= " "; #$PaginaMenu .= " "; #$PaginaMenu .= " "; #$PaginaMenu .= "
".getTekst("strTxtHome")."
".getTekst("strMenuAgenda")."
".getTekst("strMenuFotoalbum")."
".getTekst("strMenuNieuws")."
".getTekst("strMenuProdukten")."
    ".$hoofdmenu."
".getTekst("strMenuLeden")."
".getTekst("strMenuUitloggen")."
".getTekst("strMenuInloggen")."
|
"; #$PaginaMenu .= "
"; $PaginaMenu .= "\n"; # --- [ Nieuwsberichten ] -------------------------------------------- $ns = "select * from paginas where type ='news' && `startdate` < '$rightnow' && `enddate` > '$rightnow' && pshow = 1 order by startdate desc"; $nq = mysql_query($ns) or die(mysql_error()); while ($n = mysql_fetch_array($nq)) { $n_titel[] = stripslashes($n['paginatitel']); $n_text[] = stripslashes($n['paginalead']); $n_date[] = strftime("%d-%m-%Y", $n['startdate']); $newshtmllink = preg_replace("/[^A-Z0-9_\-\.]+/i", "_", $n['paginatitel']); $newshtmllink = preg_replace("/_{2,}/", "_", $newshtmllink); $n_url[] = $rootURL."0/0/nieuws/$n[paginaid]/$newshtmllink.html"; } /* $ns = "select * from paginas where type ='news' && `startdate` < '$rightnow' && `enddate` > '$rightnow' && pshow = 1 && taalid=".getTekst("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=preg_replace("/[^A-Z0-9_\-\.]+/i", "_", $n['paginatitel']); $newshtmllink=preg_replace("/_{2,}/", "_", $newshtmllink); $NieuwsContent .= "".stripslashes($n['paginatitel'])."
"; $NieuwsContent .= "".strftime("%d-%m-%Y", $n['startdate'])." "; $NieuwsContent .= stripslashes(strip_tags($n['paginalead']))." "; $NieuwsContent .= "Lees verder »
"; } */ # --- [ Vraagbaak ] -------------------------------------------- // $query = mysql_query("select * from vraagbaak_q where status = 'show' order by rand() limit 3") or die(mysql_error()); // // $VraagBaak = ""; // // while ($v = mysql_fetch_array($query)) // { // // $newshtmllink=preg_replace("/[^A-Z0-9_\-\.]+/i", "_", $v['naam']); // $newshtmllink=preg_replace("/_{2,}/", "_", $newshtmllink); // // $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 .= "
"; } # --- [ 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"]."' }"; } # --------------------------------------------------------------------- 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"; } #echo $filename; include("templates/".$filename); ?>