deleted && (!SESSION || SESSION && !SESSION["adminLevel"])){ pageBuilder::errorCode(404); } $authorInfo = users::getUserInfoFromUid($threadInfo->author); } else { pageBuilder::errorCode(404); } //markdown $markdown = new Parsedown(); $markdown->setMarkupEscaped(true); $markdown->setBreaksEnabled(true); $markdown->setSafeMode(true); $markdown->setUrlsLinked(true); //reply pagination $page = isset($_GET['page']) && is_numeric($_GET['page']) ? $_GET['page'] : 1; $repliescount = $pdo->prepare("SELECT COUNT(*) FROM forum_replies WHERE threadId = :id"); $repliescount->bindParam(":id", $threadInfo->id, PDO::PARAM_INT); $repliescount->execute(); $pages = ceil($repliescount->fetchColumn()/10); $offset = ($page - 1)*10; $subforumInfo = forum::getSubforumInfo($threadInfo->subforumid); $replies = SESSION && SESSION["adminLevel"] ? $pdo->prepare("SELECT * FROM forum_replies WHERE threadId = :id ORDER BY id ASC LIMIT 10 OFFSET :offset") : $pdo->prepare("SELECT * FROM forum_replies WHERE threadId = :id AND NOT deleted ORDER BY id ASC LIMIT 10 OFFSET :offset"); $replies->bindParam(":id", $threadInfo->id, PDO::PARAM_INT); $replies->bindParam(":offset", $offset, PDO::PARAM_INT); $replies->execute(); pageBuilder::$pageConfig["title"] = general::filterText($threadInfo->subject, true, false)." - ".general::replaceVars($subforumInfo->name); pageBuilder::$pageConfig["og:description"] = general::filterText($threadInfo->body, true, false); pageBuilder::buildHeader(); ?>
Joined: =date('j/n/Y', $authorInfo->jointime)?>
Post count: =users::getForumPostCount($threadInfo->author)?>
Joined: =date('j/n/Y', $authorInfo->jointime)?>
Post count: =users::getForumPostCount($reply->author)?>