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


PHP SJB_UserManager::getUserSIDbyEmail方法代码示例

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

示例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');
     }
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:22,代码来源:password_recovery.php

示例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]);
         }
     }
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:9,代码来源:facebook_social_plugin.php


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