Make WordPress Core

Changeset 458 for trunk/b2comments.php


Ignore:
Timestamp:
10/20/2003 08:53:13 PM (22 years ago)
Author:
emc3
Message:

Cookies are now unique, based on siteurl, allowing multiple installs under a single domain name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.php

    r457 r458  
    55
    66        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 cookie
     7            if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
    88                echo("<p>Enter your password to view comments.<p>");
    99                return;
     
    1111        }
    1212
    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]);
    1616
    1717    $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.