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

Changeset 4236


Ignore:
Timestamp:
Sep 30, 2007, 11:59:34 PM (13 years ago)
Author:
ebihara
Message:

#1129:携帯個体識別番号必須制の携帯版新規登録時、リクエスト変数 pre_id を使用しないようにした

Location:
OpenPNE/trunk/webapp
Files:
8 edited

Legend:

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

    r4235 r4236  
    831831
    832832//携帯個体識別番号を登録する必要がある場合に送られるメール(新規登録用)
    833 function do_mail_sns_regist_ktai_id_mail_send_pre($c_member_pre_id, $session, $ktai_address)
     833function do_mail_sns_regist_ktai_id_mail_send_pre($session, $ktai_address)
    834834{
    835835    $params['SNS_NAME'] = SNS_NAME;
    836     $p = array('pre_id' => $c_member_pre_id, 'ses' => $session);
     836    $p = array('ses' => $session);
    837837    $params['url'] = openpne_gen_url('ktai', 'page_o_regist_ktai', $p);
    838838    return fetch_send_mail($ktai_address, 'm_ktai_regist_ktai_id', $params);
  • OpenPNE/trunk/webapp/modules/ktai/do/o_regist_ktai.php

    r4235 r4236  
    3838        // 携帯個体識別番号を取得できなかった場合
    3939        if (!$easy_access_id = OpenPNE_KtaiID::getID()) {
    40             $p = array('ses' => $ses, 'pre_id' => $c_member_pre_id);
     40            $p = array('ses' => $ses);
    4141            openpne_redirect('ktai', 'page_o_regist_ktai_uid_err', $p);
    4242        }
     
    4444        // 携帯個体識別番号が登録済み
    4545        if (db_member_c_member_id4easy_access_id($easy_access_id)) {
    46             $p = array('msg' => 39, 'ses' => $ses, 'pre_id' => $c_member_pre_id);
     46            $p = array('msg' => 39, 'ses' => $ses);
    4747            openpne_redirect('ktai', 'page_o_regist_ktai', $p);
    4848        }
     
    5050        // 携帯個体識別番号がブラックリストに登録済み
    5151        if (db_member_easy_access_id_is_blacklist(md5($easy_access_id))) {
    52             $p = array('msg' => 44, 'ses' => $ses, 'c_member_pre_id' => $c_member_pre_id);
     52            $p = array('msg' => 44, 'ses' => $ses);
    5353            openpne_redirect('ktai', 'page_o_regist_ktai', $p);
    5454        }
     
    105105        do_regist_prof_do_regist2_mail_send($u);
    106106
    107         $p = array('ses' => $ses, 'pre_id' => $c_member_pre_id);
     107        $p = array('ses' => $ses);
    108108
    109109        openpne_redirect('ktai', 'page_o_regist_ktai_end', $p);
  • OpenPNE/trunk/webapp/modules/ktai/page/o_regist_ktai.php

    r4231 r4236  
    1616        // --- リクエスト変数
    1717        $ses = $requests['ses'];
    18         $c_member_id = intval($requests['id']);
    19         $c_member_pre_id = intval($requests['pre_id']);
    2018        // ----------
    2119
    2220        $pre = array();
    2321
    24         // セッションが有効かどうか
    25         if ((!$pre = db_member_c_ktai_address_pre4session($ses)) && !empty($c_member_id)) {  // 既存メンバー
    26             // 無効の場合、login へリダイレクト
    27             $c_member_secure = db_member_c_member_secure4c_member_id($c_member_id);
    28             $p = array('kad' => t_encrypt($c_member_secure['ktai_address']));
    29             openpne_redirect('ktai', 'page_o_login', $p);
    30         } elseif (!empty($c_member_id)) {
    31         } elseif ((!$pre = db_member_c_member_pre4session($ses)) && !empty($c_member_pre_id)) {  // 新規登録
     22        if (!$pre = db_member_c_member_pre4session($ses)) {
    3223            openpne_redirect('ktai', 'page_o_login');
    3324        }
    3425
    35         if (!empty($c_member_id) && ($c_member_id == $pre['c_member_id'])) {
    36             $this->set('c_member_id', $c_member_id);
    37         } elseif (!empty($c_member_pre_id) && ($c_member_pre_id == $pre['c_member_pre_id'])) {
    38             $this->set('c_member_pre_id', $c_member_pre_id);
    39         } else {
    40             openpne_redirect('ktai', 'page_o_login');
    41         }
    4226        $this->set('ses', $ses);
    4327        $this->set('pre', $pre);
  • OpenPNE/trunk/webapp/modules/ktai/validate/do/o_regist_ktai.ini

    r4214 r4236  
    55[password]
    66type = "string"
    7 
    8 [id]
    9 type = "string"
    10 required = 0
    11 
    12 [pre_id]
    13 type = "string"
    14 required = 0
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/o_regist_ktai.ini

    r4214 r4236  
    22type = "string"
    33required = 0
    4 
    5 [id]
    6 type = "string"
    7 required = 0
    8 
    9 [pre_id]
    10 type = "string"
    11 required = 0
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/o_regist_ktai_end.ini

    r4214 r4236  
    22type = "string"
    33required = 0
    4 
    5 [id]
    6 type = "string"
    7 required = 0
    8 
    9 [pre_id]
    10 type = "string"
    11 required = 0
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/o_regist_ktai_uid_err.ini

    r4214 r4236  
    22type = "string"
    33required = 0
    4 
    5 [id]
    6 type = "string"
    7 required = 0
    8 
    9 [pre_id]
    10 type = "string"
    11 required = 0
  • OpenPNE/trunk/webapp/modules/pc/do/o_regist_ktai_address.php

    r4214 r4236  
    5252
    5353        db_member_update_c_member_pre_secure($pre['c_member_pre_id'], array_merge($pre, $c_member_pre_secure), true);
    54         do_mail_sns_regist_ktai_id_mail_send_pre($pre['c_member_pre_id'], $ktai_session, $ktai_address);
     54        do_mail_sns_regist_ktai_id_mail_send_pre($ktai_session, $ktai_address);
    5555        openpne_redirect('pc', 'page_o_regist_ktai_address_end', array('sid' => $pre['session']));
    5656    }
Note: See TracChangeset for help on using the changeset viewer.