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

Changeset 4682


Ignore:
Timestamp:
Dec 13, 2007, 4:51:10 PM (12 years ago)
Author:
kunitada
Message:

#1150 2.8.xで修正した

Location:
OpenPNE/branches/stable-2.8.x/webapp
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.8.x/webapp/lib/db/message.php

    r3680 r4682  
    619619}
    620620
     621// コミュニティ参加者全員にメール
     622function db_message_send_message_commu_send_msg($c_member_id_from, $c_member_id_to, $subject, $body, $c_commu_id)
     623{
     624    //メッセージ
     625    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     626    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     627    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
     628
     629    do_common_send_message_commu_send_msg($c_member_id_to, $c_member_id_from, $c_commu_id);
     630    do_common_send_message_mail_send_ktai($c_member_id_to, $c_member_id_from);
     631}
     632
    621633// メンバー紹介
    622634function db_message_send_message_syoukai_member($c_member_id_from, $c_member_id_to, $subject, $body)
  • OpenPNE/branches/stable-2.8.x/webapp/lib/util/mail_send.php

    r2861 r4682  
    569569    );
    570570    return fetch_send_mail($pc_address, 'm_pc_message_syoukai_commu', $params, $is_receive_mail);
     571}
     572
     573// コミュニティ参加者全員にメール
     574function do_common_send_message_commu_send_msg($c_member_id_to, $c_member_id_from, $c_commu_id)
     575{
     576    //メール
     577    $c_member_to = db_common_c_member4c_member_id($c_member_id_to, true);
     578    $c_commu = db_commu_c_commu4c_commu_id($c_commu_id);
     579    $pc_address = $c_member_to['secure']['pc_address'];
     580    $is_receive_mail = $c_member_to['is_receive_mail'];
     581
     582    $params = array(
     583        "c_member_to"   =>db_common_c_member4c_member_id($c_member_id_to),
     584        "c_member_from" =>db_common_c_member4c_member_id($c_member_id_from),
     585        'c_commu' => $c_commu,
     586    );
     587    return fetch_send_mail($pc_address, 'm_pc_message_commu_send_msg', $params, $is_receive_mail);
    571588}
    572589
  • OpenPNE/branches/stable-2.8.x/webapp/modules/pc/do/c_invite_insert_c_message_commu_invite.php

    r1856 r4682  
    4545        list($msg_subject, $msg_body) =
    4646            create_message_commu_invite($u, $body, $target_c_commu_id);
    47 
    4847        $commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    4948        $c_member_id_admin = $commu['c_member_id_admin'];
  • OpenPNE/branches/stable-2.8.x/webapp/modules/pc/do/c_send_message.php

    r2662 r4682  
    4444        }
    4545
     46        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    4647        foreach ($c_member_id_list as $c_member_id) {
    4748            if ($c_member_id == $u)continue;
    48             db_message_send_message_syoukai_commu($u, $c_member_id, $subject, $body);
     49            db_message_send_message_commu_send_msg($u, $c_member_id, $subject, $body, $target_c_commu_id);
    4950        }
    5051        $p = array('target_c_commu_id' => $target_c_commu_id);
Note: See TracChangeset for help on using the changeset viewer.