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

git-svn-id: https://develop.svn.wordpress.org/trunk@458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell
2003-10-20 20:53:13 +00:00
parent 5440f4bde1
commit 620001f33e
11 changed files with 45 additions and 42 deletions

View File

@@ -4,15 +4,15 @@
if (($withcomments) or ($c)) {
if (!empty($post->post_password)) { // if there's a password
if ($HTTP_COOKIE_VARS['wp-postpass'] != $post->post_password) { // and it doesn't match the cookie
if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
echo("<p>Enter your password to view comments.<p>");
return;
}
}
$comment_author = trim($HTTP_COOKIE_VARS["comment_author"]);
$comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url"]);
$comment_author = trim($HTTP_COOKIE_VARS["comment_author_".$cookiehash]);
$comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email_".$cookiehash]);
$comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url_".$cookiehash]);
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
?>