// 아이디도 중복체크(삭제상태도 포함)functioncheckId($userId){$query="select userId from {$this->TABLE} where userId = '".clean($userId)."' ";$rs=$this->db->query($query);if($this->db->num_rows($rs)>0)returnfalse;elsereturntrue;}
비밀번호 확인 체크
1 2 3 4 5 6 7 8 9 10 11 12 13 14
functioncheckPass($passInput){$passInput=trim($passInput);$query="select userPassword from {$this->TABLE} where userSid = '".clean($_SESSION['LOGIN_SID'])."' and delState = 'N' and loginState = 'OK' ";$row=$this->db->fetch($query);if(!validate_password($passInput,$row['userPassword'])){errorMsg("비밀번호가 틀렸습니다!");return;}}