Changeset 1108 for trunk/wp-comments.php
- Timestamp:
- 04/20/2004 10:56:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments.php
r1080 r1108 1 1 <?php // Do not delete these lines 2 if ('wp-comments.php' == basename($ HTTP_SERVER_VARS['SCRIPT_FILENAME']))2 if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 3 3 die ('Please do not load this page directly. Thanks!'); 4 4 if (($withcomments) or ($single)) { 5 5 6 6 if (!empty($post->post_password)) { // if there's a password 7 if ($ HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie7 if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 8 8 ?> 9 9 <p><?php e_("Enter your password to view comments."); ?><p> … … 13 13 } 14 14 15 $comment_author = (isset($ HTTP_COOKIE_VARS['comment_author_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_'.$cookiehash]) : '';16 $comment_author_email = (isset($ HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash]) : '';17 $comment_author_url = (isset($ HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash]) : '';15 $comment_author = (isset($_COOKIE['comment_author_'.$cookiehash])) ? trim($_COOKIE['comment_author_'.$cookiehash]) : ''; 16 $comment_author_email = (isset($_COOKIE['comment_author_email_'.$cookiehash])) ? trim($_COOKIE['comment_author_email_'.$cookiehash]) : ''; 17 $comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : ''; 18 18 19 19 $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
Note: See TracChangeset
for help on using the changeset viewer.