1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2024-11-17 00:58:57 +00:00
McAccount/Model/mail.php

16 lines
427 B
PHP
Raw Normal View History

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