prepare($qry)) { $stmt->bind_param("ii", $userID, $input["thread"]); $stmt->execute(); $catres = $stmt->get_result(); if ($catres->num_rows==0) { addError("Access", "Kategorie nicht vorhanden oder Zugriff nicht erlaubt3"); } else { $cat = $catres->fetch_assoc(); $replace = array( "###BOARDTHR.CAT.ID###" => $cat["ID"], "###BOARDTHR.CAT.NAME###" => $cat["name"], "###BOARDTHR.CAT.DESC###" => $cat["description"] ); $tpl["thr"] = tplReplMarkerArray($tpl["thr"], $replace); $tpl["msg"] = tplExtrSection(tplLoadFile("pgs/board/msg.html"), "###BOARDMSG###"); $rootID = $cat["rootID"] ?? $cat["mID"]; $tpl["thr"] = tplReplMarker($tpl["thr"], "###BOARDTHR.MSGS###", boardLoadThread($mysqli, $userID, $rootID, $tpl["msg"])); } } else { addError("Mysql", $mysqli->error); } } $tpl["main"] = $tpl["thr"]; ?>