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

Changeset 4347


Ignore:
Timestamp:
Oct 11, 2007, 7:52:02 PM (13 years ago)
Author:
ebihara
Message:

#1372:db_member_ktai_insert_c_member()を使用している箇所をutil_regist_c_member()を使うように書き換え

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/modules/ktai/do/o_insert_c_member.php

    r4214 r4347  
    102102
    103103        // insert c_member
    104         $prof['ktai_address'] = $pre['ktai_address'];
    105104        $prof['c_member_id_invite'] = $pre['c_member_id_invite'];
     105
     106        $c_member_secure = array(
     107            'password' => $prof['password'],
     108            'password_query_answer' => $prof['c_password_query_answer'],
     109            'pc_address' => '',
     110            'ktai_address' => $pre['ktai_address'],
     111            'regist_address' => $pre['ktai_address'],
     112        );
    106113
    107114        switch ($prof['public_flag_birth_year']) {
     
    118125        }
    119126
    120         if (!$c_member_id = db_member_ktai_insert_c_member($prof)) {
     127        if (!$c_member_id = util_regist_c_member($prof, $c_member_secure, $c_member_profile_list)) {
    121128            openpne_redirect('ktai', 'page_o_login', array('msg' => 42));
    122129        }
     
    125132        if ($easy_access_id) {
    126133            db_member_update_easy_access_id($c_member_id, $easy_access_id);
    127         }
    128 
    129         if (OPENPNE_USE_POINT_RANK) {
    130             //入会者にポイント加算
    131             $point = db_action_get_point4c_action_id(1);
    132             db_point_add_point($c_member_id, $point);
    133 
    134             //メンバー招待をした人にポイント付与
    135             $point = db_action_get_point4c_action_id(7);
    136             db_point_add_point($pre['c_member_id_invite'], $point);
    137         }
    138 
    139         // insert c_member_profile
    140         db_member_update_c_member_profile($c_member_id, $c_member_profile_list);
    141 
    142         // insert c_friend(紹介者)
    143         db_friend_insert_c_friend($c_member_id, $pre['c_member_id_invite']);
    144 
    145         //管理画面で指定したコミュニティに強制参加
    146         $c_commu_id_list = db_commu_regist_join_list();
    147         foreach ($c_commu_id_list as $c_commu_id) {
    148             db_commu_join_c_commu($c_commu_id, $c_member_id);
    149134        }
    150135
Note: See TracChangeset for help on using the changeset viewer.