Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkpass()
- {
- /*
- * Put here your code to check password
- * $this->jabber_user
- * $this->jabber_pass
- * $this->jabber_server
- */
- $password = sha1(strtolower($this->jabber_user) . $this->jabber_pass);
- $qry = "SELECT ID_MEMBER, passwd FROM smf_members WHERE (LOWER(memberName) = LOWER($this->jabber_user) OR realName = '$this->jabber_user') AND passwd = '$password'";
- $user = mysql_query($qry);
- if($user) {
- return true;
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement