function bs_nvg($bs){
global $q, $gp, $gl, $gt;
$rs = "";
$tb = "nvg";
$res = pdo("SELECT * FROM $tb WHERE pid='0' AND pub$gl='1' AND bs='$bs' ORDER BY seq ASC");
$rs .= "
";
while($rw = $res->fetch(PDO::FETCH_ASSOC)) {
$id = $rw["id"];
$tit = $rw["tit$gl"];
$sub = $rw["sub$gl"];
$bhv = $rw["bhv"];
$txt = ct($rw["txt$gl"]);
$utt = $rw["utt$gl"];
$sel = (($q[2]==$utt)? "active" : "");
$gt["idx"][$bhv] = array($tit, "$gp/$utt");
$pfx = (($bhv == 1)? "/": "# ");
if ($sel){
$gt["id"] = $id;
$gt["bhv"] = $bhv;
$gt["rv_url"] .= "/".(($gl == "_nl")? $rw["utt_en"]: $rw["utt_nl"]);
$gt["og_url"] .= "/$utt";
}
$chs = bs_chs($id, "$gp/$utt", $bs, $pfx);
$rs .= "$tit $chs ";
}
$rs .= " ";
return $rs;
}
function bs_chs($pid, $pth, $bs, $pfx){
global $q, $gp, $gl, $gt;
$rs = "";
$tb = "nvg";
$res = pdo("SELECT * FROM $tb WHERE pid='$pid' AND pub$gl='1' ORDER BY seq ASC");
if ($res -> rowCount()){
$rs .= "";
while($rw = $res->fetch(PDO::FETCH_ASSOC)) {
$id = rw($rw, "id");
$tit = rw($rw, "tit$gl");
$utt = rw($rw, "utt$gl");
$bhv = rw($rw, "bhv");
$sel = (($q[3]==$utt && $utt)? "active" : "");
$gt["idx"][$bhv] = array($tit, "$pth/$utt");
$rs .= "$tit ";
if ($sel){
//$gt["id"] = $id;
$gt["bhv2"] = $bhv;
$gt["rv_url"] .= "/".(($gl == "_nl")? rw($rw, "utt_en"): rw($rw, "utt_nl"));
$gt["og_url"] .= "/$utt";
}
}
$rs .= " ";
}
return $rs;
}
function bs_lbs(){
global $q, $gp, $gl, $gt;
$rs = "";
$nl_active = (($gl == "_nl")? "active" : "");
$en_active = (($gl == "_en")? "active" : "");
$nl_p = lan("$gp", $gt["rv_url"]);
$en_p = lan($gt["rv_url"], "$gp");
$rs .= "Brutus.nl / ";
$rs .= "Contact / ";
$rs .= "NL / ";
$rs .= "EN ";
return $rs;
}
function bs_cnt(){
global $q, $gp, $gl, $gt, $lib;
$rs = "";
$id = $gt["id"];
$bhv = $gt["bhv"];
switch($bhv){
case 1;
case 2;
case 3;
$inc = "prg";
break;
case 3;
case 4;
$inc = "nws";
break;
default:
$inc = (($id)? "nvg" : "hp");
}
$gt["inc"] = $inc;
if (isset($_GET["q"])) $inc = "search";
if ($q[2] == "partners") $inc = "par";
include("lib/inc/$inc.php");
$rs .= gc($inc);
return $rs;
}
function bs_clr($bs){
global $q, $gp, $gl, $gt;
$rs = "";
$cid = (($bs == 1)? 14 : 15);
if ($gl == $_SESSION["gl"]){
$res = pdo("SELECT * FROM clr WHERE id='$cid'");
$rw = $res->fetch(PDO::FETCH_ASSOC);
$_SESSION["clr"] = array($rw["id"], $rw["c1"], $rw["c2"]);
}else{
$_SESSION["gl"] = $gl;
}
$c1 = $_SESSION["clr"][1];
$c2 = $_SESSION["clr"][2];
if ($gt["ln"] == "nl"){
$rs .= ":root {--c1:$c1}";
$rs .= ":root {--c2:$c2}";
}else{
$rs .= ":root {--c1:$c2}";
$rs .= ":root {--c2:$c1}";
}
return $rs;
}
function bs_lgo ($bs){
if ($bs == 1) {
$rs = "";
$rs .= "
";
$rs .= " ";
}else{
$rs = "";
$rs .= "
";
$rs .= " ";
}
return $rs;
}
?>
Fatal error : Uncaught Error: Call to undefined function bs_nvg() in /var/www/vhosts/brutus.nl/dev.brutus.nl/index.php:21
Stack trace:
#0 {main}
thrown in /var/www/vhosts/brutus.nl/dev.brutus.nl/index.php on line 21