2015-10-13 06:26:47 +00:00
|
|
|
<?
|
|
|
|
class mail extends AmysqlModel {
|
2015-10-13 11:29:11 +00:00
|
|
|
function check($email) {
|
|
|
|
if ($this->_sum ( "SELECT * FROM `authme` WHERE `email` = '$email'" ) == 0) {
|
2015-10-13 06:26:47 +00:00
|
|
|
return false;
|
2015-10-13 11:29:11 +00:00
|
|
|
}
|
|
|
|
$sql = "SELECT * FROM `authme` WHERE `email` = '$email'";
|
2015-10-13 06:26:47 +00:00
|
|
|
return $this->_all ( $sql );
|
|
|
|
}
|
2015-10-13 11:29:11 +00:00
|
|
|
function mailcheck($email) {
|
|
|
|
if ($this->_sum ( "SELECT * FROM `authme` WHERE `email` = '$email'" ) == 0)
|
2015-10-13 06:26:47 +00:00
|
|
|
return true;
|
2015-10-13 11:29:11 +00:00
|
|
|
else
|
|
|
|
return false;
|
2015-10-13 06:26:47 +00:00
|
|
|
}
|
|
|
|
}
|