本文整理汇总了PHP中member::is_email方法的典型用法代码示例。如果您正苦于以下问题:PHP member::is_email方法的具体用法?PHP member::is_email怎么用?PHP member::is_email使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::is_email方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
exit($do->errmsg);
}
break;
case 'password':
if (!$do->is_password($value, $value)) {
exit($do->errmsg);
}
break;
case 'payword':
if (!$do->is_payword($value, $value)) {
exit($do->errmsg);
}
break;
case 'email':
$value = trim($value);
if (!$do->is_email($value)) {
exit($do->errmsg);
}
if ($do->email_exists($value)) {
exit($L['member_email_reg']);
}
break;
case 'emailcode':
$value = trim($value);
if (!preg_match("/[0-9]{6}/", $value)) {
exit(' ');
}
$session = new dsession();
if ($_SESSION['email_code'] != md5($_SESSION['email'] . '|' . $value)) {
exit(' ');
}
示例2: dsession
$session = new dsession();
$could_emailcode = $MOD['emailcode_register'] && $DT['mail_type'] != 'close';
$action_sendcode = crypt_action('sendcode');
if ($could_emailcode) {
if ($MOD['checkuser'] == 2) {
$MOD['checkuser'] = 0;
}
if ($action == $action_sendcode) {
$email = isset($value) ? trim($value) : '';
if (!is_email($email)) {
exit('2');
}
if ($do->email_exists($email)) {
exit('3');
}
if (!$do->is_email($email)) {
exit('4');
}
isset($_SESSION['email_send']) or $_SESSION['email_send'] = 0;
if ($_SESSION['email_time'] && $DT_TIME - $_SESSION['email_time'] < 60) {
exit('5');
}
if ($_SESSION['email_send'] > 9) {
exit('6');
}
$emailcode = random(6, '0123456789');
$_SESSION['email'] = $email;
$_SESSION['email_code'] = md5($email . '|' . $emailcode);
$_SESSION['email_time'] = $DT_TIME;
$_SESSION['email_send'] = $_SESSION['email_send'] + 1;
$title = $L['register_msg_emailcode'];