本文整理汇总了PHP中CContact::getContactByUsername方法的典型用法代码示例。如果您正苦于以下问题:PHP CContact::getContactByUsername方法的具体用法?PHP CContact::getContactByUsername怎么用?PHP CContact::getContactByUsername使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CContact
的用法示例。
在下文中一共展示了CContact::getContactByUsername方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: w2PgetUsername
function w2PgetUsername($username)
{
return CContact::getContactByUsername($username);
}
示例2: w2PgetUsername
function w2PgetUsername($username)
{
trigger_error("w2PgetUsername() has been deprecated in v3.1 and will be removed by v5.0. Please use CContact::getContactByUsername() instead.", E_USER_NOTICE);
return CContact::getContactByUsername($username);
}
示例3: alert
} else {
echo "<script language='javascript'>\n alert('Error: You didn\\'t provide the correct Anti Spam Security ID or all required data. Please try again.');\n history.go(-1);\n\t </script>";
exit;
}
} else {
echo "\n <script language='javascript'>\n alert('Error: You didn\\'t provide the Anti Spam Security ID. Please try again.');\n history.go(-1);\n </script>\n ";
exit;
}
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);