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


PHP es_cls_dbquery::es_view_subscriber_one方法代码示例

本文整理汇总了PHP中es_cls_dbquery::es_view_subscriber_one方法的典型用法代码示例。如果您正苦于以下问题:PHP es_cls_dbquery::es_view_subscriber_one方法的具体用法?PHP es_cls_dbquery::es_view_subscriber_one怎么用?PHP es_cls_dbquery::es_view_subscriber_one使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在es_cls_dbquery的用法示例。


在下文中一共展示了es_cls_dbquery::es_view_subscriber_one方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 if ($samedomain !== false && $samedomain < 5) {
     $action = "";
     global $wpdb;
     $form['es_email_name'] = $es_name;
     $form['es_email_mail'] = $es_email;
     $form['es_email_group'] = $es_group;
     $data = es_cls_settings::es_setting_select(1);
     if ($data['es_c_optinoption'] == "Double Opt In") {
         $form['es_email_status'] = "Unconfirmed";
     } else {
         $form['es_email_status'] = "Single Opt In";
     }
     $action = es_cls_dbquery::es_view_subscriber_widget($form);
     if ($action == "sus") {
         $subscribers = array();
         $subscribers = es_cls_dbquery::es_view_subscriber_one($es_email);
         if ($data['es_c_optinoption'] == "Double Opt In") {
             es_cls_sendmail::es_sendmail("optin", $template = 0, $subscribers, "optin", 0);
             echo "subscribed-pending-doubleoptin";
         } else {
             if ($data['es_c_usermailoption'] == "YES") {
                 es_cls_sendmail::es_sendmail("welcome", $template = 0, $subscribers, "welcome", 0);
             }
             echo "subscribed-successfully";
         }
     } elseif ($action == "ext") {
         echo "already-exist";
     }
 } else {
     echo "unexpected-error";
 }
开发者ID:tccyp001,项目名称:onemore-wordpress,代码行数:31,代码来源:es-subscribe.php

示例2: es_sync_registereduser

function es_sync_registereduser($user_id)
{
    $es_c_emailsubscribers = get_option('es_c_emailsubscribers', 'norecord');
    if ($es_c_emailsubscribers == 'norecord' || $es_c_emailsubscribers == "") {
        // No action is required
    } else {
        if ($es_c_emailsubscribers['es_registered'] == "YES" && $user_id != "") {
            $es_registered = $es_c_emailsubscribers['es_registered'];
            $es_registered_group = $es_c_emailsubscribers['es_registered_group'];
            $user_info = get_userdata($user_id);
            $user_firstname = $user_info->user_firstname;
            if ($user_firstname == "") {
                $user_firstname = $user_info->user_login;
            }
            $user_mail = $user_info->user_email;
            $form['es_email_name'] = $user_firstname;
            $form['es_email_mail'] = $user_mail;
            $form['es_email_group'] = $es_c_emailsubscribers['es_registered_group'];
            $form['es_email_status'] = "Confirmed";
            $action = es_cls_dbquery::es_view_subscriber_ins($form, "insert");
            if ($action == "sus") {
                //Inserted successfully. Below 3 line of code will send WELCOME email to subscribers.
                $subscribers = array();
                $subscribers = es_cls_dbquery::es_view_subscriber_one($user_mail);
                es_cls_sendmail::es_sendmail("welcome", $template = 0, $subscribers, "welcome", 0);
            }
        }
    }
}
开发者ID:tccyp001,项目名称:onemore-wordpress,代码行数:29,代码来源:es-register.php

示例3: es_af_preparation

 public static function es_af_preparation($es_af_name = "", $es_af_email = "", $es_af_group = array())
 {
     $sts = "";
     $data = es_cls_settings::es_setting_select(1);
     $form = array('es_email_name' => '', 'es_email_status' => '', 'es_email_group' => '', 'es_email_mail' => '');
     $email_saved_single_opt_in = 0;
     $email_saved_double_opt_in = 0;
     $email_already_exists = 0;
     $es_af_group_count = count($es_af_group);
     if ($es_af_group_count > 0) {
         for ($i = 0; $i < $es_af_group_count; $i++) {
             $form['es_email_name'] = $es_af_name;
             $form['es_email_mail'] = $es_af_email;
             $form['es_email_group'] = $es_af_group[$i];
             if ($data['es_c_optinoption'] == "Double Opt In") {
                 $form['es_email_status'] = "Unconfirmed";
             } else {
                 $form['es_email_status'] = "Single Opt In";
             }
             $action = es_cls_dbquery::es_view_subscriber_widget($form);
             if ($action == "sus") {
                 $subscribers = array();
                 $subscribers = es_cls_dbquery::es_view_subscriber_one($form['es_email_mail']);
                 if ($data['es_c_optinoption'] == "Double Opt In") {
                     if ($email_saved_double_opt_in == 0) {
                         es_cls_sendmail::es_sendmail("optin", $template = 0, $subscribers, "optin", 0);
                     }
                     $email_saved_double_opt_in = $email_saved_double_opt_in + 1;
                 } else {
                     if ($data['es_c_usermailoption'] == "YES") {
                         if ($email_saved_single_opt_in == 0) {
                             es_cls_sendmail::es_sendmail("welcome", $template = 0, $subscribers, "welcome", 0);
                         }
                     }
                     $email_saved_single_opt_in = $email_saved_single_opt_in + 1;
                 }
             } elseif ($action == "ext") {
                 $email_already_exists = $email_already_exists + 1;
             }
         }
     }
     if ($email_saved_double_opt_in > 0) {
         $sts = "double_opt_in_saved";
     } elseif ($email_saved_single_opt_in > 0) {
         $sts = "single_opt_in_saved";
     } elseif ($email_already_exists > 0) {
         $sts = "emails_already_exists";
     } else {
         $sts = "no_email_saved";
     }
     return $sts;
 }
开发者ID:phuocdungit,项目名称:fundy,代码行数:52,代码来源:es-af-register.php


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