当前位置: 首页>>代码示例>>PHP>>正文


PHP CContact::getContactByUsername方法代码示例

本文整理汇总了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);
}
开发者ID:joly,项目名称:web2project,代码行数:4,代码来源:main_functions.php

示例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);
}
开发者ID:illuminate3,项目名称:web2project,代码行数:5,代码来源:deprecated_functions.php

示例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);
开发者ID:,项目名称:,代码行数:31,代码来源:


注:本文中的CContact::getContactByUsername方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。