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(); ?>
New Reply deleted?'[ This is a deleted thread ]':''?>
1) { ?>
subject)?>
username?> <?=$authorInfo->username?> adminlevel == 2) { ?> Administrator

Joined: jointime)?>

Post count: author)?>

Posted on postTime);?> Thread ID id?> ›› Edit Delete
text($threadInfo->body), false)?>
fetch(PDO::FETCH_OBJ)) { $authorInfo = users::getUserInfoFromUid($reply->author); ?>
username?> <?=$authorInfo->username?> adminlevel == 2) { ?> Administrator

Joined: jointime)?>

Post count: author)?>

Posted on postTime);?> deleted){ ?>This is a deleted reply Reply ID id?> ›› Edit Delete
text($reply->body), false)?>
New Reply deleted?'[ This is a deleted thread ]':''?>
1) { ?>