setcookie("userID",$usr->getID(),time()+3600,"/"); session_write_close(); header("Location: /"); exit; } //apos o cadastro jah loga o usuário break; case "atualizar": $usr = new UserClass(); $usr->setID($userID); $usr->setFirstName($firstName); $usr->setLastName($lastName); $usr->setGender($gender); $usr->setEmail($email); // $usr->setLogin($login); if($useSGU){ $usr->setToken($_COOKIE['userToken']); } if($password != "") $usr->setPassword($password); for($i = 0; $i < count($profilesTexts); $i ++){ $profile = new UserProfileClass(); $profile->setUserID($userID);