hget("users",$username)) goback("Sorry the selected username is already in use."); # Everything is ok, Register the user! $userid = $r->incr("next_user_id"); $authsecret = getrand(); $r->hset("users",$username,$userid); $r->hmset("user:$userid", "username",$username, "password",$password, "auth",$authsecret); $r->hset("auths",$authsecret,$userid); $r->zadd("users_by_time",time(),$username); # User registered! Login her / him. setcookie("auth",$authsecret,time()+3600*24*365); include("header.php"); ?>

Welcome aboard!

Hey , now you have an account, a good start is to write your first message!.