require_once('bcms/bcms.lib.php'); ini_set('display_errors',1); error_reporting(E_ERROR | E_WARNING | E_PARSE); // send all to the WWW subdomain if (strpos($_SERVER["HTTP_HOST"], 'www') === false) { ///echo $_SERVER["HTTP_HOST"]; header("Location: https://www.bimloket.nl/main.php", true, 301); exit(); } $cid = intval($_REQUEST['cid']); $mode = $_REQUEST['mode']; $id = intval($_REQUEST['id']); mysql_set_charset("utf8"); // check redirected $rrr = mysql_fetch_assoc(mysql_query("select redir_id from bcms_content where id = '{$cid}'")); if ($rrr['redir_id'] > 0) { $newurl = bcms_seo_links('main.php?cid=' . $rrr['redir_id']); header("Location: $newurl", true, 301); exit(); } $lang = 'nl'; if ($_COOKIE['lang'] == 'en') { $lang = 'en'; } if ($_COOKIE['lang'] == 'de') { $lang = 'de'; } if ($mode == 'setlang') { $newlang = $_GET['lang']; setcookie('lang', $newlang); if ($newlang == 'nl') { header("location: main.php?cid=10"); // nl home } if ($newlang == 'en') { header("location: main.php?cid=13"); // en home } if ($newlang == 'de') { header("location: main.php?cid=13"); // de home } exit(); } if ($cid == 0 && !$mode) { $cid = 10; } if ($mode == 'logon') { $username = mysql_real_escape_string($_REQUEST['username']); $rsu = mysql_query("select * from bim_usr where username = '{$username}'"); if (mysql_num_rows($rsu) == 0) { header("location: main.php?mode=login_err"); exit(); } else { $rru = mysql_fetch_assoc($rsu); if (sha1($rru['salt'] . $_REQUEST['pass']) == $rru['secupass']) { // valid login, check active if ($rru['act'] == 0) { header("location: main.php?mode=login_inact"); exit(); } else { setcookie('uid', $rru['id']); setcookie('secupass', $rru['secupass']); header("location: main.php?mode=welcome"); exit(); } } else { header("location: main.php?mode=login_err"); exit(); } } } if ($mode == 'logoff') { setcookie('uid', ''); setcookie('secupass', ''); header("location: main.php?mode=logged_out"); exit(); } function val_user($id, $secupass) { $id = intval($id); $rs = mysql_query("select * from bim_usr where id = '{$id}' "); if (mysql_num_rows($rs) == 1) { $rr = mysql_fetch_assoc($rs); if ($rr['secupass'] == $secupass) { return $rr; } else { return false; } } else { return false; } } $aUsr = val_user($_COOKIE['uid'], $_COOKIE['secupass']); if ($lang == 'nl') { $home_cid = 10; $menu_top_cid = 11; $themes_top_cid = 12; $footer_top_cid = 20; $footer_text_cid = 25; $helpdesk_cid = 30; $keep_informed_cid = 34; $highlight_top_cid = 35; $news_top_cid = 31; $blogs_top_cid = 38; $calendar_top_cid = 163; $projects_top_cid = 42; $bottom_blocks_top_cid = 45; $home_faq_cid = 49; $home_newsletter_cid = 50; $contact_cid = 23; $colorbannerid_top_cid = 26; $standards_album_id = 10; $home_slider_album_id = 11; $home_finance_album_id = 12; $number_banners = 8; // beeldbalken $blogs_menu_cid = 142; $calendar_menu_cid = 129; $news_menu_cid = 130; $news_basis_ils_cid = 323; } else { $keep_informed_cid = 913; } if ($cid == $blogs_menu_cid) { $mode='blogs'; } if ($cid == $news_menu_cid) { $mode='news'; } if ($cid == $calendar_menu_cid) { $mode='calendar'; } if ($cid == $news_basis_ils_cid) { $mode='news'; $_REQUEST['cat']='basisILS';} $prs = mysql_query("select id, parentid from bcms_content where id = '$cid'"); if(mysql_num_rows($prs)>0) { $prr = mysql_fetch_array($prs); $parentid = $prr['parentid']; $gprs = mysql_query("select id, parentid from bcms_content where id = '$parentid'"); if(mysql_num_rows($gprs)>0) { $gprr = mysql_fetch_array($gprs); $gparentid = $gprr['parentid']; $ggprs = mysql_query("select id, parentid from bcms_content where id = '$gparentid'"); if(mysql_num_rows($ggprs)>0) { $ggprr = mysql_fetch_array($ggprs); $ggparentid = $ggprr['parentid']; $gggprs = mysql_query("select id, parentid from bcms_content where id = '$ggparentid'"); if(mysql_num_rows($gggprs)>0) { $gggprr = mysql_fetch_array($gggprs); $gggparentid = $gggprr['parentid']; } } } } if (!$project) { $plang = 'ned'; } $project = false; // detect project pages if ($parentid == 243 || $gparentid == 243 || $ggparentid == 243) { $project = 'test'; $plang = 'ned'; } if ($parentid == 293 || $gparentid == 293 || $ggparentid == 293 || $gggparentid == 293 || $_REQUEST['in'] == 'basisILS') { $project = 'basisILS'; $plang = 'ned'; $naam = 'BIM basis ILS'; // detect english if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'EN_') ) { $project = 'ENbasisILS'; $plang = 'eng'; $naam = 'BIM base IDS'; } // detect german if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'DE_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'DE_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'DE_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'DE_') ) { $project = 'DEbasisILS'; $plang = 'de'; $naam = 'BIM base IDS DE'; } // detect spanish if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'ES_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'ES_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'ES_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'ES_') ) { $project = 'ESbasisILS'; $plang = 'es'; $naam = 'BIM base IDS ES'; } // detect italian if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'IT_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'IT_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'IT_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'IT_') ) { $project = 'ITbasisILS'; $plang = 'it'; $naam = 'BIM base IDS IT'; } // detect swedish if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'SE_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'SE_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'SE_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'SE_') ) { $project = 'SEbasisILS'; $plang = 'se'; $naam = 'BIM base IDS SE'; } } if ($parentid == 364 || $gparentid == 364 || $ggparentid == 364 || $gggparentid == 364 || $_REQUEST['in'] == 'nlcs') { $project = 'nlcs'; $plang = 'ned'; $naam = 'NLCS'; } if ($parentid == 482 || $gparentid == 482 || $ggparentid == 482 || $gggparentid == 482 || $_REQUEST['in'] == 'coins') { $project = 'coins'; $plang = 'ned'; $naam = 'COINS'; } if ($parentid == 526 || $gparentid == 526 || $ggparentid == 526 || $gggparentid == 526 || $_REQUEST['in'] == 'cbnl') { $project = 'cbnl'; $plang = 'ned'; $naam = 'CB-NL'; } if ($parentid == 541 || $gparentid == 541 || $ggparentid == 541 || $gggparentid == 541 || $_REQUEST['in'] == 'nlsfb') { $project = 'nlsfb'; $plang = 'ned'; $naam = 'NL/SfB'; } if ($parentid == 556 || $gparentid == 556 || $ggparentid == 556 || $gggparentid == 556 || $_REQUEST['in'] == 'visi') { $project = 'visi'; $plang = 'ned'; $naam = 'VISI'; } if ($parentid == 571 || $gparentid == 571 || $ggparentid == 571 || $gggparentid == 571 || $_REQUEST['in'] == 'bup20') { $project = 'bup20'; $plang = 'ned'; $naam = 'BUP'; } if ($parentid == 1170 || $gparentid == 1170 || $ggparentid == 1170 || $gggparentid == 1170 || $_REQUEST['in'] == 'ilscon') { $project = 'ilscon'; $plang = 'ned'; $naam = 'ILS Configurator'; } if ($parentid == 1037 || $gparentid == 1037 || $ggparentid == 1037 || $gggparentid == 1037 || $_REQUEST['in'] == 'ilsoe') { $project = 'ilsoe'; $plang = 'ned'; $naam = 'ILS O&E'; } if ($parentid == 1200 || $gparentid == 1200 || $ggparentid == 1200 || $gggparentid == 1200 || $_REQUEST['in'] == 'icdd') { $project = 'icdd'; $plang = 'ned'; $naam = 'ICDD'; } if ($parentid == 1094 || $gparentid == 1094 || $ggparentid == 1094 || $gggparentid == 1094 || $_REQUEST['in'] == 'binfra') { $project = 'binfra'; $plang = 'ned'; $naam = 'BIM basis Infra'; // detect english if ((substr(bcms_showcontent($cid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($parentid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($gparentid,'sysname'), 0, 3) == 'EN_') || (substr(bcms_showcontent($ggparentid,'sysname'), 0, 3) == 'EN_') ) { $project = 'ENbinfra'; $plang = 'eng'; $naam = 'BIM base Infra'; } } if ($plang == 'ned') { $mailtitle = "Houd mij op de hoogte"; $caption = "Stel jouw vraag online"; $newsletterintro = "Met de digiGO BIM Loket nieuwsbrief blijf je op de hoogte van de ontwikkelingen rond digitale samenwerking in de gebouwde omgeving. Onze nieuwsbrief verschijnt zes tot acht keer per jaar."; $emailemailplaceholder = "E-mailadres"; $firstname = "Voornaam"; $lastname = "Achternaam"; $username = "Gebruikersnaam"; $password = "Wachtwoord"; $desiredpassword = "Gewenst wachtwoord"; $forgotpassword = "Wachtwoord vergeten"; $organisation = "Organisatie"; $company = "Bedrijf"; $companyloc = "Vestiging"; $location = "Locatie"; $contactp = "Contactpersoon"; $place = "Plaats"; $phone = "Telefoon"; $website = "Website"; $email = "E-mailadres"; $subject = "Onderwerp"; $relevances = "Mijn vraag heeft betrekking op"; $other = "Anders"; $dontknow = "Weet niet"; $yourquestion = "Jouw vraag"; $selectlogofile = "Selecteer een bestand met jouw logo"; $agreereceiveinfo = "Ik ga ermee akkoord dat ik via dit e-mailadres informatie ontvang over bijeenkomsten en updates rond"; $createaccount = "Account aanmaken"; $send = "Verzenden"; $sendin = "Insturen"; $cancel = "Annuleren"; $subscribe = "Aanmelden"; $login = "Inloggen"; $loggedout = "Uitgelogd"; $poweredby = "Mogelijk gemaakt door"; $sortlabel = "Sorteren"; $searchlabel = "Zoeken"; $branche = "Branche"; $brancheslabel = "Branches"; $allbranches = "Alle branches"; $others = "Overige"; $casetitle = "Titel van de case"; $picture = "Afbeelding"; $or = "of"; $errormessage = "Foutmelding"; $errorincomplete = "Vul alsjeblieft alle velden in, en probeer het opnieuw."; $erroremail = "Er bestaat reeds een account met dit e-mailadres."; $errorusername = "Er bestaat reeds een account met deze gebruikersnaam."; $back = "Terug"; $applicationreceived = "Aanmelding ontvangen"; $emailsenttoactivate = "Er is een e-mail naar jou verzonden waarmee je jouw acount kunt activeren."; $clickhere = "Klik hier"; $restorepassword = "Wachtwoord herstellen"; $torestorepassword = "om jouw wachtwoord te herstellen"; $invalidlink = "Ongeldige link"; $follow = "Volg"; $news = "Nieuws"; $morenewsfrom = "Meer nieuws van"; $calendar = "Agenda"; $welcomeaccount = "Welkom op jouw digiGO BIM Loket-account"; $searchlabel = "Zoeken"; $searchby = "Zoeken op"; $searchresultsfor = "Zoekresultaten voor"; $noresultsfor = "Geen resultaten voor"; $previous = "Vorige"; $next = "Volgende"; $featured = "Uitgelicht"; $klikinfographic = "Klik op een tegel voor meer informatie"; $usecookies = "We gebruiken cookies om jou de beste website-ervaring te geven."; $cookiesset = "Cookie-instellingen"; $accept = "Accepteren"; $leesverder = "Lees verder"; } else { $mailtitle = "Stay informed"; $caption = "Reply form questions"; $newsletterintro = "The digiGO BIM Loket newsletter keeps you informed, with actual developments regarding digital collaboration in the built environment. Our newsletter is published six to eight times a year."; $emailplaceholder = "Email Address"; $firstname = "First name"; $lastname = "Last name"; $username = "User name"; $password = "Password"; $desiredpassword = "Desired password"; $forgotpassword = "Forgot your password"; $organisation = "Organisation"; $company = "Company"; $companyloc = "Branch"; $location = "Location"; $contactp = "Contact"; $place = "Place"; $phone = "Telephone"; $website = "Website"; $email = "Email address"; $subject = "Subject"; $relevances = "My question relates to"; $other = "Other"; $dontknow = "Don't know"; $yourquestion = "Your question"; $selectlogofile = "Select a file with your logo"; $agreereceiveinfo = "I agree to receive information by email about meetings and updates about"; $createaccount = "Create account"; $send = "Send"; $sendin = "Submit"; $cancel = "Cancel"; $login = "Login"; $loggedout = "Logged out"; $poweredby = "Powered by"; $sortlabel = "Sort"; $searchlabel = "Search"; $branche = "Branche"; $brancheslabel = "Branches"; $allbranches = "All branches"; $others = "Other"; $casetitle = "Case title"; $picture = "Picture"; $or = "or"; $errormessage = "Error Message"; $errorincomplete = "Please fill in all fields and try again."; $erroremail = "An account with this email address already exists."; $errorusername = "An account with this username already exists."; $back = "Terug"; $applicationreceived = "Application received"; $emailsenttoactivate = "An email has been sent to you to activate your account."; $clickhere = "Click here"; $restorepassword = "Restore password"; $torestorepassword = "to restore your password"; $invalidlink = "Invalid link"; $follow = "Follow"; $news = "News"; $morenewsfrom = "More news from"; $calendar = "Agenda"; $welcomeaccount = "Welcome to your My digiGO BIM Loket account"; $searchlabel = "Search"; $searchby = "Search by"; $searchresultsfor = "Search results for"; $noresultsfor = "No results for"; $featured = "Featured"; $usecookies = "We use cookies to give you the best website experience."; $cookiesset = "Cookie Settings"; $accept = "Accept"; $leesverder = "Read more"; if ($plang == 'it') { $subscribe = "Sottoscrivi"; $previous = "Precedente"; $next = "Prossimo"; $klikinfographic = "Fare clic su un riquadro per ulteriori informazioni"; } elseif ($plang == 'es') { $subscribe = "Suscribir"; $previous = "Previo"; $next = "Próximo"; $klikinfographic = "Haga clic en un mosaico para obtener más información"; } elseif ($plang == 'se') { $subscribe = "Prenumerera"; $previous = "Tidigare"; $next = "Nästa"; $klikinfographic = "Klicka på en bricka för mer information"; } elseif ($plang == 'de') { $subscribe = "Abonnieren"; $previous = "Vorherige"; $next = "Nächste"; $klikinfographic = "Klicken Sie auf eine Kachel, um weitere Informationen zu erhalten"; } else { $subscribe = "Subscribe"; $previous = "Previous"; $next = "Next"; $klikinfographic = "Click on a tile for more information"; } } // detect news page projects if ($parentid == 31) { $rrc = mysql_fetch_assoc(mysql_query("select * from bcms_content where id = '$cid' ")); if ($rrc['on_main'] != 1) { if ($rrc['on_basisILS'] == 1) { $project = 'basisILS'; } if ($rrc['on_ncls'] == 1) { $project = 'nlcs'; } if ($rrc['on_cbnl'] == 1) { $project = 'cbnl'; } if ($rrc['on_nlsfb'] == 1) { $project = 'nlsfb'; } if ($rrc['on_coins'] == 1) { $project = 'coins'; } if ($rrc['on_visi'] == 1) { $project = 'visi'; } if ($rrc['on_bup20'] == 1) { $project = 'bup20'; } if ($rrc['on_ilsoe'] == 1) { $project = 'ilsoe'; } if ($rrc['on_ilscon'] == 1) { $project = 'ilscon'; } if ($rrc['on_icdd'] == 1) { $project = 'icdd'; } } } header('Content-type: text/html; charset=utf-8'); $pgtitle = 'digiGO BIM Loket - '; $pgtitle.= bcms_showcontent($cid, 'title'); bcms_stats_counthit(); ob_start("bcms_seo_links"); ?>