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

Changeset 4267


Ignore:
Timestamp:
Oct 2, 2007, 10:01:36 PM (12 years ago)
Author:
ebihara
Message:

#1371:DBにメールアドレスを登録する際、メールアドレスの重複チェックをおこなうようにした

Location:
OpenPNE/trunk/webapp/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/member.php

    r4240 r4267  
    12371237    cache_drop_c_member_profile($c_member_id);
    12381238
     1239    if (util_is_regist_mail_address($pc_address)) {
     1240        return false;
     1241    }
     1242
    12391243    $data = array('pc_address' => t_encrypt($pc_address));
    12401244    $where = array('c_member_id' => intval($c_member_id));
     
    12461250    // function cacheを削除
    12471251    cache_drop_c_member_profile($c_member_id);
     1252
     1253    if (util_is_regist_mail_address($pc_address)) {
     1254        return false;
     1255    }
    12481256
    12491257    $data = array(
     
    12671275            'easy_access_id' => '',
    12681276        );
     1277    } elseif (util_is_regist_mail_address($ktai_address)) {
     1278        $data = array('ktai_address' => t_encrypt($ktai_address));
    12691279    } else {
    1270         $data = array('ktai_address' => t_encrypt($ktai_address));
     1280        return false;
    12711281    }
    12721282    $where = array('c_member_id' => intval($c_member_id));
  • OpenPNE/trunk/webapp/lib/util/util.php

    r3942 r4267  
    544544        return false;
    545545    }
    546    
     546
     547    if (!db_member_is_limit_domain4mail_address($mail_address)) {
     548        return false;
     549    }
     550
    547551    if (db_member_is_sns_join4mail_address($mail_address, $c_member_id)) {
    548552        return false;
    549553    }
    550    
    551     if (!db_member_is_limit_domain4mail_address($mail_address)) {
    552         return false;
    553     }
    554    
     554
    555555    return true;
    556556}
Note: See TracChangeset for help on using the changeset viewer.