Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.    echo '<br /><div id="newReply"><a href="/reply/' . $id . '">New reply</a>';
  3.    $query = mysql_query( "select count(*) from posts where user_id = (select user_id from users where pass='" . clean_xss($_COOKIE['password']) . "' and user='" . $_COOKIE['user'] . "')" ) or die("");
  4.  
  5. $postCount = mysql_result( $query, 0 );
  6. if ( $postCount <= 5 )
  7. {
  8. ?>
  9.     echo "</div>";
  10. <?php
  11. }
  12. else {
  13. ?>
  14. | <a href="#qreply" onclick="javascript: document.getElementById( \'quickReply\' ).style.visibility = \'visible\';">Quick reply</a></div><a id="qreply" name="qreply"></a><br /><form id="quickReply" action="/reply.php?id=' . $id . '" method="post" style="visibility: hidden;"><input type="hidden" name="add_post" value="hi"><input type="hidden" name="topic_id" value="' . $id . '"><p>Quick reply:</p><textarea name="message" id="message"></textarea><br /><input type="submit" value="Post reply" class="button"></form>
  15. <?php
  16. }
  17.  
  18. require_once 'footer.html';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement