Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (count($posts) > 0) {
- for ($x = 0; $x < count($posts); $x++) {
- echo '
- <div class="post-header">' . $posts[$x][3] . '<text style="float:right">#' . ($x+1) . '</text></div>
- <div class="post">
- <div class="post-user ">';
- if(login_check($mysqli) && (permission_check($mysqli) == 2 || permission_check($mysqli) == 3 || $username == $posts[$x][5])) {
- echo '<a href="posting.php?topicID='. $topicID . '&forumID=' . $forumID . '&postID=' . $posts[$x][1] . '&mode=edit">Edit</a><br>';
- }
- echo '<a href="../profile/?profile="' . $posts[$x][5] . '">' . $posts[$x][5] . '</a>
- <br>
- </div>
- <div class="post-text">' . $bbcode->parse($posts[$x][4]) . '</div>
- </div><br>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement