ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 3616


Ignore:
Timestamp:
Aug 2, 2007, 4:59:53 PM (12 years ago)
Author:
maruyama
Message:

#1008:【招待】招待した人が参加した時に、呼んだ側にも通知が欲しい

Location:
OpenPNE/trunk/webapp
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/util/mail_send.php

    r2861 r3616  
    803803}
    804804
     805//招待したメンバーの登録通知
     806function do_common_member_joined_mail_send($c_member_id_join, $c_member_id_invite)
     807{
     808    $c_member_invite = db_common_c_member4c_member_id($c_member_id_invite, true);
     809    $pc_address = $c_member_invite['secure']['pc_address'];
     810    $is_receive_mail = $c_member_invite['is_receive_mail'];
     811
     812    $params = array(
     813        'c_member_invite'   => db_common_c_member4c_member_id($c_member_id_invite),
     814        'c_member_join'     => db_common_c_member4c_member_id($c_member_id_join),
     815    );
     816    return fetch_send_mail($pc_address, 'm_pc_member_joined', $params, $is_receive_mail);
     817}
     818
     819//招待したメンバーの登録通知(携帯)
     820function do_common_member_joined_mail_send_ktai($c_member_id_join, $c_member_id_invite)
     821{
     822    $c_member_invite = db_common_c_member4c_member_id($c_member_id_invite, true);
     823    $ktai_address = $c_member_invite['secure']['ktai_address'];
     824    $is_receive_ktai_mail = $c_member_invite['is_receive_ktai_mail'];
     825   
     826    $p = array('kad' => t_encrypt(db_member_username4c_member_id($c_member_invite['c_member_id'], true)));
     827    $login_url = openpne_gen_url('ktai', 'page_o_login', $p);
     828
     829    $params = array(
     830        'c_member_invite'   => db_common_c_member4c_member_id($c_member_id_invite),
     831        'c_member_join'     => db_common_c_member4c_member_id($c_member_id_join),
     832        'login_url'         => $login_url,
     833    );
     834    return fetch_send_mail($ktai_address, 'm_ktai_member_joined', $params, $is_receive_ktai_mail);
     835}
     836
    805837?>
  • OpenPNE/trunk/webapp/modules/ktai/do/o_insert_c_member.php

    r2959 r3616  
    140140        // insert c_friend(紹介者)
    141141        db_friend_insert_c_friend($c_member_id, $pre['c_member_id_invite']);
     142        // 招待者に参加通知
     143        do_common_member_joined_mail_send($c_member_id, $pre['c_member_id_invite']);
     144        do_common_member_joined_mail_send_ktai($c_member_id, $pre['c_member_id_invite']);
    142145
    143146        //管理画面で指定したコミュニティに強制参加
  • OpenPNE/trunk/webapp/modules/pc/do/o_regist_prof.php

    r2913 r3616  
    166166            // 招待者とフレンドリンク
    167167            db_friend_insert_c_friend($u, $pre['c_member_id_invite']);
     168            // 招待者に参加通知
     169            do_common_member_joined_mail_send($u, $pre['c_member_id_invite']);
     170            do_common_member_joined_mail_send_ktai($u, $pre['c_member_id_invite']);
    168171
    169172            //管理画面で指定したコミュニティに強制参加
Note: See TracChangeset for help on using the changeset viewer.