Advertisement
Guest User

Untitled

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