Changeset 458 for trunk/b2comments.php
- Timestamp:
- 10/20/2003 08:53:13 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/b2comments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2comments.php
r457 r458 5 5 6 6 if (!empty($post->post_password)) { // if there's a password 7 if ($HTTP_COOKIE_VARS['wp-postpass '] != $post->post_password) { // and it doesn't match the cookie7 if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 8 8 echo("<p>Enter your password to view comments.<p>"); 9 9 return; … … 11 11 } 12 12 13 $comment_author = trim($HTTP_COOKIE_VARS["comment_author "]);14 $comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email "]);15 $comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url "]);13 $comment_author = trim($HTTP_COOKIE_VARS["comment_author_".$cookiehash]); 14 $comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email_".$cookiehash]); 15 $comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url_".$cookiehash]); 16 16 17 17 $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
Note: See TracChangeset
for help on using the changeset viewer.