mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Changed cookie name to avoid conflict with parallel b2 installations.
git-svn-id: https://develop.svn.wordpress.org/trunk@69 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -81,7 +81,7 @@ case "update":
|
||||
die ("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.");
|
||||
$newuser_pass = $HTTP_POST_VARS["pass1"];
|
||||
$updatepassword = "user_pass='$newuser_pass', ";
|
||||
setcookie("cafelogpass",md5($newuser_pass),time()+31536000);
|
||||
setcookie("wordpresspass",md5($newuser_pass),time()+31536000);
|
||||
}
|
||||
|
||||
$newuser_firstname=addslashes($HTTP_POST_VARS["newuser_firstname"]);
|
||||
@@ -120,7 +120,7 @@ case "viewprofile":
|
||||
get_currentuserinfo();
|
||||
|
||||
*/ $profiledata=get_userdata($user);
|
||||
if ($HTTP_COOKIE_VARS["cafeloguser"] == $profiledata["user_login"])
|
||||
if ($HTTP_COOKIE_VARS["wordpressuser"] == $profiledata["user_login"])
|
||||
header ("Location: b2profile.php");
|
||||
|
||||
$profile=1; /**/
|
||||
|
||||
Reference in New Issue
Block a user