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

Changeset 6484


Ignore:
Timestamp:
Apr 9, 2008, 10:51:15 PM (12 years ago)
Author:
ogawa
Message:

#2130:SlavePNEで構築したSNSに秘密の質問と答えを記入する欄があったのを修正(PC版)

Location:
OpenPNE/branches/stable-2.10.x/webapp
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/lib/db/member.php

    r6041 r6484  
    18971897{
    18981898    $c_member = db_member_c_member4c_member_id($c_member_id, true);
    1899    
     1899
    19001900    if (($c_member['nickname'] === '')
    19011901     || !$c_member['birth_year']
    19021902     || !$c_member['birth_month']
    19031903     || !$c_member['birth_day']
    1904      || !$c_member['c_password_query_id']
    1905      || ($c_member['secure']['hashed_password_query_answer'] === '')
    19061904    ) {
    19071905        return 1;
    19081906    }
    1909    
     1907
    19101908    if ($c_member['secure']['pc_address'] === '' && !$is_ktai) {
    19111909        return 2;
     
    19141912        return 2;
    19151913    }
    1916    
     1914
    19171915    return 0;
    19181916}
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/h_config_3.php

    r2909 r6484  
    2727        $ashiato_mail_num= $requests['ashiato_mail_num'];
    2828        $c_member_id_block = $requests['c_member_id_block'];
    29         $c_password_query_id = $requests['c_password_query_id'];
    30         $c_password_query_answer = $requests['c_password_query_answer'];
    3129        $public_flag_diary = util_cast_public_flag_diary($requests['public_flag_diary']);
    3230        $is_shinobiashi = $requests['is_shinobiashi'];
    3331        $schedule_start_day = $requests['schedule_start_day'];
    3432        // ----------
     33
     34        if (IS_SLAVEPNE) {
     35            $c_password_query_id = 0;
     36            $c_password_query_answer = '';
     37        } else {
     38            $c_password_query_id = $requests['c_password_query_id'];
     39            $c_password_query_answer = $requests['c_password_query_answer'];
     40        }
    3541
    3642        $error_messages = array();
     
    5460            }
    5561        }
    56        
     62
    5763        // error
    5864        if ($error_messages) {
     
    6167            exit;
    6268        }
    63        
     69
    6470        if ($rss_url) {
    6571            $c_member = db_member_c_member4c_member_id($u);
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/h_regist_prof.php

    r4632 r6484  
    55 */
    66
    7 /**
    8  * メールアドレス変更
    9  */
    107class pc_do_h_regist_prof extends OpenPNE_Action
    118{
     
    6259            $errors[] = '生年月日を未来に設定することはできません';
    6360        }
    64        
     61
    6562        $prof['profile'] = $c_member_profile_list;
    6663        if ($errors && $mode != "input") {
     
    7067            unset($_SESSION['prof_req']);
    7168        }
    72        
     69
    7370        switch ($mode) {
    7471        case "input":
     
    8683            db_member_config_prof_new($u, $prof);
    8784            db_member_update_c_member_profile($u, $c_member_profile_list);
    88             db_member_update_password_query($u, $prof['c_password_query_id'], $prof['c_password_query_answer']);
    8985            //管理画面で指定したコミュニティに強制参加
    9086            $c_commu_id_list = db_commu_regist_join_list();
     
    9389            }
    9490            unset($_SESSION['prof']);
    95            
     91
    9692            openpne_redirect('pc', 'page_h_home');
    9793            break;
     
    132128                'type' => 'string',
    133129            ),
    134             'c_password_query_id' => array(
    135                 'type' => 'int',
    136                 'required' => '1',
    137                 'caption' => '秘密の質問',
    138                 'required_error' => '秘密の質問を選択してください',
    139                 'min' => '1',
    140             ),
    141             'c_password_query_answer' => array(
    142                 'type' => 'string',
    143                 'required' => '1',
    144                 'caption' => '秘密の質問の答え',
    145             ),
    146130        );
    147131    }
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/page/h_regist_prof.php

    r1856 r6484  
    1818        );
    1919        $this->set('public_flags', $public_flags);
    20        
     20
    2121        $this->set('inc_navi', fetch_inc_navi("h"));
    22        
     22
    2323        $this->set('month_list', p_regist_prof_c_profile_month_list4null());
    2424        $this->set('day_list', p_regist_prof_c_profile_day_list4null());
    25         $this->set('query_list', p_common_c_password_query4null());
    2625
    2726        $this->set('c_profile_list', db_member_c_profile_list());
    28        
     27
    2928        return 'success';
    3029    }
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/page/h_regist_prof_confirm.php

    r1856 r6484  
    1313        $this->set('inc_navi', fetch_inc_navi("h"));
    1414        $this->set('prof', $_SESSION['prof']);
    15         $query_list = p_common_c_password_query4null();
    16         $query_id = $_SESSION['prof']['c_password_query_id'];
    17         $this->set('password_query_name', $query_list[$query_id]);
    18 
    1915        $this->set('profile_list', db_member_c_profile_list4null());
    2016
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/h_config.tpl

    r5342 r6484  
    255255({/if})
    256256
     257({if !$smarty.const.IS_SLAVEPNE})
    257258<tr>
    258259<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
     
    319320</tr>
    320321({*********})
     322({/if})
    321323<tr>
    322324<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/h_regist_prof.tpl

    r4274 r6484  
    338338<tr>
    339339<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    340 <td class="bg_05" align="left" valign="middle">
    341 
    342 <div class="padding_s">
    343 
    344 秘密の質問 <span class="caution">※</span>
    345 
    346 </div>
    347 
    348 </td>
    349 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    350 <td class="bg_02" align="left" valign="middle">
    351 
    352 <div class="padding_s">
    353 
    354 <select name="c_password_query_id">
    355 <option value="">選択してください</option>
    356 ({foreach from=$query_list key=key item=item})
    357 <option value="({$key})"({if $profs.c_password_query_id == $key}) selected="selected"({/if})>({$item})</option>
    358 ({/foreach})
    359 </select>
    360 
    361 </div>
    362 
    363 </td>
    364 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    365 </tr>
    366 ({*********})
    367 <tr>
    368 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    369 </tr>
    370 ({*********})
    371 <tr>
    372 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    373 <td class="bg_05" align="left" valign="middle">
    374 
    375 <div class="padding_s">
    376 
    377 質問の答え <span class="caution">※</span>
    378 
    379 </div>
    380 
    381 </td>
    382 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    383 <td class="bg_02" align="left" valign="middle">
    384 
    385 <div class="padding_s">
    386 
    387 <input name="c_password_query_answer" type="text" value="({$profs.c_password_query_answer})" size="30">
    388 
    389 </div>
    390 
    391 </td>
    392 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    393 </tr>
    394 ({*********})
    395 <tr>
    396 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    397 </tr>
    398 ({*********})
    399 <tr>
    400 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    401340<td class="bg_03" align="center" valign="middle" colspan="3">
    402341
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/h_regist_prof_confirm.tpl

    r4274 r6484  
    227227<tr>
    228228<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    229 <td class="bg_05" align="left" valign="middle">
    230 
    231 <div class="padding_s">
    232 
    233 秘密の質問 <span class="caution">※</span>
    234 
    235 </div>
    236 
    237 </td>
    238 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    239 <td class="bg_02" align="left" valign="middle">
    240 
    241 <div class="padding_s">
    242 
    243 ({$password_query_name|default:"&nbsp;"})
    244 
    245 </div>
    246 
    247 </td>
    248 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    249 </tr>
    250 ({*********})
    251 <tr>
    252 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    253 </tr>
    254 ({*********})
    255 <tr>
    256 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    257 <td class="bg_05" align="left" valign="middle">
    258 
    259 <div class="padding_s">
    260 
    261 質問の答え <span class="caution">※</span>
    262 
    263 </div>
    264 
    265 </td>
    266 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    267 <td class="bg_02" align="left" valign="middle">
    268 
    269 <div class="padding_s">
    270 
    271 ({$prof.c_password_query_answer|default:"&nbsp;"})
    272 
    273 </div>
    274 
    275 </td>
    276 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    277 </tr>
    278 ({*********})
    279 <tr>
    280 <td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    281 </tr>
    282 ({*********})
    283 <tr>
    284 <td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    285229<td class="bg_03" align="center" valign="middle" colspan="3">
    286230
Note: See TracChangeset for help on using the changeset viewer.