本文整理汇总了PHP中SJB_UserManager::getUserSIDbyEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP SJB_UserManager::getUserSIDbyEmail方法的具体用法?PHP SJB_UserManager::getUserSIDbyEmail怎么用?PHP SJB_UserManager::getUserSIDbyEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SJB_UserManager
的用法示例。
在下文中一共展示了SJB_UserManager::getUserSIDbyEmail方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: writeToLog
public static function writeToLog($email, $result = false, $error_msg = false)
{
$username = '';
$admin = '';
if (SJB_Settings::getSettingByName('notification_email') != $email->recipient_email) {
$username = SJB_UserManager::getUserSIDbyEmail($email->recipient_email);
}
if (!$username) {
$admin = SJB_SubAdminManager::getUserSIDbyEmail($email->recipient_email);
$admin = $admin ? $admin : 'admin';
}
$status = 'Delivered';
if (!$result) {
$status = 'Undelivered';
} elseif ('Not Sent' === $result) {
$status = $result;
}
SJB_DB::query("INSERT INTO `email_log` (`date`, `subject`, `email`, `message`, `username`, `admin`, `status`, `error_msg`) VALUES (NOW(), ?s, ?s, ?s, ?s, ?s, ?s, ?s)", $email->subject, $email->recipient_email, $email->text, $username, $admin, $status, $error_msg);
}
示例2: execute
public function execute()
{
$template_processor = SJB_System::getTemplateProcessor();
$ERRORS = array();
$message_was_sent = false;
if (!empty($_REQUEST['email'])) {
$user_sid = SJB_UserManager::getUserSIDbyEmail($_REQUEST['email']);
if (!empty($user_sid)) {
$message_was_sent = SJB_Notifications::sendUserPasswordChangeLetter($user_sid);
} else {
$ERRORS['WRONG_EMAIL'] = 1;
}
}
if (!$message_was_sent) {
$email = SJB_Request::getVar('email', '');
$template_processor->assign('errors', $ERRORS);
$template_processor->assign('email', $email);
$template_processor->display('password_recovery.tpl');
} else {
$template_processor->display('password_change_email_successfully_sent.tpl');
}
}
示例3: defineWetherEmailIsNeeded
public function defineWetherEmailIsNeeded()
{
if (!empty(self::$oProfile->email) && !strstr(self::$oProfile->email, 'proxymail.facebook.com') && !SJB_UserManager::getUserSIDbyEmail(self::$oProfile->email)) {
$key = array_search('email', self::$aUserFields);
if ($key !== false) {
unset(self::$aUserFields[$key]);
}
}
}