本文整理汇总了PHP中Check::NotEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::NotEmail方法的具体用法?PHP Check::NotEmail怎么用?PHP Check::NotEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::NotEmail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RegEmail
function RegEmail(&$smarty)
{
if ($this->form['member_email'] == '') {
return $smarty->getFinishError('registro_erro_10', array("", " - " . htmlspecialchars($this->form['member_email'])));
}
if (Check::NotEmail($this->form['member_email']) == true) {
return $smarty->getFinishError('registro_erro_11', array("", " - " . htmlspecialchars($this->form['member_email'])));
}
$mysql = new MYSQL($smarty);
$result = $mysql->SqlSelect("SELECT value FROM {$smarty->cfg[prefix]}banned WHERE (type='email' && value='{$this->form[member_name]}')", __FILE__, __LINE__);
if (mysql_affected_rows() > 0) {
return $smarty->getFinishError('registro_erro_13', array("", " - " . htmlspecialchars($this->form['member_email'])));
}
$request = $mysql->SqlSelect("SELECT ID_MEMBER FROM {$smarty->cfg[prefix]}members WHERE member_email='{$this->form[member_name]}' AND ID_MEMBER <> '{$smarty->perfil}[ID_MEMBER]'", __FILE__, __LINE__);
if (mysql_affected_rows() > 0) {
return $smarty->getFinishError('registro_erro_12', array("", " - " . htmlspecialchars($this->form['member_email'])));
}
}
示例2: Listmail
function Listmail($email, $nome = false)
{
if (is_numeric($email)) {
$mysql = new MYSQL($this->smarty);
$result = $mysql->SqlSelect("SELECT member_real,member_email FROM {$this->smarty->cfg[prefix]}members WHERE ID_MEMBER = '{$email}'");
if (mysql_affected_rows() > 0) {
$member = mysql_fetch_array($result, MYSQL_ASSOC);
return $member['member_real'] . '<' . $member['member_email'] . '>';
}
} elseif ($nome != false) {
if (Check::NotEmail($email) != true) {
return $nome . '<' . $email . '>';
}
} else {
if (Check::NotEmail($email) != true) {
return $email;
}
}
}