1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2024-11-17 00:58:57 +00:00
McAccount/Model/mail.php
502647092 7f19057e1a fix many bugs...
Signed-off-by: 502647092 <jtb1@163.com>
2015-10-13 19:29:11 +08:00

16 lines
424 B
PHP

<?
class mail extends AmysqlModel {
function check($email) {
if ($this->_sum ( "SELECT * FROM `authme` WHERE `email` = '$email'" ) == 0) {
return false;
}
$sql = "SELECT * FROM `authme` WHERE `email` = '$email'";
return $this->_all ( $sql );
}
function mailcheck($email) {
if ($this->_sum ( "SELECT * FROM `authme` WHERE `email` = '$email'" ) == 0)
return true;
else
return false;
}
}