1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2024-11-22 01:48:55 +00:00
McAccount/Model/mail.php
502647092 cdf10d5fed update some page...
Signed-off-by: 502647092 <jtb1@163.com>
2015-10-19 20:48:13 +08:00

16 lines
427 B
PHP

<?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;
}
}