Guest User

Untitled

a guest
Jul 1st, 2014
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $redis->hset("user:".$usercount, "userslug", $user['user_name']);
  2. $redis->hset("user:".$usercount, "lastposttime", 0);
  3. $redis->hset("user:".$usercount, "location", "");
  4. $redis->hset("user:".$usercount, "birthday", "");
  5. $redis->hset("user:".$usercount, "email", $user['user_email']);
  6. $redis->hset("user:".$usercount, "postcount", "0");
  7. $redis->hset("user:".$usercount, "fullname", "");
  8. $redis->hset("user:".$usercount, "status", "offline");
  9. $redis->hset("user:".$usercount, "website", "");
  10. $redis->hset("user:".$usercount, "lastonline", 0);
  11. $redis->hset("user:".$usercount, "reputation", 0);
  12. $redis->hset("user:".$usercount, "password", $user['user_password']);
  13. $redis->hset("user:".$usercount, "username", $user['user_name']);
  14. $redis->hset("user:".$usercount, "profileviews", 0);
  15. $redis->hset("user:".$usercount, "gravatarpicture", "https://secure.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028?size=128&default=identicon&rating=pg");
  16. $redis->hset("user:".$usercount, "signature", "");
  17. $redis->hset("user:".$usercount, "picture", "");
  18. $redis->hset("user:".$usercount, "uploadedpicture", "");
  19. $redis->hset("user:".$usercount, "banned", 0);
  20. $redis->hset("user:".$usercount, "currency", 0);
  21. $redis->hset("user:".$usercount, "joindate", 0);
  22. $redis->hset("user:".$usercount, "uid", $usercount);
  23.  
  24. $redis->hset("email:uid", $user['user_email'], $usercount);
  25.  
  26. $redis->sadd("group:registered-users:members",$usercount);
  27.  
  28. $redis->zadd("users:joindate",time(),$usercount);
  29. $redis->zadd("users:postcount",0,$usercount);
  30. $redis->zadd("users:reputation",0,$usercount);
  31.  
  32. $redis->hset("username:uid", $user['user_name'], $usercount);
  33. $redis->hset("userslug:uid", $user['user_name'], $usercount);
  34.  
  35. $user = $redis->hgetall("user:".$usercount);
  36. echo "All info about user number ".$usercount;
  37. echo "<pre>";
  38. var_dump($user);
  39. echo "</pre>";
RAW Paste Data