本文整理汇总了PHP中CContact::getContactByEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP CContact::getContactByEmail方法的具体用法?PHP CContact::getContactByEmail怎么用?PHP CContact::getContactByEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CContact
的用法示例。
在下文中一共展示了CContact::getContactByEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stristr
}
if (!isset($GLOBALS['OS_WIN'])) {
$GLOBALS['OS_WIN'] = stristr(PHP_OS, 'WIN') !== false;
}
if (w2PgetConfig('activate_external_user_creation') != 'true') {
die('You should not access this file directly');
}
$username = w2PgetParam($_POST, 'user_username', 0);
$contactListByUsername = CContact::getContactByUsername($username);
if ($contactListByUsername != 'User Not Found') {
error_reporting(0);
echo "<script language='javascript'>\n alert('The username you selected already exists, please select another or if that user name is yours request the password recovery through the dedicated link.');\n history.go(-2);\n </script>";
die;
}
$email = w2PgetParam($_POST, 'contact_email', 0);
$contactListByEmail = CContact::getContactByEmail($email);
if ($contactListByEmail != 'User Not Found') {
error_reporting(0);
echo "<script language='javascript'>\n alert('The email you selected already exists, please select another or if that email is yours request the password recovery through the dedicated link.');\n history.go(-2);\n </script>";
die;
}
$user = new CUser();
if (!$user->bind($_POST)) {
$AppUI->setMsg($user->getError(), UI_MSG_ERROR);
$AppUI->redirect();
}
$contact = new CContact();
if (!$contact->bind($_POST)) {
$AppUI->setMsg($contact->getError(), UI_MSG_ERROR);
$AppUI->redirect();
}