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

Changeset 1268


Ignore:
Timestamp:
Dec 18, 2006, 11:05:14 PM (14 years ago)
Author:
takanashi
Message:

旧DBアクセスライブラリから新DBアクセスライブラリへ乗り換え

Location:
OpenPNE/trunk
Files:
321 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/do/csv_member.php

    r968 r1268  
    4444        foreach ($ids as $id) {
    4545            $tmp_c_member = array();
    46             $_tmp_c_member = db_common_c_member4c_member_id($id, false, false, 'private');
     46            $_tmp_c_member = db_member_c_member4c_member_id($id, false, false, 'private');
    4747           
    4848            $tmp_c_member['c_member_id'] = $_tmp_c_member['c_member_id'];
     
    5858            $tmp_c_member['birth_day'] = $_tmp_c_member['birth_day'];
    5959           
    60             $tmp_profile_list = db_common_c_member_profile_list4c_member_id($id, 'private');
    61             $c_profile_list = db_common_c_profile_list4null();
     60            $tmp_profile_list = db_member_c_member_profile_list4c_member_id($id, 'private');
     61            $c_profile_list = db_member_c_profile_list4null();
    6262            foreach($c_profile_list as $key=>$tmp_profile ){
    6363                if (is_array($tmp_profile_list[$tmp_profile['name']]['value'])){
     
    6969                }
    7070            }           
    71             $tmp_secure = db_common_c_member_secure4c_member_id($id);
     71            $tmp_secure = db_member_c_member_secure4c_member_id($id);
    7272            $tmp_c_member['pc_address'] = $tmp_secure['pc_address'];
    7373            $tmp_c_member['ktai_address'] = $tmp_secure['ktai_address'];
     
    8181   
    8282    function get_key_list(){
    83         $c_profile_list = db_common_c_profile_list4null();
     83        $c_profile_list = db_member_c_profile_list4null();
    8484       
    8585        $ley_list[]="メンバーID";
  • OpenPNE/trunk/webapp/modules/admin/do/delete_c_image4c_image_id.php

    r2 r1268  
    1010    function execute($requests)
    1111    {
    12         $c_image = db_admin_c_image4c_image_id($requests['target_c_image_id']);
     12        $c_image = db_image_c_image4c_image_id($requests['target_c_image_id']);
    1313        image_data_delete($c_image['filename']);
    1414        db_admin_delete_c_image_link4image_filename($c_image['filename']);
  • OpenPNE/trunk/webapp/modules/admin/do/delete_kakikomi_c_commu_topic_comment.php

    r783 r1268  
    1010    function execute($requests)
    1111    {
    12         do_c_bbs_delete_c_commu_topic_comment($requests['target_c_commu_topic_comment_id']);
     12        db_commu_delete_c_commu_topic_comment($requests['target_c_commu_topic_comment_id']);
    1313
    1414        module_client_redirect('delete_kakikomi', 'トピックコメントを削除しました');
  • OpenPNE/trunk/webapp/modules/admin/do/import_c_member.php

    r1206 r1268  
    130130            $c_commu_id_list = db_commu_regist_join_list();
    131131            foreach ($c_commu_id_list as $c_commu_id) {
    132                 do_inc_join_c_commu($c_commu_id, $u);
     132                db_commu_join_c_commu($c_commu_id, $u);
    133133            }
    134134
  • OpenPNE/trunk/webapp/modules/admin/do/insert_c_image.php

    r2 r1268  
    66
    77// スキン画像更新
    8 class admin_do_insert_c_image extends OpenPNE_Action
     8class admindb_image_insert_c_image2 extends OpenPNE_Action
    99{
    1010    function execute($requests)
  • OpenPNE/trunk/webapp/modules/admin/do/passwd.php

    r2 r1268  
    2828
    2929        //パスワード変更
    30         do_common_update_password($c_member_id, $password);
     30        db_member_update_password($c_member_id, $password);
    3131
    3232        //メール送信
    33         $c_member_secure = db_common_c_member_secure4c_member_id($c_member_id);
     33        $c_member_secure = db_member_c_member_secure4c_member_id($c_member_id);
    3434        if ($c_member_secure['pc_address']) {
    3535            do_password_query_mail_send($c_member_id, $c_member_secure['pc_address'], $password);
  • OpenPNE/trunk/webapp/modules/admin/do/send_invites.php

    r924 r1268  
    3434            }
    3535
    36             if (p_is_sns_join4mail_address($mail)) { // 登録済み
     36            if (db_member_is_sns_join4mail_address($mail)) { // 登録済み
    3737                $errors[] = $mail;
    3838            } elseif (!db_member_is_limit_domain4mail_address($mail)) { // ドメイン制限
     
    6666
    6767                    // c_member_ktai_pre に追加
    68                     if (do_common_c_member_ktai_pre4ktai_address($mail)) {
    69                         do_update_c_member_ktai_pre($session, $mail, $c_member_id_invite);
     68                    if (db_member_c_member_ktai_pre4ktai_address($mail)) {
     69                        db_member_update_c_member_ktai_pre($session, $mail, $c_member_id_invite);
    7070                    } else {
    71                         do_insert_c_member_ktai_pre($session, $mail, $c_member_id_invite);
     71                        db_member_insert_c_member_ktai_pre($session, $mail, $c_member_id_invite);
    7272                    }
    7373
     
    8686
    8787                    // c_member_pre に追加
    88                     if (do_common_c_member_pre4pc_address($mail)) {
    89                         do_h_invite_update_c_invite($c_member_id_invite, $mail, $requests['message'], $session);
     88                    if (db_member_c_member_pre4pc_address($mail)) {
     89                        db_member_update_c_invite($c_member_id_invite, $mail, $requests['message'], $session);
    9090                    } else {
    91                         do_h_invite_insert_c_invite($c_member_id_invite, $mail, $requests['message'], $session);
     91                        db_member_insert_c_invite($c_member_id_invite, $mail, $requests['message'], $session);
    9292                    }
    9393
    94                     do_h_invite_insert_c_invite_mail_send($c_member_id_invite, $session, $requests['message'], $mail);
     94                    db_member_insert_c_invite_mail_send($c_member_id_invite, $session, $requests['message'], $mail);
    9595                }
    9696            }
  • OpenPNE/trunk/webapp/modules/admin/do/send_messages_all.php

    r1265 r1268  
    2424        // 送信者はとりあえず1番で固定
    2525        $c_member_id_from = 1;
    26         $c_member_id_list = p_common_c_member_id_list4null();
     26        $c_member_id_list = db_member_c_member_id_list4null();
    2727
    2828        $send_num = 0;
  • OpenPNE/trunk/webapp/modules/admin/lib/db_admin.php

    r1265 r1268  
    1515    $c_member_list = array();
    1616    foreach ($ids as $id) {
    17         $c_member_list[] = db_common_c_member4c_member_id($id, true, true, 'private');
     17        $c_member_list[] = db_member_c_member4c_member_id($id, true, true, 'private');
    1818    }
    1919
     
    3535    $c_member_list = array();
    3636    foreach ($list as $c_member_id) {
    37         $c_member_list[] = db_common_c_member4c_member_id($c_member_id, true, true, 'private');
     37        $c_member_list[] = db_member_c_member4c_member_id($c_member_id, true, true, 'private');
    3838    }
    3939    return $c_member_list;
     
    582582    $c_member_list = array();
    583583    foreach ($ids as $id) {
    584         $c_member_list[] = db_common_c_member4c_member_id($id, true, true, 'private');
     584        $c_member_list[] = db_member_c_member4c_member_id($id, true, true, 'private');
    585585    }
    586586
     
    613613    }
    614614    //プロフィール
    615     $profile_list = db_common_c_profile_list();
     615    $profile_list = db_member_c_profile_list();
    616616
    617617    foreach ($profile_list as $key => $value) {
     
    625625function do_admin_send_mail($c_member_id, $subject, $body)
    626626{
    627     $c_member = db_common_c_member4c_member_id($c_member_id, true);
     627    $c_member = db_member_c_member4c_member_id($c_member_id, true);
    628628
    629629    if ($c_member['secure']['pc_address']) {
     
    650650        return true;
    651651    } else {
    652         _do_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     652        db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
    653653        do_admin_send_message_mail_send($c_member_id_to, $c_member_id_from);
    654654        do_admin_send_message_mail_send_ktai($c_member_id_to, $c_member_id_from);
     
    662662function do_admin_send_message_mail_send($c_member_id_to, $c_member_id_from)
    663663{
    664     $c_member_to = db_common_c_member4c_member_id($c_member_id_to, true);
     664    $c_member_to = db_member_c_member4c_member_id($c_member_id_to, true);
    665665    $pc_address = $c_member_to['secure']['pc_address'];
    666666    $is_receive_mail = $c_member_to['is_receive_mail'];
    667667
    668668    $params = array(
    669         "c_member_to"   => db_common_c_member4c_member_id($c_member_id_to),
    670         "c_member_from" => db_common_c_member4c_member_id($c_member_id_from),
     669        "c_member_to"   => db_member_c_member4c_member_id($c_member_id_to),
     670        "c_member_from" => db_member_c_member4c_member_id($c_member_id_from),
    671671    );
    672672    return admin_fetch_send_mail($pc_address, 'm_pc_message_zyushin', $params, $is_receive_mail);
     
    676676function do_admin_send_message_mail_send_ktai($c_member_id_to, $c_member_id_from)
    677677{
    678     $c_member_to = db_common_c_member4c_member_id($c_member_id_to, true);
     678    $c_member_to = db_member_c_member4c_member_id($c_member_id_to, true);
    679679    $ktai_address = $c_member_to['secure']['ktai_address'];
    680680    $is_receive_ktai_mail = $c_member_to['is_receive_ktai_mail'];
     
    683683
    684684    $params = array(
    685         'c_member_to'   => db_common_c_member4c_member_id($c_member_id_to),
    686         'c_member_from' => db_common_c_member4c_member_id($c_member_id_from),
     685        'c_member_to'   => db_member_c_member4c_member_id($c_member_id_to),
     686        'c_member_from' => db_member_c_member4c_member_id($c_member_id_from),
    687687        'login_url' => $login_url,
    688688    );
     
    907907    foreach($list as $key => $value) {
    908908        if ($value['target_c_commu_id']) {
    909             $c_commu = _db_c_commu4c_commu_id($value['target_c_commu_id']);
     909            $c_commu = db_commu_c_commu4c_commu_id($value['target_c_commu_id']);
    910910            $return[] = array_merge($value, $c_commu);
    911911            $sum += $value['count'];
     
    991991            $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
    992992            $c_commu_topic['topic_name'] = $c_commu_topic['name'];
    993             $c_commu = _db_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
     993            $c_commu = db_commu_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
    994994            $c_commu_topic['commu_name'] = $c_commu['name'];
    995995            $return[] = array_merge($value, $c_commu_topic);
     
    10551055        if ($value['target_c_diary_id']) {
    10561056            $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
    1057             $c_member = db_common_c_member4c_member_id($c_diary['c_member_id']);
     1057            $c_member = db_member_c_member4c_member_id($c_diary['c_member_id']);
    10581058            $c_diary['nickname'] = $c_member['nickname'];
    10591059            $return[] = array_merge($value, $c_diary);
     
    11991199    foreach($list as $key => $value) {
    12001200        if ($value['target_c_member_id']) {
    1201             $c_member = db_common_c_member4c_member_id($value['target_c_member_id']);
     1201            $c_member = db_member_c_member4c_member_id($value['target_c_member_id']);
    12021202            $return[] = array_merge($value, $c_member);
    12031203            $sum += $value['count'];
     
    16421642    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
    16431643    foreach ($list as $key => $value) {
    1644         $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     1644        $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
    16451645        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
    16461646    }
     
    16881688    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
    16891689    foreach ($list as $key => $value) {
    1690         $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     1690        $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
    16911691        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
    16921692    }
  • OpenPNE/trunk/webapp/modules/admin/lib/etc_admin.php

    r1076 r1268  
    7373    if ($upfile_obj &&
    7474        is_uploaded_file($upfile_obj['tmp_name']) &&
    75         _do_insert_c_image($filename, $upfile_obj['tmp_name']) > 0)
     75        db_image_insert_c_image2($filename, $upfile_obj['tmp_name']) > 0)
    7676    {
    7777        return $filename;
  • OpenPNE/trunk/webapp/modules/admin/page/delete_c_image_confirm.php

    r2 r1268  
    1212        $v = array();
    1313
    14         $v['c_image'] = db_admin_c_image4c_image_id($requests['target_c_image_id']);
     14        $v['c_image'] = db_image_c_image4c_image_id($requests['target_c_image_id']);
    1515
    1616        $this->set($v);
  • OpenPNE/trunk/webapp/modules/admin/page/delete_c_member_confirm.php

    r2 r1268  
    1212        $v = array();
    1313
    14         $v['c_profile_list'] = db_common_c_profile_list4null();
    15         $v['c_member'] = db_common_c_member4c_member_id($requests['target_c_member_id'], true, true, 'private');
     14        $v['c_profile_list'] = db_member_c_profile_list4null();
     15        $v['c_member'] = db_member_c_member4c_member_id($requests['target_c_member_id'], true, true, 'private');
    1616
    1717        $this->set($v);
  • OpenPNE/trunk/webapp/modules/admin/page/delete_kakikomi.php

    r783 r1268  
    2121
    2222        if ($requests['target_c_commu_id']) {
    23             $v['c_commu'] = _db_c_commu4c_commu_id($requests['target_c_commu_id']);
     23            $v['c_commu'] = db_commu_c_commu4c_commu_id($requests['target_c_commu_id']);
    2424        }
    2525
  • OpenPNE/trunk/webapp/modules/admin/page/edit_c_banner.php

    r2 r1268  
    1313
    1414        $v['SNS_NAME'] = SNS_NAME;
    15         $v['is_image'] = db_admin_is_c_image4filename($requests['filename']);
     15        $v['is_image'] = db_image_is_c_image4filename($requests['filename']);
    1616
    1717        $v['c_banner_top_list'] = db_admin_c_banner_list4null('TOP');
  • OpenPNE/trunk/webapp/modules/admin/page/edit_c_image.php

    r2 r1268  
    1313
    1414        $v['SNS_NAME'] = SNS_NAME;
    15         $v['is_image'] = db_admin_is_c_image4filename($requests['filename']);
     15        $v['is_image'] = db_image_is_c_image4filename($requests['filename']);
    1616
    1717        $this->set($v);
  • OpenPNE/trunk/webapp/modules/admin/page/edit_c_profile.php

    r2 r1268  
    1212        $v = array();
    1313
    14         $v['c_profile_list'] = db_common_c_profile_list();
     14        $v['c_profile_list'] = db_member_c_profile_list();
    1515
    1616        $this->set($v);
  • OpenPNE/trunk/webapp/modules/admin/page/list_c_image.php

    r1197 r1268  
    1515        $v['SNS_NAME'] = SNS_NAME;
    1616
    17         $c_image_list = db_admin_c_image_list($requests['page'], $requests['page_size'], $pager);
     17        $c_image_list = db_image_c_image_list($requests['page'], $requests['page_size'], $pager);
    1818
    1919        //ファイル名からリンク先を生成
  • OpenPNE/trunk/webapp/modules/admin/page/list_c_member.php

    r284 r1268  
    3535
    3636        //絞り込みのドロップダウンを作る用
    37         $v['profile_list'] = db_common_c_profile_list();;
     37        $v['profile_list'] = db_member_c_profile_list();;
    3838
    3939        //開始年が終了年より大きい
     
    4343
    4444        $v['SNS_NAME'] = SNS_NAME;
    45         $v['c_profile_list'] = db_common_c_profile_list4null();
     45        $v['c_profile_list'] = db_member_c_profile_list4null();
    4646        if ($requests['mail_address']) {
    4747            $v['c_member_list'] = db_admin_c_member4mail_address($requests['mail_address']);
     
    5151        foreach ($v['c_member_list'] as $key => $value) {
    5252            $v['c_member_list'][$key]['c_member_invite'] =
    53                 db_common_c_member4c_member_id_LIGHT($value['c_member_id_invite']);
     53                db_member_c_member4c_member_id_LIGHT($value['c_member_id_invite']);
    5454        }
    5555
  • OpenPNE/trunk/webapp/modules/admin/page/manage_c_commu.php

    r2 r1268  
    1313        $list = db_commu_regist_join_list();
    1414        foreach ($list as $c_commu_id) {
    15             $c_commu_list[] = _db_c_commu4c_commu_id($c_commu_id);
     15            $c_commu_list[] = db_commu_c_commu4c_commu_id($c_commu_id);
    1616        }
    1717        $this->set('c_commu_list', $c_commu_list);
  • OpenPNE/trunk/webapp/modules/admin/page/passwd.php

    r2 r1268  
    1313
    1414        $v['SNS_NAME'] = SNS_NAME;
    15         $v['c_member'] = db_common_c_member4c_member_id_LIGHT($requests['target_c_member_id']);
     15        $v['c_member'] = db_member_c_member4c_member_id_LIGHT($requests['target_c_member_id']);
    1616
    1717        $this->set($v);
  • OpenPNE/trunk/webapp/modules/admin/page/send_invites_confirm.php

    r2 r1268  
    2121            ) {
    2222            $params = array(
    23                 'c_member'       => db_common_c_member4c_member_id($c_member_id_invite),
     23                'c_member'       => db_member_c_member4c_member_id($c_member_id_invite),
    2424                'sid'            => 'xxxxxxxxxx',
    2525                'invite_message' => $requests['message'],
     
    3636            $params['SNS_NAME'] = SNS_NAME;
    3737            $params['url'] = openpne_gen_url('ktai', 'page_o_regist_pre') . '&ses=xxxxxxxxxx';
    38             $params['c_member'] = db_common_c_member4c_member_id($c_member_id_invite);
     38            $params['c_member'] = db_member_c_member4c_member_id($c_member_id_invite);
    3939            $params['message'] = $requests['message'];
    4040            list($subject, $body) = fetch_mail_m_tpl('m_ktai_regist_invite', $params);
  • OpenPNE/trunk/webapp/modules/admin/page/send_messages.php

    r2 r1268  
    1818        $v['c_member_list'] = array();
    1919        foreach ($requests['c_member_ids'] as $c_member_id) {
    20             $v['c_member_list'][$c_member_id] = db_common_c_member4c_member_id($c_member_id, true);
     20            $v['c_member_list'][$c_member_id] = db_member_c_member4c_member_id($c_member_id, true);
    2121        }
    2222
  • OpenPNE/trunk/webapp/modules/admin/page/send_messages_search.php

    r879 r1268  
    1212        $cond_list = validate_cond($_REQUEST);
    1313
    14         $profile_list = db_common_c_profile_list();
     14        $profile_list = db_member_c_profile_list();
    1515        $profile_value_list = array();
    1616        foreach ($cond_list as $key=>$each_cond) {
  • OpenPNE/trunk/webapp/modules/api/lib/xmlrpc/000_auth.php

    r2 r1268  
    2929    $datetime    = $params['dt'];
    3030
    31     if (!db_common_c_member4c_member_id_LIGHT($c_member_id)) {
     31    if (!db_member_c_member4c_member_id_LIGHT($c_member_id)) {
    3232        return xmlrpc_get_fault_response(56);
    3333    }
  • OpenPNE/trunk/webapp/modules/api/lib/xmlrpc/001_get_c_member.php

    r2 r1268  
    2424
    2525    // my_c_member_id が不正
    26     if (!db_common_c_member4c_member_id_LIGHT($m_id)) {
     26    if (!db_member_c_member4c_member_id_LIGHT($m_id)) {
    2727        return xmlrpc_get_fault_response(56);
    2828    }
     
    3737
    3838    // target_c_member_id が不正
    39     if (!$c_member = db_common_c_member4c_member_id($t_id, false, true, $public_flag)) {
     39    if (!$c_member = db_member_c_member4c_member_id($t_id, false, true, $public_flag)) {
    4040        return xmlrpc_get_fault_response(56);
    4141    }
    4242
    4343    // アクセスブロック判定
    44     if (p_common_is_access_block($m_id, $t_id)) {
     44    if (db_member_is_access_block($m_id, $t_id)) {
    4545        $result = array(
    4646            'c_member_id' => $t_id,
  • OpenPNE/trunk/webapp/modules/api/lib/xmlrpc/101_add_point.php

    r2 r1268  
    2222    $point = intval($params['point']);
    2323
    24     if (!db_common_c_member4c_member_id_LIGHT($c_member_id)) {
     24    if (!db_member_c_member4c_member_id_LIGHT($c_member_id)) {
    2525        return xmlrpc_get_fault_response(56);
    2626    }
  • OpenPNE/trunk/webapp/modules/ktai/do/c_bbs_delete_c_commu_topic_comment.php

    r2 r1268  
    88 * トピックコメントを削除
    99 */
    10 class ktai_do_c_bbs_delete_c_commu_topic_comment extends OpenPNE_Action
     10class ktai_db_commu_delete_c_commu_topic_comment extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3434        //---
    3535
    36         do_c_bbs_delete_c_commu_topic_comment($target_c_commu_topic_comment_id);
     36        db_commu_delete_c_commu_topic_comment($target_c_commu_topic_comment_id);
    3737
    3838        $p = array('target_c_commu_topic_id' => $c_commu_topic_comment['c_commu_topic_id']);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_bbs_insert_c_commu_topic_comment.php

    r102 r1268  
    88 * トピックコメント書き込み
    99 */
    10 class ktai_do_c_bbs_insert_c_commu_topic_comment extends OpenPNE_Action
     10class ktai_db_commu_insert_c_commu_topic_comment_2 extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    4040        }
    4141
    42         $insert_id = do_c_bbs_insert_c_commu_topic_comment($u, $target_c_commu_topic_id, $body);
     42        $insert_id = db_commu_insert_c_commu_topic_comment_2($u, $target_c_commu_topic_id, $body);
    4343
    4444        //イベントのメンバーに追加
     
    4646            do_c_event_add_insert_c_event_member($target_c_commu_topic_id, $u);
    4747        } elseif ($requests['cancel_event']) {
    48             do_c_event_add_delete_c_event_member($target_c_commu_topic_id, $u);
     48            db_commu_delete_c_event_member($target_c_commu_topic_id, $u);
    4949        }
    5050
  • OpenPNE/trunk/webapp/modules/ktai/do/c_edit_member_insert_c_commu_admin_confirm.php

    r102 r1268  
    3232        //メッセージ
    3333        $c_member_id_from = $u;
    34         $c_member_from    = db_common_c_member4c_member_id($c_member_id_from);
     34        $c_member_from    = db_member_c_member4c_member_id($c_member_id_from);
    3535        $c_member_to      = $target_c_member_id;
    36         $c_commu          = _db_c_commu4c_commu_id($target_c_commu_id);
     36        $c_commu          = db_commu_c_commu4c_commu_id($target_c_commu_id);
    3737
    3838        $subject ="コミュニティ管理者交代要請メッセージ";
     
    4545            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    4646
    47         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     47        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    4848
    4949        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_edit_member_insert_c_commu_sub_admin_confirm.php

    r1216 r1268  
    3333        //メッセージ
    3434        $c_member_id_from = $u;
    35         $c_member_from    = db_common_c_member4c_member_id($c_member_id_from);
     35        $c_member_from    = db_member_c_member4c_member_id($c_member_id_from);
    3636        $c_member_to      = $target_c_member_id;
    37         $c_commu          = _db_c_commu4c_commu_id($target_c_commu_id);
     37        $c_commu          = db_commu_c_commu4c_commu_id($target_c_commu_id);
    3838
    3939        $subject ="コミュニティ副管理者要請メッセージ";
     
    4646            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    4747
    48         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     48        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    4949
    5050        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_event_add_insert_c_commu_topic.php

    r1216 r1268  
    55 */
    66
    7 class ktai_do_c_event_add_insert_c_commu_topic extends OpenPNE_Action
     7class ktai_db_commu_insert_c_commu_topic extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    2222        }
    2323
    24         $c_commu = p_c_home_c_commu4c_commu_id($event['c_commu_id']);
     24        $c_commu = db_commu_c_commu4c_commu_id2($event['c_commu_id']);
    2525
    2626        //トピック作成権限チェック
     
    8282            "event_flag"        => 1,
    8383        );
    84         $c_commu_topic_id = do_c_event_add_insert_c_commu_topic($insert_c_commu_topic);
     84        $c_commu_topic_id = db_commu_insert_c_commu_topic($insert_c_commu_topic);
    8585
    8686        $insert_c_commu_topic_comment = array(
     
    9494            "image_filename3"  => '',
    9595        );
    96         $insert_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     96        $insert_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    9797
    9898        //お知らせメール送信(携帯へ)
     
    101101        send_bbs_info_mail_pc($insert_id, $u);
    102102
    103         do_c_event_add_insert_c_event_member_as_admin($c_commu_topic_id, $u);
     103        db_commu_insert_c_event_member_as_admin($c_commu_topic_id, $u);
    104104
    105105        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_event_edit_update_c_commu_topic.php

    r284 r1268  
    55 */
    66
    7 class ktai_do_c_event_edit_update_c_commu_topic extends OpenPNE_Action
     7class ktai_db_commu_update_c_commu_topic extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    2626        //イベント管理者 or コミュニティ管理者
    2727
    28         if (!_db_is_c_event_admin($c_commu_topic_id, $u) &&
    29             !_db_is_c_commu_admin($event['c_commu_id'], $u)) {
     28        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) &&
     29            !db_commu_is_c_commu_admin($event['c_commu_id'], $u)) {
    3030            handle_kengen_error();
    3131        }
     
    7878            'event_flag'        => 1,
    7979        );
    80         do_c_event_edit_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
     80        db_commu_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
    8181
    8282
     
    8484            'body' => $event['detail'],
    8585        );
    86         do_c_event_edit_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
     86        db_commu_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
    8787
    8888        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_event_mail.php

    r102 r1268  
    1919        // ----------
    2020
    21         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     21        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    2222        $c_commu_id = $c_topic['c_commu_id'];
    2323
     
    2525
    2626        //イベントの管理者でないと送信できない
    27         if (!_db_is_c_event_admin($c_commu_topic_id, $u)) {
     27        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
    2828            handle_kengen_error();
    2929        }
     
    3535
    3636        foreach ($c_member_ids as $key => $value) {
    37             do_common_send_message_event_message($u, $value, $msg_subject, $msg_body);
     37            db_message_send_message_event_message($u, $value, $msg_subject, $msg_body);
    3838        }
    3939
  • OpenPNE/trunk/webapp/modules/ktai/do/c_home_update_is_receive_mail.php

    r276 r1268  
    88 * コミュニティメール受信設定を変更
    99 */
    10 class ktai_do_c_home_update_is_receive_mail extends OpenPNE_Action
     10class ktai_db_commu_update_is_receive_mail extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3232
    3333        //PC&ktaiの両方を一度に更新
    34         do_c_home_update_is_receive_mail($target_c_commu_id, $u, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
     34        db_commu_update_is_receive_mail($target_c_commu_id, $u, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
    3535
    3636        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_invite_insert_c_message_commu_invite.php

    r2 r1268  
    4343        //フレンド
    4444
    45         $status = db_common_friend_status($u, $target_c_member_id);
     45        $status = db_friend_status($u, $target_c_member_id);
    4646        if (!$status['is_friend']) {
    4747            handle_kengen_error();
     
    5252            create_message_commu_invite($u, $body, $target_c_commu_id);
    5353
    54         do_common_send_message_syoukai_commu($u, $target_c_member_id, $msg_subject, $msg_body);
     54        db_message_send_message_syoukai_commu($u, $target_c_member_id, $msg_subject, $msg_body);
    5555
    56         $commu = _db_c_commu4c_commu_id($target_c_commu_id);
     56        $commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    5757        $c_member_id_admin = $commu['c_member_id_admin'];
    5858        $public_flag = $commu['public_flag'];
  • OpenPNE/trunk/webapp/modules/ktai/do/c_join_request_insert_c_commu_member_confirm.php

    r2 r1268  
    4848
    4949        //メッセージ
    50         $c_commu        = _db_c_commu4c_commu_id($target_c_commu_id);
     50        $c_commu        = db_commu_c_commu4c_commu_id($target_c_commu_id);
    5151        $c_member_id_to = $c_commu['c_member_id_admin'];
    52         $c_member_from  = db_common_c_member4c_member_id($c_member_id_from);
     52        $c_member_from  = db_member_c_member4c_member_id($c_member_id_from);
    5353
    5454        $subject ="コミュニティ参加要請メッセージ";
     
    6161            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    6262
    63         do_common_send_message_syoudaku($c_member_id_from, $c_member_id_to, $subject, $body_disp);
     63        db_message_send_message_syoudaku($c_member_id_from, $c_member_id_to, $subject, $body_disp);
    6464
    6565        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/c_topic_add_insert_c_commu_topic.php

    r1216 r1268  
    3232        }
    3333
    34         $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id);
     34        $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id);
    3535
    3636        //トピック作成権限チェック
     
    4646            "event_flag"  => 0
    4747        );
    48         $c_commu_topic_id = do_c_event_add_insert_c_commu_topic($insert_c_commu_topic);
     48        $c_commu_topic_id = db_commu_insert_c_commu_topic($insert_c_commu_topic);
    4949
    5050        $insert_c_commu_topic_comment = array(
     
    5858            "image_filename3" =>"",
    5959        );
    60         $insert_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     60        $insert_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    6161
    6262        //お知らせメール送信(携帯へ)
  • OpenPNE/trunk/webapp/modules/ktai/do/c_topic_edit_update_c_commu_topic.php

    r102 r1268  
    2929        $c_commu_id = $c_topic['c_commu_id'];
    3030
    31         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) &&
    32             !_db_is_c_commu_admin($c_commu_id, $u)) {
     31        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) &&
     32            !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    3333            handle_kengen_error();
    3434        }
     
    3939            'event_flag' => 0,
    4040        );
    41         do_c_event_edit_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
     41        db_commu_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
    4242
    4343        $update_c_commu_topic_comment = array(
    4444            'body' => $body,
    4545        );
    46         do_c_event_edit_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
     46        db_commu_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
    4747
    4848        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/f_intro_delete.php

    r2 r1268  
    2222        //フレンド
    2323
    24         $status = db_common_friend_status($u, $target_c_member_id);
     24        $status = db_friend_status($u, $target_c_member_id);
    2525        if (!$status['is_friend']) {
    2626            handle_kengen_error();
  • OpenPNE/trunk/webapp/modules/ktai/do/f_intro_edit_update_c_friend.php

    r1265 r1268  
    2929        //フレンド
    3030
    31         $status = db_common_friend_status($u, $target_c_member_id);
     31        $status = db_friend_status($u, $target_c_member_id);
    3232        if (!$status['is_friend']) {
    3333            handle_kengen_error();
     
    3636
    3737        //紹介文を書いた人にポイント付与
    38         if(!p_f_intro_edit_intro_body4c_member_id($u, $target_c_member_id)){
     38        if(!db_friend_intro_body4c_member_id($u, $target_c_member_id)){
    3939            $point = db_action_get_point4c_action_id(5);
    4040            db_point_add_point($u, $point);
  • OpenPNE/trunk/webapp/modules/ktai/do/f_intro_from_delete.php

    r2 r1268  
    2222        //フレンド
    2323
    24         $status = db_common_friend_status($u, $target_c_member_id);
     24        $status = db_friend_status($u, $target_c_member_id);
    2525        if (!$status['is_friend']) {
    2626            handle_kengen_error();
  • OpenPNE/trunk/webapp/modules/ktai/do/f_link_request_insert_c_friend_confirm.php

    r102 r1268  
    2525        //フレンドでない and フレンド承認待ちでない
    2626
    27         $status = db_common_friend_status($u, $target_c_member_id);
     27        $status = db_friend_status($u, $target_c_member_id);
    2828        if ($status['is_friend']) {
    2929            ktai_display_error('このメンバーは既に'.WORD_MY_FRIEND_HALF.'に登録されています。');
     
    3333
    3434        // アクセスブロック
    35         if (p_common_is_access_block($u, $target_c_member_id)) {
     35        if (db_member_is_access_block($u, $target_c_member_id)) {
    3636            openpne_redirect('ktai', 'page_h_access_block');
    3737        }
     
    4747
    4848        //メッセージ
    49         $c_member_to   = db_common_c_member4c_member_id($target_c_member_id);
    50         $c_member_from = db_common_c_member4c_member_id($c_member_id_from);
     49        $c_member_to   = db_member_c_member4c_member_id($target_c_member_id);
     50        $c_member_from = db_member_c_member4c_member_id($c_member_id_from);
    5151
    5252        $subject =WORD_FRIEND."リンク要請メッセージ";
     
    5959            "この要請について、承認待ちリストから承認または拒否を選択してください。";
    6060
    61         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     61        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    6262
    6363        $p = array('target_c_member_id' => $target_c_member_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/f_message_send_insert_c_message.php

    r102 r1268  
    2929
    3030        // アクセスブロック
    31         if (p_common_is_access_block($u, $c_member_id_to)) {
     31        if (db_member_is_access_block($u, $c_member_id_to)) {
    3232            openpne_redirect('ktai', 'page_h_access_block');
    3333        }
     
    4444        }
    4545
    46         do_common_send_message($u, $c_member_id_to, $subject, $body);
     46        db_message_send_message($u, $c_member_id_to, $subject, $body);
    4747
    4848        $p = array('target_c_member_id' => $c_member_id_to);
  • OpenPNE/trunk/webapp/modules/ktai/do/fh_diary_insert_c_diary_comment.php

    r1265 r1268  
    2929        $c_diary = db_diary_get_c_diary4id($target_c_diary_id);
    3030        $target_c_member_id = $c_diary['c_member_id'];
    31         $target_c_member = db_common_c_member4c_member_id($target_c_member_id);
     31        $target_c_member = db_member_c_member4c_member_id($target_c_member_id);
    3232
    3333        if ($u != $target_c_member_id) {
     
    3737            }
    3838            //アクセスブロック設定
    39             if (p_common_is_access_block($u, $target_c_member_id)) {
     39            if (db_member_is_access_block($u, $target_c_member_id)) {
    4040                openpne_redirect('ktai', 'page_h_access_block');
    4141            }
  • OpenPNE/trunk/webapp/modules/ktai/do/h_com_add_insert_c_commu.php

    r102 r1268  
    2929
    3030        //作成者をコミュメンバーにする
    31         do_inc_join_c_commu($c_commu_id, $c_member_id);
     31        db_commu_join_c_commu($c_commu_id, $c_member_id);
    3232
    3333        $p = array('target_c_commu_id' => $c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_access_block_update.php

    r102 r1268  
    1717        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1818
    19         do_h_config_3_insert_c_access_block($u, $requests['c_member_id_block']);
     19        db_member_h_config_3_insert_c_access_block($u, $requests['c_member_id_block']);
    2020
    2121        $p = array('msg' => 36);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_easy_login.php

    r2 r1268  
    2727        if (!$requests['delete']) {
    2828            // update
    29             db_ktai_update_easy_access_id($u, $easy_access_id);
     29            db_member_update_easy_access_id($u, $easy_access_id);
    3030            $p = array('msg' => 28);
    3131            openpne_redirect('ktai', 'page_h_config', $p);
    3232        } else {
    3333            // delete
    34             db_ktai_update_easy_access_id($u, '');
     34            db_member_update_easy_access_id($u, '');
    3535            $p = array('msg' => 29);
    3636            openpne_redirect('ktai', 'page_h_config', $p);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_image_change_main_image.php

    r2 r1268  
    1515
    1616        //メイン画像変更
    17         do_h_config_image_change_c_member_main_image($u, $img_num);
     17        db_member_change_c_member_main_image($u, $img_num);
    1818
    1919        openpne_redirect('ktai', 'page_h_config_image');
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_image_delete_image.php

    r2 r1268  
    1414        $img_num = $requests['img_num'];
    1515
    16         $c_member = db_common_c_member4c_member_id($u);
     16        $c_member = db_member_c_member4c_member_id($u);
    1717        if (!$img_num) {
    1818            if ($c_member['image_filename'] == $c_member['image_filename_1']) {
     
    2626
    2727        image_data_delete($c_member['image_filename_'.$img_num]);
    28         do_h_config_image_delete_c_member_image_new($u, $img_num);
     28        db_member_delete_c_member_image_new($u, $img_num);
    2929
    3030        if ($c_member['image_filename'] == $c_member['image_filename_'.$img_num]) {
    31             do_h_config_image_change_c_member_main_image($u, 1);
     31            db_member_change_c_member_main_image($u, 1);
    3232        }
    3333
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_mail_ashiato_update.php

    r2 r1268  
    1717        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1818
    19         db_ktai_update_ashiato_mail_num($u, $requests['ashiato_mail_num']);
     19        db_member_update_ashiato_mail_num($u, $requests['ashiato_mail_num']);
    2020
    2121        $p = array('msg' => 34);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_mail_insert_c_ktai_address_pre.php

    r924 r1268  
    3333        }
    3434
    35         if (p_is_sns_join4mail_address($ktai_address)) {
     35        if (db_member_is_sns_join4mail_address($ktai_address)) {
    3636            // このアドレスはすでに登録されています
    3737            $p = array('msg' => 17);
     
    4545        }
    4646
    47         k_do_delete_c_member_ktai_pre4ktai_address($ktai_address);
    48         k_do_delete_c_ktai_address_pre4ktai_address($ktai_address);
     47        db_member_delete_c_member_ktai_pre4id4ktai_address($ktai_address);
     48        db_member_delete_c_ktai_address_pre4ktai_address($ktai_address);
    4949
    5050        $session = create_hash();
    51         k_do_insert_c_ktai_address_pre($u, $session, $ktai_address);
     51        db_member_insert_c_ktai_address_pre($u, $session, $ktai_address);
    5252
    5353        do_mail_sns_change_ktai_mail_send($u, $session, $ktai_address);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_mail_receive_update_mail_receive.php

    r2 r1268  
    1616        // ----------
    1717
    18         db_ktai_update_mail_receive($u, $is_receive_ktai_mail);
     18        db_member_update_mail_receive($u, $is_receive_ktai_mail);
    1919
    2020        $p = array('msg' => 32);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_password_query_update_password_query.php

    r2 r1268  
    3636        }
    3737
    38         db_ktai_update_password_query($u, $requests['c_password_query_id'], $requests['password_query_answer']);
     38        db_member_update_password_query($u, $requests['c_password_query_id'], $requests['password_query_answer']);
    3939
    4040        $p = array('msg' => 24);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_password_update_password.php

    r2 r1268  
    3131        }
    3232
    33         do_common_update_password($u, $new_password);
     33        db_member_update_password($u, $new_password);
    3434
    3535        $p = array('msg' => 21);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_prof_update_c_member.php

    r882 r1268  
    3131
    3232        // 値の整合性をチェック(DB)
    33         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
     33        $c_member_profile_list = db_member_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    3434
    3535        // 必須項目チェック
    36         $profile_list = db_common_c_profile_list4null();
     36        $profile_list = db_member_c_profile_list4null();
    3737        foreach ($profile_list as $profile) {
    3838            if ($profile['disp_config'] &&
     
    5757        }
    5858
    59         do_config_prof_new($u, $prof);
    60         do_config_prof_update_c_member_profile($u, $c_member_profile_list);
     59        db_member_config_prof_new($u, $prof);
     60        db_member_update_c_member_profile($u, $c_member_profile_list);
    6161
    6262        openpne_redirect('ktai', 'page_h_home');
     
    101101    {
    102102        $rules = array();
    103         $profile_list = db_common_c_profile_list4null();
     103        $profile_list = db_member_c_profile_list4null();
    104104        foreach ($profile_list as $profile) {
    105105            if ($profile['disp_config']) {
  • OpenPNE/trunk/webapp/modules/ktai/do/h_config_public_flag_diary.php

    r2 r1268  
    1212        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1313
    14         db_ktai_update_public_flag_diary($u, $requests['public_flag_diary']);
     14        db_member_update_public_flag_diary($u, $requests['public_flag_diary']);
    1515
    1616        $p = array('msg' => 35);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_confirm_list_delete_c_commu_admin_confirm.php

    r2 r1268  
    2222        //コミュ管理交代を受けている or 送った人
    2323
    24         $cac = _db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
     24        $cac = db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
    2525
    2626        if ($cac['c_member_id_to'] != $u
  • OpenPNE/trunk/webapp/modules/ktai/do/h_confirm_list_delete_c_friend_confirm.php

    r2 r1268  
    2222        //リンク承認を受けている or 送った人
    2323
    24         $cfc = _do_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
     24        $cfc = db_friend_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
    2525
    2626        if ($cfc['c_member_id_to'] != $u
  • OpenPNE/trunk/webapp/modules/ktai/do/h_confirm_list_insert_c_friend.php

    r2 r1268  
    1919        // ----------
    2020
    21         $cfc = _do_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
     21        $cfc = db_friend_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
    2222
    2323        //--- 権限チェック
  • OpenPNE/trunk/webapp/modules/ktai/do/h_confirm_list_update_c_commu_admin_confirm.php

    r1216 r1268  
    2222        //コミュ管理交代を受けている
    2323
    24         $admin_confirm = _db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
     24        $admin_confirm = db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
    2525
    2626        if ($admin_confirm['c_member_id_to'] != $u) {
  • OpenPNE/trunk/webapp/modules/ktai/do/h_invite_insert_c_invite.php

    r924 r1268  
    88 * 招待メール送信
    99 */
    10 class ktai_do_h_invite_insert_c_invite extends OpenPNE_Action
     10class ktai_db_member_insert_c_invite extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3232            openpne_redirect('ktai', 'page_h_invite', $p);
    3333        }
    34         if (p_is_sns_join4mail_address($mail)) {
     34        if (db_member_is_sns_join4mail_address($mail)) {
    3535            $p = array('msg' => 9);
    3636            openpne_redirect('ktai', 'page_h_invite', $p);
     
    5353
    5454            // c_member_ktai_pre に追加
    55             if (do_common_c_member_ktai_pre4ktai_address($mail)) {
    56                 do_update_c_member_ktai_pre($session, $mail, $u);
     55            if (db_member_c_member_ktai_pre4ktai_address($mail)) {
     56                db_member_update_c_member_ktai_pre($session, $mail, $u);
    5757            } else {
    58                 do_insert_c_member_ktai_pre($session, $mail, $u);
     58                db_member_insert_c_member_ktai_pre($session, $mail, $u);
    5959            }
    6060
     
    7171
    7272            // c_member_pre に追加
    73             if (do_common_c_member_pre4pc_address($mail)) {
    74                 do_h_invite_update_c_invite($u, $mail, $body, $session);
     73            if (db_member_c_member_pre4pc_address($mail)) {
     74                db_member_update_c_invite($u, $mail, $body, $session);
    7575            } else {
    76                 do_h_invite_insert_c_invite($u, $mail, $body, $session);
     76                db_member_insert_c_invite($u, $mail, $body, $session);
    7777            }
    7878
    79             do_h_invite_insert_c_invite_mail_send($u, $session, $body, $mail);
     79            db_member_insert_c_invite_mail_send($u, $session, $body, $mail);
    8080        }
    8181
  • OpenPNE/trunk/webapp/modules/ktai/do/h_message_insert_message.php

    r134 r1268  
    3939
    4040        //target_c_messageが自分宛
    41         $target_c_message = _db_c_message4c_message_id($target_c_message_id);
     41        $target_c_message = db_message_c_message4c_message_id($target_c_message_id);
    4242        if ($target_c_message['c_member_id_to'] != $u) {
    4343            handle_kengen_error();
     
    4545
    4646        // アクセスブロック
    47         if (p_common_is_access_block($u, $target_c_member_id)) {
     47        if (db_member_is_access_block($u, $target_c_member_id)) {
    4848            openpne_redirect('ktai', 'page_h_access_block');
    4949        }
     
    5151
    5252        //返信済みにする
    53         do_update_is_hensin($target_c_message_id);
     53        db_message_update_is_hensin($target_c_message_id);
    5454
    55         do_common_send_message($u, $target_c_member_id, $subject, $body);
     55        db_message_send_message($u, $target_c_member_id, $subject, $body);
    5656
    5757        openpne_redirect('ktai', 'page_h_message_box');
  • OpenPNE/trunk/webapp/modules/ktai/do/h_message_send_insert_message.php

    r102 r1268  
    3939        $c_member_id_from = $u;
    4040
    41         do_common_send_message($c_member_id_from, $target_c_member_id, $subject, $body);
     41        db_message_send_message($c_member_id_from, $target_c_member_id, $subject, $body);
    4242
    4343        openpne_redirect('ktai', 'page_h_message_box');
  • OpenPNE/trunk/webapp/modules/ktai/do/h_pc_send_insert_c_pc_address_pre.php

    r924 r1268  
    2727        } elseif (is_ktai_mail_address($pc_address)) {
    2828            $errors[] = '携帯アドレスは入力できません';
    29         } elseif (do_common_c_member4pc_address($pc_address)) {
     29        } elseif (db_member_c_member4pc_address($pc_address)) {
    3030            $errors[] = '入力したメールアドレスは既に登録されています';
    3131        } elseif (!db_member_is_limit_domain4mail_address($pc_address)) {
     
    3737        }
    3838
    39         do_h_config_1($u, $pc_address);
     39        db_member_h_config_1($u, $pc_address);
    4040
    4141        openpne_redirect('ktai', 'page_h_pc_send_confirm');
  • OpenPNE/trunk/webapp/modules/ktai/do/h_regist_address.php

    r1263 r1268  
    3333        }
    3434
    35         if (p_is_sns_join4mail_address($ktai_address)) {
     35        if (db_member_is_sns_join4mail_address($ktai_address)) {
    3636            // このアドレスはすでに登録されています
    3737            $p = array('msg' => 17);
     
    3939        }
    4040
    41         k_do_delete_c_member_ktai_pre4ktai_address($ktai_address);
    42         k_do_delete_c_ktai_address_pre4ktai_address($ktai_address);
     41        db_member_delete_c_member_ktai_pre4id4ktai_address($ktai_address);
     42        db_member_delete_c_ktai_address_pre4ktai_address($ktai_address);
    4343
    4444        $session = create_hash();
    45         k_do_insert_c_ktai_address_pre($u, $session, $ktai_address);
     45        db_member_insert_c_ktai_address_pre($u, $session, $ktai_address);
    4646
    4747        do_mail_sns_change_ktai_mail_send($u, $session, $ktai_address);
  • OpenPNE/trunk/webapp/modules/ktai/do/h_regist_prof.php

    r1263 r1268  
    3232
    3333        // 値の整合性をチェック(DB)
    34         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
     34        $c_member_profile_list = db_member_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    3535
    3636        // 必須項目チェック
    37         $profile_list = db_common_c_profile_list4null();
     37        $profile_list = db_member_c_profile_list4null();
    3838        foreach ($profile_list as $profile) {
    3939            if ($profile['disp_regist'] &&
     
    7373        db_member_config_prof_new($u, $prof);
    7474        // insert c_member_profile
    75         do_config_prof_update_c_member_profile($u, $c_member_profile_list);
     75        db_member_update_c_member_profile($u, $c_member_profile_list);
    7676        db_member_update_password_query($u, $prof['c_password_query_id'], $prof['password_query_answer']);
    7777       
     
    7979        $c_commu_id_list = db_commu_regist_join_list();
    8080        foreach ($c_commu_id_list as $c_commu_id) {
    81             do_inc_join_c_commu($c_commu_id, $u);
     81            db_commu_join_c_commu($c_commu_id, $u);
    8282        }
    8383       
     
    135135    {
    136136        $rules = array();
    137         $profile_list = db_common_c_profile_list4null();
     137        $profile_list = db_member_c_profile_list4null();
    138138        foreach ($profile_list as $profile) {
    139139            if ($profile['disp_regist']) {
  • OpenPNE/trunk/webapp/modules/ktai/do/inc_join_c_commu.php

    r2 r1268  
    88 * コミュニティに参加
    99 */
    10 class ktai_do_inc_join_c_commu extends OpenPNE_Action
     10class ktai_db_commu_join_c_commu extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    2323
    2424        //非公開コミュニティに管理者から招待されている場合は強制的に承認を回避
    25         $admin_invite = db_c_commu4c_admin_invite_id($target_c_commu_id, $u);
     25        $admin_invite = db_commu_c_commu4c_admin_invite_id($target_c_commu_id, $u);
    2626        if ($admin_invite) {
    2727            $status = STATUS_C_JOIN_REQUEST_FREE;
     
    3232        //承認必要なし
    3333        case STATUS_C_JOIN_REQUEST_FREE:
    34             do_inc_join_c_commu($target_c_commu_id, $u);
    35             do_inc_join_c_commu_send_mail($target_c_commu_id, $u);
     34            db_commu_join_c_commu($target_c_commu_id, $u);
     35            db_commu_join_c_commu_send_mail($target_c_commu_id, $u);
    3636            openpne_redirect('ktai', 'page_c_home', $p);
    3737            break;
  • OpenPNE/trunk/webapp/modules/ktai/do/inc_leave_c_commu.php

    r1216 r1268  
    2222        //コミュニティメンバー and 管理者でない
    2323
    24         $is_admin  = _db_is_c_commu_admin($target_c_commu_id, $u);
    25         $is_member = _db_is_c_commu_member($target_c_commu_id, $u);
     24        $is_admin  = db_commu_is_c_commu_admin($target_c_commu_id, $u);
     25        $is_member = db_commu_is_c_commu_member($target_c_commu_id, $u);
    2626
    2727        if ($is_admin) {
  • OpenPNE/trunk/webapp/modules/ktai/do/o_easy_login.php

    r1263 r1268  
    1818    function execute($requests)
    1919    {
    20         if (!$c_member_id = db_ktai_c_member_id4easy_access_id(OpenPNE_KtaiID::getID())) {
     20        if (!$c_member_id = db_member_c_member_id4easy_access_id(OpenPNE_KtaiID::getID())) {
    2121            // 認証エラー
    2222            $p = array('msg' => 14, 'kad' => t_encrypt($requests['ktai_address']), 'login_params' => $requests['login_params']);
     
    2424        }
    2525
    26         $c_member = db_common_c_member4c_member_id($c_member_id, true);
     26        $c_member = db_member_c_member4c_member_id($c_member_id, true);
    2727
    2828        @session_name('OpenPNEktai');
  • OpenPNE/trunk/webapp/modules/ktai/do/o_insert_c_member.php

    r1265 r1268  
    2929
    3030        // セッションが有効かどうか
    31         if (!$pre = c_member_ktai_pre4session($ses)) {
     31        if (!$pre = db_member_c_member_ktai_pre4session($ses)) {
    3232            // 無効の場合、login へリダイレクト
    3333            openpne_redirect('ktai', 'page_o_login');
     
    5555
    5656        // 値の整合性をチェック(DB)
    57         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
     57        $c_member_profile_list = db_member_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    5858
    5959        // 必須項目チェック
    60         $profile_list = db_common_c_profile_list4null();
     60        $profile_list = db_member_c_profile_list4null();
    6161        foreach ($profile_list as $profile) {
    6262            if ($profile['disp_regist'] &&
     
    9999        }
    100100
    101         if (!$c_member_id = k_do_insert_c_member($prof)) {
     101        if (!$c_member_id = db_member_ktai_insert_c_member($prof)) {
    102102            openpne_redirect('ktai', 'page_o_login');
    103103        }
     
    112112
    113113        // insert c_member_profile
    114         do_config_prof_update_c_member_profile($c_member_id, $c_member_profile_list);
     114        db_member_update_c_member_profile($c_member_id, $c_member_profile_list);
    115115
    116116        // insert c_friend(紹介者)
     
    120120        $c_commu_id_list = db_commu_regist_join_list();
    121121        foreach ($c_commu_id_list as $c_commu_id) {
    122             do_inc_join_c_commu($c_commu_id, $c_member_id);
     122            db_commu_join_c_commu($c_commu_id, $c_member_id);
    123123        }
    124124
    125125        // delete c_member_ktai_pre
    126         k_do_delete_c_member_ktai_pre($pre['c_member_ktai_pre_id']);
     126        db_member_delete_c_member_ktai_pre4id($pre['c_member_ktai_pre_id']);
    127127
    128128
     
    190190    {
    191191        $rules = array();
    192         $profile_list = db_common_c_profile_list4null();
     192        $profile_list = db_member_c_profile_list4null();
    193193        foreach ($profile_list as $profile) {
    194194            if ($profile['disp_regist']) {
  • OpenPNE/trunk/webapp/modules/ktai/do/o_password_query.php

    r1263 r1268  
    2020        //パスワード確認の質問と答えがあっている
    2121
    22         if (!$c_member_id = db_ktai_is_password_query_complete(
     22        if (!$c_member_id = db_member_is_password_query_complete2(
    2323                        $requests['ktai_address'],
    2424                        $requests['c_password_query_id'],
     
    3131        // パスワード再発行
    3232        $new_password = do_common_create_password();
    33         do_common_update_password($c_member_id, $new_password);
     33        db_member_update_password($c_member_id, $new_password);
    3434
    3535        db_mail_send_m_ktai_password_query($c_member_id, $new_password);
  • OpenPNE/trunk/webapp/modules/ktai/do/o_update_ktai_address.php

    r1263 r1268  
    2020
    2121        // セッションが有効かどうか
    22         if (!$pre = c_ktai_address_pre4session($ses)) {
     22        if (!$pre = db_member_c_ktai_address_pre4session($ses)) {
    2323            // 無効の場合、login へリダイレクト
    2424            openpne_redirect('ktai', 'page_o_login');
     
    3434        }
    3535
    36         k_do_update_ktai_address($c_member_id, $ktai_address);
    37         k_do_delete_ktai_address_pre($pre['c_ktai_address_pre_id']);
     36        db_member_update_ktai_address($c_member_id, $ktai_address);
     37        db_member_delete_ktai_address_pre($pre['c_ktai_address_pre_id']);
    3838
    3939        // login ページへリダイレクト
  • OpenPNE/trunk/webapp/modules/ktai/page/c_bbs.php

    r102 r1268  
    3333        //トピックID,トピック
    3434        $this->set("c_commu_topic_id", $target_c_commu_topic_id);
    35         $this->set("c_commu_topic", c_event_detail_c_topic4c_commu_topic_id($target_c_commu_topic_id));
     35        $this->set("c_commu_topic", db_commu_c_topic4c_commu_topic_id_2($target_c_commu_topic_id));
    3636
    3737        //コミュニティ
     
    4747
    4848        //コミュニティ掲示板閲覧権限
    49         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     49        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    5050            handle_kengen_error();
    5151        }
    5252
    5353        //掲示板の閲覧権限 tplでやっている
    54         $this->set("is_c_commu_view", p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu['c_commu_id'], $u));
    55         $this->set("is_c_commu_member", _db_is_c_commu_member($c_commu['c_commu_id'], $u));
    56         $this->set("is_c_event_member", _db_is_c_event_member($target_c_commu_topic_id, $u));
    57         $this->set("is_c_event_admin", _db_is_c_event_admin($target_c_commu_topic_id, $u));
     54        $this->set("is_c_commu_view", db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu['c_commu_id'], $u));
     55        $this->set("is_c_commu_member", db_commu_is_c_commu_member($c_commu['c_commu_id'], $u));
     56        $this->set("is_c_event_member", db_commu_is_c_event_member($target_c_commu_topic_id, $u));
     57        $this->set("is_c_event_admin", db_commu_is_c_event_admin($target_c_commu_topic_id, $u));
    5858
    5959
  • OpenPNE/trunk/webapp/modules/ktai/page/c_edit.php

    r1216 r1268  
    1515        // ----------
    1616
    17         $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     17        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    1818
    1919        //--- 権限チェック
     
    3333
    3434        //カテゴリのリスト
    35         $this->set('c_commu_category_list', _db_c_commu_category4null());
     35        $this->set('c_commu_category_list', db_commu_c_commu_category4null());
    3636
    3737        $this->set('is_topic', p_c_edit_is_topic4c_commu_id($target_c_commu_id));
  • OpenPNE/trunk/webapp/modules/ktai/page/c_edit_delete_c_commu_confirm.php

    r1216 r1268  
    1717        //--- 権限チェック
    1818        //コミュニティ管理者
    19         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     19        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    2020            handle_kengen_error();
    2121        }
  • OpenPNE/trunk/webapp/modules/ktai/page/c_edit_member.php

    r1216 r1268  
    1717        // ----------
    1818
    19         $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     19        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    2020
    2121        //--- 権限チェック
     
    3838
    3939        //コミュニティのメンバ数
    40         $this->set("count_member", _db_count_c_commu_member_list4c_commu_id($target_c_commu_id));
     40        $this->set("count_member", db_commu_count_c_commu_member_list4c_commu_id($target_c_commu_id));
    4141
    4242        $this->set("c_commu", $c_commu);
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_add.php

    r1216 r1268  
    1818        //--- 権限チェック
    1919        //コミュニティメンバー
    20         if (!_db_is_c_commu_member($c_commu_id, $u)) {
     20        if (!db_commu_is_c_commu_member($c_commu_id, $u)) {
    2121            $_REQUEST['target_c_commu_id'] = $c_commu_id;
    2222            $_REQUEST['msg'] = "イベント作成をおこなうにはコミュニティに参加する必要があります";
     
    2525        }
    2626
    27         $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id);
     27        $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id);
    2828
    2929        //トピック作成権限チェック
     
    3333        //---
    3434
    35         $this->set("c_commu", p_c_home_c_commu4c_commu_id($c_commu_id));
    36         $this->set("year", p_c_event_add_year4null());
     35        $this->set("c_commu", db_commu_c_commu4c_commu_id2($c_commu_id));
     36        $this->set("year", db_commu_year4null());
    3737        $this->set('month', p_regist_prof_c_profile_month_list4null());
    3838        $this->set('day', p_regist_prof_c_profile_day_list4null());
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_delete_confirm.php

    r102 r1268  
    1515        // ----------
    1616
    17         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     17        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    1818        $c_commu_id = $c_topic['c_commu_id'];
    1919
    2020        //--- 権限チェック
    21         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     21        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2222            handle_kengen_error();
    2323        }
    24         if (!_db_is_c_event_admin($c_commu_topic_id, $u) &&
    25             !_db_is_c_commu_admin($c_commu_id, $u)) {
     24        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) &&
     25            !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    2626            handle_kengen_error();
    2727        }
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_edit.php

    r2 r1268  
    1717        // ----------
    1818
    19         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     19        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    2020        $c_commu_id = $c_topic['c_commu_id'];
    2121
    2222        //--- 権限チェック
    23         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     23        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2424            handle_kengen_error();
    2525        }
    26         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) && !_db_is_c_commu_admin($c_commu_id, $u)) {
     26        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) && !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    2727            handle_kengen_error();
    2828        }
     
    3434        }
    3535
    36         $this->set("year", p_c_event_add_year4null());
     36        $this->set("year", db_commu_year4null());
    3737        $this->set('month', p_regist_prof_c_profile_month_list4null());
    3838        $this->set('day', p_regist_prof_c_profile_day_list4null());
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_list.php

    r102 r1268  
    1919        //--- 権限チェック
    2020        //掲示板閲覧権限
    21         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     21        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2222            handle_kengen_error();
    2323        }
     
    2626        $page += $direc;
    2727
    28         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
     28        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
    2929
    3030        list($result, $is_prev, $is_next, $total_num, $start_num, $end_num)
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_mail.php

    r102 r1268  
    1616        // ----------
    1717
    18         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     18        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    1919        $c_commu_id = $c_topic['c_commu_id'];
    2020
    2121        //--- 権限チェック
    22         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     22        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2323            handle_kengen_error();
    2424        }
    25         if (!_db_is_c_event_admin($c_commu_topic_id, $u)) {
     25        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
    2626            handle_kengen_error();
    2727        }
    2828        //---
    2929
    30         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
     30        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
    3131
    3232        //イベント参加者をアサインする
    33         $this->set("c_event_member_list", p_c_event_mail_list4c_commu_topic_id($c_commu_topic_id, $u));
     33        $this->set("c_event_member_list", db_commu_c_event_mail_list4c_commu_topic_id($c_commu_topic_id, $u));
    3434
    3535        $this->set("c_commu_id", $c_commu_id);
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_mail_confirm.php

    r2 r1268  
    2323        }
    2424
    25         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     25        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    2626        $c_commu_id = $c_topic['c_commu_id'];
    2727
    2828
    2929        //--- 権限チェック
    30         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     30        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    3131            handle_kengen_error();
    3232        }
    33         if (!_db_is_c_event_admin($c_commu_topic_id, $u)) {
     33        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
    3434            handle_kengen_error();
    3535        }
    3636        //---
    3737
    38         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
    39         $this->set('c_mail_member', p_c_event_mail_confirm_list4c_member_ids($c_member_ids));
     38        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
     39        $this->set('c_mail_member', db_commu_c_event_mail_confirm_list4c_member_ids($c_member_ids));
    4040
    4141        $this->set('body', $body);
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_mail_end.php

    r102 r1268  
    1616        // ----------
    1717
    18         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     18        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    1919        $c_commu_id = $c_topic['c_commu_id'];
    2020
    2121        //--- 権限チェック
    22         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     22        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2323            handle_kengen_error();
    2424        }
    25         if (!_db_is_c_event_admin($c_commu_topic_id, $u)) {
     25        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
    2626            handle_kengen_error();
    2727        }
    2828        //---
    2929
    30         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
     30        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
    3131        $this->set('c_commu_id', $c_commu_id);
    3232        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/c_event_member_list.php

    r2 r1268  
    1818        // ----------
    1919
    20         $c_topic = c_event_detail_c_topic4c_commu_topic_id($target_c_commu_topic_id);
     20        $c_topic = db_commu_c_topic4c_commu_topic_id_2($target_c_commu_topic_id);
    2121        $c_commu_id = $c_topic['c_commu_id'];
    2222
     
    2828
    2929        //メンバのリスト
    30         $list = k_p_c_event_member_list4c_commu_topic_id($target_c_commu_topic_id, $page_size, $page);
     30        $list = k_p_db_commu_c_event_member_list4c_commu_topic_id($target_c_commu_topic_id, $page_size, $page);
    3131        $this->set("c_event_member_list", $list[0]);
    3232        $this->set('is_prev', $list[1]);
     
    3838        $this->set("c_commu_topic_id", $target_c_commu_topic_id);
    3939        //コミュニティのメンバ数
    40         $this->set("count_member", k_p_count_c_event_member_list4c_commu_topic_id($target_c_commu_topic_id));
     40        $this->set("count_member", k_p_count_db_commu_c_event_member_list4c_commu_topic_id($target_c_commu_topic_id));
    4141
    4242        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/c_home.php

    r274 r1268  
    1515        // ----------
    1616
    17         $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     17        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    1818
    1919        //コミュニティの存在の有無
     
    2626        //未処理
    2727        //掲示板の閲覧権限チェック tplでやっている
    28         $this->set("is_c_commu_view", p_common_is_c_commu_view4c_commu_idAc_member_id($target_c_commu_id, $u));
    29         $this->set("is_c_commu_member", _db_is_c_commu_member($target_c_commu_id, $u));
     28        $this->set("is_c_commu_view", db_commu_is_c_commu_view4c_commu_idAc_member_id($target_c_commu_id, $u));
     29        $this->set("is_c_commu_member", db_commu_is_c_commu_member($target_c_commu_id, $u));
    3030        //---
    3131
     
    3434
    3535        //コミュニティ情報
    36         $this->set("c_commu", k_p_c_home_c_commu4c_commu_id($target_c_commu_id));
     36        $this->set("c_commu", k_db_commu_c_commu4c_commu_id2($target_c_commu_id));
    3737
    3838        //コミュニティメンバリスト
     
    4141
    4242        //参加コミュニティの新着トピック書き込み
    43         $this->set("new_topic_comment", p_c_home_new_topic_comment4c_commu_id($target_c_commu_id, 5));
     43        $this->set("new_topic_comment", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5));
    4444        //参加コミュニティの新着イベント書き込み
    45         $this->set("new_topic_comment_event", p_c_home_new_topic_comment4c_commu_id($target_c_commu_id, 5, 1));
     45        $this->set("new_topic_comment_event", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5, 1));
    4646
    4747        //自分($u)とこのコミュとの関係
  • OpenPNE/trunk/webapp/modules/ktai/page/c_invite.php

    r2 r1268  
    2020        //コミュニティID
    2121        $this->set("target_c_commu_id", $target_c_commu_id);
    22         $this->set("c_commu", _db_c_commu4c_commu_id($target_c_commu_id));
     22        $this->set("c_commu", db_commu_c_commu4c_commu_id($target_c_commu_id));
    2323
    2424
  • OpenPNE/trunk/webapp/modules/ktai/page/c_member_list.php

    r2 r1268  
    3232        $this->set("c_commu_id", $target_c_commu_id);
    3333        //コミュニティのメンバ数
    34         $this->set("count_member", _db_count_c_commu_member_list4c_commu_id($target_c_commu_id));
     34        $this->set("count_member", db_commu_count_c_commu_member_list4c_commu_id($target_c_commu_id));
    3535
    3636        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/c_topic_add.php

    r1216 r1268  
    2121        //--- 権限チェック
    2222        //コミュニティメンバー
    23         if (!_db_is_c_commu_member($c_commu_id, $u)) {
     23        if (!db_commu_is_c_commu_member($c_commu_id, $u)) {
    2424            handle_kengen_error();
    2525        }
    26         $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id);
     26        $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id);
    2727
    2828        //トピック作成権限チェック
     
    3232        // ---
    3333
    34         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
     34        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
    3535
    3636        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/c_topic_delete_confirm.php

    r102 r1268  
    2020
    2121        //--- 権限チェック
    22         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     22        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2323            handle_kengen_error();
    2424        }
    25         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) &&
    26             !_db_is_c_commu_admin($c_commu_id, $u)) {
     25        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) &&
     26            !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    2727            handle_kengen_error();
    2828        }
  • OpenPNE/trunk/webapp/modules/ktai/page/c_topic_edit.php

    r102 r1268  
    2323
    2424        //--- 権限チェック
    25         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     25        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2626            handle_kengen_error();
    2727        }
    28         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) &&
    29             !_db_is_c_commu_admin($c_commu_id, $u)) {
     28        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) &&
     29            !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    3030            handle_kengen_error();
    3131        }
  • OpenPNE/trunk/webapp/modules/ktai/page/c_topic_list.php

    r102 r1268  
    1919        //--- 権限チェック
    2020        //掲示板閲覧権限
    21         if (!p_common_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
     21        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
    2222            handle_kengen_error();
    2323        }
     
    2626        $page += $direc;
    2727
    28         $this->set('c_commu', _db_c_commu4c_commu_id($c_commu_id));
     28        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
    2929
    3030        list($result, $is_prev, $is_next, $total_num, $start_num, $end_num)
  • OpenPNE/trunk/webapp/modules/ktai/page/f_bookmark_add.php

    r2 r1268  
    1515        // ----------
    1616
    17         if (p_common_is_access_block($u, $target_c_member_id)) {
     17        if (db_member_is_access_block($u, $target_c_member_id)) {
    1818            openpne_redirect('ktai', 'page_h_access_block');
    1919        }
    2020
    2121        //ターゲット情報
    22         $this->set("target_c_member", db_common_c_member4c_member_id_LIGHT($target_c_member_id));
     22        $this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
    2323
    2424        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/f_home.php

    r1265 r1268  
    1919        }
    2020
    21         if (!p_common_is_active_c_member_id($target_c_member_id)) {
     21        if (!db_member_is_active_c_member_id($target_c_member_id)) {
    2222            ktai_display_error('該当するメンバーが見つかりません。');
    2323        }
    2424
    25         if (p_common_is_access_block($u, $target_c_member_id)) {
     25        if (db_member_is_access_block($u, $target_c_member_id)) {
    2626            openpne_redirect('ktai', 'page_h_access_block');
    2727        }
     
    3434        $is_friend = db_friend_is_friend($u, $target_c_member_id);
    3535        if ($is_friend) {
    36             $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'friend');
     36            $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'friend');
    3737        } else {
    38             $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'public');
     38            $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'public');
    3939        }
    4040        $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']);
     
    4848
    4949        //フレンドランダム5人
    50         $this->set("c_friend_list", k_p_h_home_c_friend_list_random4c_member_id($target_c_member_id, 5));
     50        $this->set("c_friend_list", db_friend_c_friend_list_random4c_member_id($target_c_member_id, 5));
    5151
    5252        //参加コミュニティ最新書き込み5件
     
    5454
    5555        //ターゲットと自分との関係
    56         $this->set("relation", k_p_f_home_relationship4two_members($u, $target_c_member_id));
     56        $this->set("relation", db_friend_relationship4two_members($u, $target_c_member_id));
    5757
    58         $this->set('profile_list', db_common_c_profile_list());
     58        $this->set('profile_list', db_member_c_profile_list());
    5959
    6060        // 誕生日まであと何日?
    61         $this->set('days_birthday', db_common_count_days_birthday4c_member_id($target_c_member_id));
     61        $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id));
    6262
    6363        //PNEPOINT
  • OpenPNE/trunk/webapp/modules/ktai/page/f_intro_edit.php

    r102 r1268  
    3030        //---
    3131
    32         if (p_common_is_access_block($u, $target_c_member_id)) {
     32        if (db_member_is_access_block($u, $target_c_member_id)) {
    3333            openpne_redirect('ktai', 'page_h_access_block');
    3434        }
    3535
    36         $this->set("target_member", db_common_c_member4c_member_id($target_c_member_id));
    37         $this->set("intro_body", p_f_intro_edit_intro_body4c_member_id($u, $target_c_member_id));
     36        $this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
     37        $this->set("intro_body", db_friend_intro_body4c_member_id($u, $target_c_member_id));
    3838        $this->set("target_c_member_id", $target_c_member_id);
    3939        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/f_link_request.php

    r2 r1268  
    1515        // ----------
    1616
    17         if (p_common_is_access_block($u, $target_c_member_id)) {
     17        if (db_member_is_access_block($u, $target_c_member_id)) {
    1818            openpne_redirect('ktai', 'page_h_access_block');
    1919        }
    2020
    2121        //ターゲット情報
    22         $this->set("target_c_member", db_common_c_member4c_member_id_LIGHT($target_c_member_id));
     22        $this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
    2323
    2424        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/f_message_send.php

    r2 r1268  
    1515        // ----------
    1616
    17         if (p_common_is_access_block($u, $target_c_member_id)) {
     17        if (db_member_is_access_block($u, $target_c_member_id)) {
    1818            openpne_redirect('ktai', 'page_h_access_block');
    1919        }
    2020
    2121        //ターゲットの情報
    22         $this->set("target_c_member", db_common_c_member4c_member_id_LIGHT($target_c_member_id));
     22        $this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
    2323
    2424        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/f_show_image.php

    r2 r1268  
    1414
    1515        // アクセスブロック
    16         if (p_common_is_access_block($u, $c_member_id)) {
     16        if (db_member_is_access_block($u, $c_member_id)) {
    1717            openpne_redirect('ktai', 'page_h_access_block');
    1818        }
    1919
    20         $this->set('target_c_member', db_common_c_member4c_member_id($c_member_id));
     20        $this->set('target_c_member', db_member_c_member4c_member_id($c_member_id));
    2121        return 'success';
    2222    }
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_com_list.php

    r102 r1268  
    2121        }
    2222
    23         if (p_common_is_access_block($u, $target_c_member_id)) {
     23        if (db_member_is_access_block($u, $target_c_member_id)) {
    2424            openpne_redirect('ktai', 'page_h_access_block');
    2525        }
    2626
    2727        // メンバー情報
    28         $this->set("target_c_member", db_common_c_member4c_member_id_LIGHT($target_c_member_id));
     28        $this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
    2929
    3030        // 参加コミュニティリスト
     
    3232        $page += $direc;
    3333
    34         $list = k_p_fh_com_list_c_commu_list4c_member_id($target_c_member_id, $page_size, $page);
     34        $list = k_db_commu_c_commu_list4c_member_id($target_c_member_id, $page_size, $page);
    3535
    3636        $this->set("c_commu_list", $list[0]);
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_diary.php

    r276 r1268  
    3434            }
    3535            //アクセスブロック設定
    36             if (p_common_is_access_block($u, $target_c_member_id)) {
     36            if (db_member_is_access_block($u, $target_c_member_id)) {
    3737                openpne_redirect('ktai', 'page_h_access_block');
    3838            }
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_diary_list.php

    r972 r1268  
    2727        }
    2828
    29         if (p_common_is_access_block($u, $target_c_member_id)) {
     29        if (db_member_is_access_block($u, $target_c_member_id)) {
    3030            openpne_redirect('ktai', 'page_h_access_block');
    3131        }
    3232
    33         $target_c_member = db_common_c_member4c_member_id($target_c_member_id);
     33        $target_c_member = db_member_c_member4c_member_id($target_c_member_id);
    3434
    3535        //ターゲット情報
    36         $this->set("target_c_member", db_common_c_member4c_member_id($target_c_member_id));
     36        $this->set("target_c_member", db_member_c_member4c_member_id($target_c_member_id));
    3737
    3838        // 1ページ当たりに表示する日記の数
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_friend_list.php

    r134 r1268  
    1919        if (!$target_c_member_id) $target_c_member_id = $u;
    2020
    21         if (p_common_is_access_block($u, $target_c_member_id)) {
     21        if (db_member_is_access_block($u, $target_c_member_id)) {
    2222            openpne_redirect('ktai', 'page_h_access_block');
    2323        }
    2424
    2525        //ターゲット情報
    26         $this->set("target_c_member", db_common_c_member4c_member_id_LIGHT($target_c_member_id));
     26        $this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
    2727
    2828        // 1ページ当たりに表示するフレンドの数
     
    3030        $page += $direc;
    3131        //ターゲットの詳細な友達リスト
    32         $list = k_p_fh_friend_list_friend_list4c_member_id($target_c_member_id, $page_size, $page);
     32        $list = db_friend_friend_list4c_member_id($target_c_member_id, $page_size, $page);
    3333
    3434        $this->set("target_friend_list", $list[0]);
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_intro.php

    r102 r1268  
    2525        }
    2626
    27         if (p_common_is_access_block($u, $target_c_member_id)) {
     27        if (db_member_is_access_block($u, $target_c_member_id)) {
    2828            openpne_redirect('ktai', 'page_h_access_block');
    2929        }
     
    3737
    3838        //自分情報
    39         $this->set('member', db_common_c_member4c_member_id($u));
     39        $this->set('member', db_member_c_member4c_member_id($u));
    4040
    4141        //ターゲット情報
    42         $this->set('target_member', db_common_c_member4c_member_id($target_c_member_id));
     42        $this->set('target_member', db_member_c_member4c_member_id($target_c_member_id));
    4343
    4444        if ($target_c_member_id == $u) {
    45             $raw_c_friend_comment_list = p_fh_intro_intro_list_with_my_intro4c_member_id($target_c_member_id);
     45            $raw_c_friend_comment_list = db_friend_intro_list_with_my_intro4c_member_id($target_c_member_id);
    4646        } else {
    47             $raw_c_friend_comment_list = p_fh_intro_intro_list4c_member_id($target_c_member_id);
     47            $raw_c_friend_comment_list = db_friend_intro_list4c_member_id($target_c_member_id);
    4848        }
    4949        $c_friend_comment_list = $raw_c_friend_comment_list;
    5050
    51         $list = p_fh_intro_list4c_friend_comment_list($c_friend_comment_list, $page, $page_size);
     51        $list = db_friend_intro_list4c_friend_comment_list($c_friend_comment_list, $page, $page_size);
    5252
    5353        //紹介文
  • OpenPNE/trunk/webapp/modules/ktai/page/h_ashiato.php

    r2 r1268  
    1212
    1313        // あしあとリスト
    14         $this->set("c_ashiato_list", p_h_ashiato_c_ashiato_list4c_member_id($u, 20));
     14        $this->set("c_ashiato_list", db_ashiato_c_ashiato_list4c_member_id($u, 20));
    1515
    1616        // 総あしあと数
    17         $this->set("c_ashiato_num", p_h_ashiato_c_ashiato_num4c_member_id($u));
     17        $this->set("c_ashiato_num", db_ashiato_c_ashiato_num4c_member_id($u));
    1818
    1919        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/h_bookmark_list.php

    r102 r1268  
    1919        $page += $direc;
    2020
    21         $list = p_h_bookmark_list($u, $page, $page_size);
     21        $list = db_bookmark_list($u, $page, $page_size);
    2222        $this->set('c_members', $list[0]);
    2323        $this->set("is_prev", $list[1]);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_com_add.php

    r2 r1268  
    1212
    1313        //カテゴリのリスト
    14         $this->set("c_commu_category_list", _db_c_commu_category4null());
     14        $this->set("c_commu_category_list", db_commu_c_commu_category4null());
    1515
    1616        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/h_com_category.php

    r102 r1268  
    2727
    2828        //カテゴリ内のコミュニティリスト
    29         $list= k_p_h_com_category_c_commu_list4c_commu_category_id_search($target_c_commu_category_id, $page_size, $page, $search_word);
     29        $list= db_commu_c_commu_list4c_commu_category_id_search($target_c_commu_category_id, $page_size, $page, $search_word);
    3030        $this->set("c_commu_list", $list[0]);
    3131        $this->set("is_prev", $list[1]);
     
    3434
    3535        //カテゴリ名
    36         $this->set("c_commu_category_name", k_p_h_com_category_c_commu_category_name4c_commu_category_id($target_c_commu_category_id));
     36        $this->set("c_commu_category_name", db_commu_c_commu_category_name4c_commu_category_id($target_c_commu_category_id));
    3737        //カテゴリID
    3838        $this->set("c_commu_category_id", $target_c_commu_category_id);
    3939
    4040        //parent
    41         $this->set("c_commu_category_parent_id", k_p_h_com_category_c_commu_category_parent_id4c_commu_category_id($target_c_commu_category_id));
     41        $this->set("c_commu_category_parent_id", db_commu_c_commu_category_parent_id4c_commu_category_id($target_c_commu_category_id));
    4242
    4343        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/h_com_find_all.php

    r102 r1268  
    1515
    1616        //子カテゴリのリスト
    17         $this->set("c_commu_category_list", _db_c_commu_category4null());
     17        $this->set("c_commu_category_list", db_commu_c_commu_category4null());
    1818        //親カテゴリのリスト
    19         $this->set('c_commu_category_parent_list', _db_c_commu_category_parent_list4null());
     19        $this->set('c_commu_category_parent_list', db_commu_c_commu_category_parent_list4null());
    2020
    2121        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/h_com_find_result.php

    r102 r1268  
    3434
    3535        //カテゴリのリスト
    36         $this->set("c_commu_category_list", _db_c_commu_category4null());
     36        $this->set("c_commu_category_list", db_commu_c_commu_category4null());
    3737
    3838        //検索結果
    39         $list = k_p_h_com_category_c_commu_list4c_commu_category_id_search($target_c_commu_category_id, $page_size, $page, $search_word);
     39        $list = db_commu_c_commu_list4c_commu_category_id_search($target_c_commu_category_id, $page_size, $page, $search_word);
    4040
    4141        $this->set("c_commu_search_result", $list[0]);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_access_block.php

    r2 r1268  
    1111        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $this->set('c_member_id_block', p_h_config_c_member_id_block4c_member_id($u));
     13        $this->set('c_member_id_block', db_member_c_member_id_block4c_member_id($u));
    1414        return 'success';
    1515    }
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_easy_login.php

    r2 r1268  
    1111        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $c_member_secure = db_common_c_member_secure4c_member_id($u);
     13        $c_member_secure = db_member_c_member_secure4c_member_id($u);
    1414
    1515        $this->set('is_registered', !empty($c_member_secure['easy_access_id']));
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_image.php

    r13 r1268  
    1111        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $prof = db_common_c_member_with_profile($u);
     13        $prof = db_member_c_member_with_profile($u);
    1414        $this->set('c_member', $prof);
    1515
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_mail_ashiato.php

    r2 r1268  
    1111        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $c_member = db_common_c_member4c_member_id($u);
     13        $c_member = db_member_c_member4c_member_id($u);
    1414        //メンバ情報
    1515        $this->set('c_member', $c_member);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_mail_receive.php

    r2 r1268  
    1111        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $c_member = db_common_c_member4c_member_id($u);
     13        $c_member = db_member_c_member4c_member_id($u);
    1414        //メンバ情報
    1515        $this->set('c_member', $c_member);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_prof.php

    r2 r1268  
    1111        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $this->set("c_member", db_common_c_member4c_member_id($u));
     13        $this->set("c_member", db_member_c_member4c_member_id($u));
    1414
    15         $prof = db_common_c_member_with_profile($u, 'private');
     15        $prof = db_member_c_member_with_profile($u, 'private');
    1616        $this->set('c_member', $prof);
    1717
     
    2323        $this->set('public_flags', $public_flags);
    2424
    25         $this->set('profile_list', db_common_c_profile_list());
     25        $this->set('profile_list', db_member_c_profile_list());
    2626
    2727        $this->set('month', p_regist_prof_c_profile_month_list4null());
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_public_flag_diary.php

    r2 r1268  
    1111        $u = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $c_member = db_common_c_member4c_member_id($u);
     13        $c_member = db_member_c_member4c_member_id($u);
    1414        //メンバ情報
    1515        $this->set('c_member', $c_member);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_confirm_list.php

    r1216 r1268  
    1212
    1313        //リンク承認待ちリスト
    14         $this->set("anatani_c_friend_confirm_list", k_p_h_confirm_list_anatani_c_friend_confirm_list4c_member_id($u));
     14        $this->set("anatani_c_friend_confirm_list", k_db_friend_anatani_c_friend_confirm_list4c_member_id($u));
    1515
    1616        //コミュニティ参加承認待ちリスト
     
    2626
    2727        //リンク申請出した人のリスト
    28         $this->set("anataga_c_friend_confirm_list", k_p_h_confirm_list_anataga_c_friend_confirm_list4c_member_id($u));
     28        $this->set("anataga_c_friend_confirm_list", k_db_friend_anataga_c_friend_confirm_list4c_member_id($u));
    2929
    3030        //参加申請出したコミュニティに関するリスト
  • OpenPNE/trunk/webapp/modules/ktai/page/h_diary_edit.php

    r260 r1268  
    1515        // ----------
    1616
    17         $c_member = db_common_c_member4c_member_id($u);
     17        $c_member = db_member_c_member4c_member_id($u);
    1818        if ($target_c_diary_id) {
    1919            $c_diary = db_diary_get_c_diary4id($target_c_diary_id);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_friend_find_all.php

    r2 r1268  
    2121        $profiles = array();
    2222        if ($_REQUEST['profile']) {
    23             $profiles = p_h_search_result_check_profile($_REQUEST['profile']);
     23            $profiles = db_member_search_check_profile($_REQUEST['profile']);
    2424        }
    2525        $this->set('profiles', $profiles);
     
    4040
    4141
    42         $result = p_h_search_result_search($cond, $cond_like, $limit, $page, $u, $profiles);
     42        $result = db_member_search($cond, $cond_like, $limit, $page, $u, $profiles);
    4343        $this->set("target_friend_list", $result[0]);
    4444        $pager = array(
     
    8181
    8282
    83         $this->set('profile_list', db_common_c_profile_list());
     83        $this->set('profile_list', db_member_c_profile_list());
    8484        return 'success';
    8585    }
  • OpenPNE/trunk/webapp/modules/ktai/page/h_home.php

    r1265 r1268  
    1111        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
    1212
    13         $c_member_secure = db_common_c_member_secure4c_member_id($u);
     13        $c_member_secure = db_member_c_member_secure4c_member_id($u);
    1414
    1515        //管理画面HTML
    1616        $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_h_home'));
    1717
    18         $c_member = db_common_c_member4c_member_id($u);
     18        $c_member = db_member_c_member4c_member_id($u);
    1919        //メンバ情報
    2020        $this->set('c_member', $c_member);
    2121        //新着メッセージ数
    22         $this->set('c_message_unread_count', k_p_h_home_c_message_received_unread_all_count4c_member_id($u));
     22        $this->set('c_message_unread_count', db_message_c_message_received_unread_all_count4c_member_id($u));
    2323        //フレンドの最新日記
    2424        $this->set('c_diary_friend_list', p_h_home_c_diary_friend_list4c_member_id($u, 5));
     
    2626        $this->set('c_commu_list', k_p_h_home_c_commu_list_lastupdate4c_member_id($u, 5));
    2727        //参加コミュニティの数
    28         $this->set('fh_com_count_user',p_common_count_c_commu4c_member_id($u));
     28        $this->set('fh_com_count_user',db_commu_count_c_commu4c_member_id($u));
    2929        //フレンドリスト
    30         $this->set('c_friend_list', k_p_h_home_c_friend_list_random4c_member_id($u, 5));
     30        $this->set('c_friend_list', db_friend_c_friend_list_random4c_member_id($u, 5));
    3131        //フレンドの数
    3232        $this->set('c_friend_count', db_friend_count_friends($u));
     
    3838
    3939        //アクセス日時を記録
    40         p_common_do_access($u);
     40        db_member_do_access($u);
    4141
    4242        //未読メッセージの数をお知らせ
    43         $this->set("num_message_not_is_read", p_h_message_count_c_message_not_is_read4c_member_to_id($u));
     43        $this->set("num_message_not_is_read", db_message_count_c_message_not_is_read4c_member_to_id($u));
    4444        //日記コメントの未読の数をお知らせ
    4545        $this->set("num_diary_not_is_read", p_h_diary_count_c_diary_not_is_read4c_member_id($u));
     
    4848
    4949        //コミュニティ承認を求めているメンバーリスト
    50         $h_confirm_list = p_h_confirm_list_anatani_c_commu_member_confirm_list4c_member_id($u);
     50        $h_confirm_list = db_commu_anatani_c_commu_member_confirm_list4c_member_id($u);
    5151        $this->set("h_confirm_list", $h_confirm_list);
    5252        //そのメンバーの人数
     
    5454
    5555        //あなたにフレンド認証を求めているメンバーリスト
    56         $f_confirm_list = p_h_confirm_list_anatani_c_friend_confirm_list4c_member_id($u);
     56        $f_confirm_list = db_friend_anatani_c_friend_confirm_list4c_member_id($u);
    5757        $this->set("f_confirm_list", $f_confirm_list);
    5858        //そのメンバーの人数
     
    7575
    7676        // 誕生日かどうか
    77         $this->set('birthday_flag', p_h_home_birthday_flag4c_member_id($u));
     77        $this->set('birthday_flag', db_member_birthday_flag4c_member_id($u));
    7878
    7979        if (MAIL_ADDRESS_HASHED) {
  • OpenPNE/trunk/webapp/modules/ktai/page/h_manage_friend.php

    r312 r1268  
    1818        $page_size = 5;
    1919        //自分の友達リスト
    20         $list = k_p_fh_friend_list_friend_list4c_member_id($u, $page_size, $page);
     20        $list = db_friend_friend_list4c_member_id($u, $page_size, $page);
    2121
    2222        $this->set("friend_list", $list[0]);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_message.php

    r924 r1268  
    1818
    1919        // メッセージデータ取得
    20         $c_message = _db_c_message4c_message_id($target_c_message_id);
     20        $c_message = db_message_c_message4c_message_id($target_c_message_id);
    2121
    2222        //--- 権限チェック
     
    2929
    3030        // 既読にする
    31         p_h_message_update_c_message_is_read4c_message_id($target_c_message_id, $u);
     31        db_message_update_c_message_is_read4c_message_id($target_c_message_id, $u);
    3232
    3333        // メッセージデータ
  • OpenPNE/trunk/webapp/modules/ktai/page/h_message_box.php

    r972 r1268  
    3232            $page_s += $direc_s;
    3333            if (!$keyword) {
    34                 $list_s = k_p_h_message_box_c_message_sent_list4c_member_id4range($u, $page_size, $page_s);
     34                $list_s = db_message_c_message_sent_list4c_member_id4range2($u, $page_size, $page_s);
    3535            } else {
    3636                $list_s = db_message_search_c_message($u, $page_s, $page_size, $keyword, $box);
     
    5454
    5555            if (!$keyword) {
    56                 $list_r = k_p_h_message_box_c_message_received_list4c_member_id4range($u, $page_size, $page_r);
     56                $list_r = k_db_message_c_message_received_list4c_member_id4range($u, $page_size, $page_r);
    5757            } else {
    5858                $list_r = db_message_search_c_message($u, $page_r, $page_size, $keyword, $box);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_message_send.php

    r2 r1268  
    1212
    1313        //ランダム50人のフレンド
    14         $this->set("c_friend_list", k_p_h_message_send_c_friend_list_random4c_member_id($u));
     14        $this->set("c_friend_list", db_friend_ktai_c_friend_list_random4c_member_id($u));
    1515
    1616        return 'success';
  • OpenPNE/trunk/webapp/modules/ktai/page/h_ranking.php

    r102 r1268  
    2020        switch ($kind) {
    2121        case "friend":
    22             $list = pne_cache_call(3600, 'p_h_ranking_c_friend_ranking', $limit);
     22            $list = pne_cache_call(3600, 'db_ranking_c_friend_ranking', $limit);
    2323            foreach ($list as $key => $value) {
    24                 $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     24                $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
    2525            }
    2626            break;
    2727        case "com_member":
    28             $list = pne_cache_call(3600, 'p_h_ranking_c_commu_member_ranking', $limit);
     28            $list = pne_cache_call(3600, 'db_ranking_c_commu_member_ranking', $limit);
    2929            foreach ($list as $key => $value) {
    30                 $list[$key]['c_commu'] = _db_c_commu4c_commu_id($value['c_commu_id']);
     30                $list[$key]['c_commu'] = db_commu_c_commu4c_commu_id($value['c_commu_id']);
    3131            }
    3232            break;
    3333        case "com_comment":
    34             $list = pne_cache_call(3600, 'p_h_ranking_c_commu_topic_comment_ranking', $limit);
     34            $list = pne_cache_call(3600, 'db_ranking_c_commu_topic_comment_ranking', $limit);
    3535            foreach ($list as $key => $value) {
    36                 $list[$key]['c_commu'] = _db_c_commu4c_commu_id($value['c_commu_id']);
     36                $list[$key]['c_commu'] = db_commu_c_commu4c_commu_id($value['c_commu_id']);
    3737            }
    3838            break;
     
    4141            $list = pne_cache_call(3600, 'p_h_ranking_c_ashiato_ranking', $limit);
    4242            foreach ($list as $key => $value) {
    43                 $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     43                $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
    4444                if (!$list[$key]['c_member']) {
    4545                    unset($list[$key]);
  • OpenPNE/trunk/webapp/modules/ktai/page/h_regist_prof.php

    r1263 r1268  
    2525
    2626        $this->set('password_query_list', p_common_c_password_query4null());
    27         $this->set('profile_list', db_common_c_profile_list());
     27        $this->set('profile_list', db_member_c_profile_list());
    2828
    2929        $this->set($v);
  • OpenPNE/trunk/webapp/modules/ktai/page/o_login2.php

    r2 r1268  
    2020
    2121        // セッションが有効かどうか
    22         if (!$pre = c_ktai_address_pre4session($ses)) {
     22        if (!$pre = db_member_c_ktai_address_pre4session($ses)) {
    2323            // 無効の場合、login へリダイレクト
    24             $c_member_secure = db_common_c_member_secure4c_member_id($c_member_id);
     24            $c_member_secure = db_member_c_member_secure4c_member_id($c_member_id);
    2525            $p = array('kad' => t_encrypt($c_member_secure['ktai_address']));
    2626            openpne_redirect('ktai', 'page_o_login', $p);
  • OpenPNE/trunk/webapp/modules/ktai/page/o_regist_input.php

    r102 r1268  
    2626
    2727        // セッションが有効かどうか
    28         if (!$pre = c_member_ktai_pre4session($ses)) {
     28        if (!$pre = db_member_c_member_ktai_pre4session($ses)) {
    2929            // 無効の場合、login へリダイレクト
    3030            openpne_redirect('ktai', 'page_o_login');
     
    4848
    4949        $this->set('password_query_list', p_common_c_password_query4null());
    50         $this->set('profile_list', db_common_c_profile_list());
     50        $this->set('profile_list', db_member_c_profile_list());
    5151
    5252        $this->set($v);
  • OpenPNE/trunk/webapp/modules/ktai/page/o_regist_pre.php

    r2 r1268  
    2626
    2727        // セッションが有効かどうか
    28         if (!$pre = c_member_ktai_pre4session($ses)) {
     28        if (!$pre = db_member_c_member_ktai_pre4session($ses)) {
    2929            // 無効の場合、login へリダイレクト
    3030            openpne_redirect('ktai', 'page_o_login');
  • OpenPNE/trunk/webapp/modules/pc/do/c_admin_request_insert_c_commu_admin_confirm.php

    r1216 r1268  
    4444        //メッセージ
    4545        $c_member_id_from = $u;
    46         $c_member_from    = db_common_c_member4c_member_id_LIGHT($c_member_id_from);
     46        $c_member_from    = db_member_c_member4c_member_id_LIGHT($c_member_id_from);
    4747        $c_member_to      = $target_c_member_id;
    48         $c_commu          = _db_c_commu4c_commu_id($target_c_commu_id);
     48        $c_commu          = db_commu_c_commu4c_commu_id($target_c_commu_id);
    4949
    5050        $subject ="コミュニティ管理者交代要請メッセージ";
     
    5454            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    5555
    56         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     56        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    5757
    5858        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_bbs_delete_c_commu_topic_comment.php

    r2 r1268  
    88 * コメント削除
    99 */
    10 class pc_do_c_bbs_delete_c_commu_topic_comment extends OpenPNE_Action
     10class pc_db_commu_delete_c_commu_topic_comment extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3434        //---
    3535
    36         do_c_bbs_delete_c_commu_topic_comment($target_c_commu_topic_comment_id);
     36        db_commu_delete_c_commu_topic_comment($target_c_commu_topic_comment_id);
    3737
    3838        if ($c_commu_topic['event_flag']) {
  • OpenPNE/trunk/webapp/modules/pc/do/c_edit_image_delete_c_commu_image.php

    r2 r1268  
    2828
    2929
    30         $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     30        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    3131        image_data_delete($c_commu['image_filename']);
    3232
  • OpenPNE/trunk/webapp/modules/pc/do/c_edit_member_delete_c_commu_admin_confirm.php

    r1216 r1268  
    2222        //コミュニティ副管理者ではない
    2323
    24         $c_commu_admin_confirm = _db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
     24        $c_commu_admin_confirm = db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
    2525        $target_c_commu_id = $c_commu_admin_confirm['c_commu_id'];
    2626
  • OpenPNE/trunk/webapp/modules/pc/do/c_edit_update_c_commu.php

    r1216 r1268  
    9898        if ($image_filename) {
    9999            //画像削除
    100             $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     100            $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    101101            image_data_delete($c_commu['image_filename']);
    102102        }
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_add_insert_c_commu_topic.php

    r1216 r1268  
    55 */
    66
    7 class pc_do_c_event_add_insert_c_commu_topic extends OpenPNE_Action
     7class pc_db_commu_insert_c_commu_topic extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    2727        }
    2828
    29         $c_commu = p_c_home_c_commu4c_commu_id($event['c_commu_id']);
     29        $c_commu = db_commu_c_commu4c_commu_id2($event['c_commu_id']);
    3030
    3131        //トピック作成権限チェック
     
    5656            "event_flag"        => 1,
    5757        );
    58         $c_commu_topic_id = do_c_event_add_insert_c_commu_topic($insert_c_commu_topic);
     58        $c_commu_topic_id = db_commu_insert_c_commu_topic($insert_c_commu_topic);
    5959
    6060        if ($tmpfile1) {
     
    7979            "image_filename3"  => !empty($filename3) ? $filename3 : '',
    8080        );
    81         $insert_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     81        $insert_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    8282
    8383        //お知らせメール送信(携帯へ)
     
    8686        send_bbs_info_mail_pc($insert_id, $u);
    8787
    88         do_c_event_add_insert_c_event_member_as_admin($c_commu_topic_id, $u);
     88        db_commu_insert_c_event_member_as_admin($c_commu_topic_id, $u);
    8989
    9090        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_edit_delete_c_commu_topic_comment_image.php

    r134 r1268  
    55 */
    66
    7 class pc_do_c_event_edit_delete_c_commu_topic_comment_image extends OpenPNE_Action
     7class pc_db_commu_delete_c_commu_topic_comment_image extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    1616        // ----------
    1717
    18         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     18        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    1919
    2020        //--- 権限チェック
    2121        //イベントの管理者 or コミュニティ管理者
    2222
    23         if (!_db_is_c_event_admin($c_commu_topic_id, $u) &&
    24             !_db_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
     23        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) &&
     24            !db_commu_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
    2525            handle_kengen_error();
    2626        }
     
    3030        image_data_delete($c_topic['image_filename'.$pic_delete]);
    3131
    32         do_c_event_edit_delete_c_commu_topic_comment_image($c_commu_topic_id, $pic_delete);
     32        db_commu_delete_c_commu_topic_comment_image($c_commu_topic_id, $pic_delete);
    3333
    3434        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_edit_update_c_commu_topic.php

    r134 r1268  
    55 */
    66
    7 class pc_do_c_event_edit_update_c_commu_topic extends OpenPNE_Action
     7class pc_db_commu_update_c_commu_topic extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    3030        //イベント管理者 or コミュニティ管理者
    3131
    32         if (!_db_is_c_event_admin($c_commu_topic_id, $u) &&
    33             !_db_is_c_commu_admin($event['c_commu_id'], $u)) {
     32        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) &&
     33            !db_commu_is_c_commu_admin($event['c_commu_id'], $u)) {
    3434            handle_kengen_error();
    3535        }
     
    124124            'event_flag'        => 1,
    125125        );
    126         do_c_event_edit_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
     126        db_commu_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
    127127
    128128
     
    130130            'body' => $event['detail'],
    131131        );
    132         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     132        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    133133        if ($filename1) {
    134134            $update_c_commu_topic_comment["image_filename1"] = $filename1;
     
    143143            image_data_delete($c_topic['image_filename3']);
    144144        }
    145         do_c_event_edit_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
     145        db_commu_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
    146146
    147147        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_invite.php

    r2 r1268  
    1616        $body = $requests['body'];
    1717        // ----------
    18         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     18        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    1919        $c_commu_id = $c_topic['c_commu_id'];
    2020
     
    3030
    3131        //イベント参加者でないと送信できない
    32         if (!_db_is_c_event_member($c_commu_topic_id, $u)) {
     32        if (!db_commu_is_c_event_member($c_commu_topic_id, $u)) {
    3333            handle_kengen_error();
    3434        }
     
    3939
    4040        foreach ($c_member_ids as $key => $value) {
    41             do_common_send_message_event_invite($u, $value, $msg_subject, $msg_body);
     41            db_message_send_message_event_invite($u, $value, $msg_subject, $msg_body);
    4242        }
    4343
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_mail.php

    r134 r1268  
    1818        // ----------
    1919
    20         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     20        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    2121        $c_commu_id = $c_topic['c_commu_id'];
    2222
     
    2424
    2525        //イベントの管理者でないと送信できない
    26         if (!_db_is_c_event_admin($c_commu_topic_id, $u)) {
     26        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
    2727            handle_kengen_error();
    2828        }
     
    3434
    3535        foreach ($c_member_ids as $key => $value) {
    36             do_common_send_message_event_message($u, $value, $msg_subject, $msg_body);
     36            db_message_send_message_event_message($u, $value, $msg_subject, $msg_body);
    3737        }
    3838
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_write_insert_c_commu_topic_comment.php

    r238 r1268  
    2323        //コミュニティ参加者
    2424
    25         $c_topic = c_event_detail_c_topic4c_commu_topic_id($c_commu_topic_id);
     25        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
    2626        $c_commu_id = $c_topic['c_commu_id'];
    2727
     
    3737            do_c_event_add_insert_c_event_member($c_commu_topic_id, $u);
    3838        } elseif ($add_event_member == -1) {
    39             do_c_event_add_delete_c_event_member($c_commu_topic_id, $u);
     39            db_commu_delete_c_event_member($c_commu_topic_id, $u);
    4040        }
    4141
    42         $number = _do_c_commu_topic_comment_number4c_commu_topic_id($c_commu_topic_id);
     42        $number = db_commu_c_commu_topic_comment_number4c_commu_topic_id($c_commu_topic_id);
    4343        $insert_c_commu_topic_comment = array(
    4444            "c_commu_id"       => $c_commu_id,
     
    4848            "c_commu_topic_id" => $c_commu_topic_id,
    4949        );
    50         $tc_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     50        $tc_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    5151
    5252        if ($tmpfile1) {
  • OpenPNE/trunk/webapp/modules/pc/do/c_home_update_is_receive_mail.php

    r238 r1268  
    55 */
    66
    7 class pc_do_c_home_update_is_receive_mail extends OpenPNE_Action
     7class pc_db_commu_update_is_receive_mail extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    1919
    2020        //PC&ktaiの両方を一度に更新
    21         do_c_home_update_is_receive_mail($target_c_commu_id, $u, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
     21        db_commu_update_is_receive_mail($target_c_commu_id, $u, $is_receive_mail, $is_receive_mail_pc, $is_receive_message);
    2222
    2323        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_invite_insert_c_message_commu_invite.php

    r2 r1268  
    4646            create_message_commu_invite($u, $body, $target_c_commu_id);
    4747
    48         $commu = _db_c_commu4c_commu_id($target_c_commu_id);
     48        $commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    4949        $c_member_id_admin = $commu['c_member_id_admin'];
    5050        $public_flag = $commu['public_flag'];
    5151
    5252        foreach ($c_member_id_list as $c_member_id) {
    53             do_common_send_message_syoukai_commu($u, $c_member_id, $msg_subject, $msg_body);
     53            db_message_send_message_syoukai_commu($u, $c_member_id, $msg_subject, $msg_body);
    5454            // 招待者がコミュニティ管理者で、かつ非公開コミュニティの場合
    5555            if (($c_member_id_admin == $u) && ($public_flag != 'public')) {
  • OpenPNE/trunk/webapp/modules/pc/do/c_join_request_insert_c_commu_member_confirm.php

    r1216 r1268  
    3636        //メッセージ
    3737        {
    38             $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     38            $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    3939            $c_member_id_to = $c_commu['c_member_id_admin'];
    40             $c_member_from  = db_common_c_member4c_member_id($c_member_id_from);
     40            $c_member_from  = db_member_c_member4c_member_id($c_member_id_from);
    4141
    4242            $subject ="コミュニティ参加要請メッセージ";
     
    4949                "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    5050
    51             do_common_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_admin'], $subject, $body_disp);
    52             do_common_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_sub_admin'], $subject, $body_disp);
     51            db_message_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_admin'], $subject, $body_disp);
     52            db_message_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_sub_admin'], $subject, $body_disp);
    5353        }
    5454
  • OpenPNE/trunk/webapp/modules/pc/do/c_member_review_insert_c_commu_review.php

    r2 r1268  
    2626
    2727        foreach ($c_review_id as $value) {
    28             if (!do_c_member_review_c_review_id4c_review_id_c_member_id($value, $u, $c_commu_id)) {
     28            if (!db_review_c_member_review_c_review_id4c_review_id_c_member_id($value, $u, $c_commu_id)) {
    2929                do_c_member_review_insert_c_commu_review($value, $u, $c_commu_id);
    3030            }
  • OpenPNE/trunk/webapp/modules/pc/do/c_review_add.php

    r1265 r1268  
    1818        // ----------
    1919
    20         $product = p_h_review_write_product4asin($asin);
     20        $product = db_review_write_product4asin($asin);
    2121
    2222        //c_reviewへ登録
  • OpenPNE/trunk/webapp/modules/pc/do/c_send_message.php

    r276 r1268  
    3434        //--- 権限チェック
    3535        //コミュニティ管理者
    36         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     36        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    3737            handle_kengen_error();
    3838        }
    3939        //---
    40         $c_member_id_list = p_c_commu_member_id_list4c_commu_id($target_c_commu_id);
     40        $c_member_id_list = db_commu_c_commu_member_id_list4c_commu_id($target_c_commu_id);
    4141
    4242        foreach ($c_member_id_list as $c_member_id) {
    4343            if ($c_member_id == $u)continue;
    44             do_common_send_message_syoukai_commu($u, $c_member_id, $subject, $body);
     44            db_message_send_message_syoukai_commu($u, $c_member_id, $subject, $body);
    4545        }
    4646        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_sub_admin_request_insert_c_commu_sub_admin_confirm.php

    r1216 r1268  
    4646        //メッセージ
    4747        $c_member_id_from = $u;
    48         $c_member_from    = db_common_c_member4c_member_id_LIGHT($c_member_id_from);
     48        $c_member_from    = db_member_c_member4c_member_id_LIGHT($c_member_id_from);
    4949        $c_member_to      = $target_c_member_id;
    50         $c_commu          = _db_c_commu4c_commu_id($target_c_commu_id);
     50        $c_commu          = db_commu_c_commu4c_commu_id($target_c_commu_id);
    5151
    5252        $subject ="副管理者要請メッセージ";
     
    5656            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    5757
    58         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     58        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    5959
    6060        $p = array('target_c_commu_id' => $target_c_commu_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_topic_add_insert_c_commu_topic.php

    r1216 r1268  
    2727        }
    2828
    29         $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id);
     29        $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id);
    3030
    3131        //トピック作成権限チェック
     
    4545            "event_flag"  => 0
    4646        );
    47         $c_commu_topic_id = do_c_event_add_insert_c_commu_topic($insert_c_commu_topic);
     47        $c_commu_topic_id = db_commu_insert_c_commu_topic($insert_c_commu_topic);
    4848
    4949        if ($image_filename1_tmpfile) {
     
    6868            "image_filename3"  => !empty($filename3) ? $filename3 : '',
    6969        );
    70         $insert_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     70        $insert_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    7171
    7272        //お知らせメール送信(携帯へ)
  • OpenPNE/trunk/webapp/modules/pc/do/c_topic_edit_delete_c_commu_topic_comment_image.php

    r155 r1268  
    2121        //トピック作成者 or コミュニティ管理者
    2222
    23         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) &&
    24             !_db_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
     23        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) &&
     24            !db_commu_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
    2525            handle_kengen_error();
    2626        }
     
    2929        image_data_delete($c_topic['image_filename'.$pic_delete]);
    3030
    31         do_c_event_edit_delete_c_commu_topic_comment_image($c_commu_topic_id, $pic_delete);
     31        db_commu_delete_c_commu_topic_comment_image($c_commu_topic_id, $pic_delete);
    3232
    3333        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_topic_edit_update_c_commu_topic.php

    r155 r1268  
    2626        $c_commu_id = $c_topic['c_commu_id'];
    2727
    28         if (!_db_is_c_topic_admin($c_commu_topic_id, $u) &&
    29             !_db_is_c_commu_admin($c_commu_id, $u)) {
     28        if (!db_commu_is_c_topic_admin($c_commu_topic_id, $u) &&
     29            !db_commu_is_c_commu_admin($c_commu_id, $u)) {
    3030            handle_kengen_error();
    3131        }
     
    8585            'event_flag' => 0,
    8686        );
    87         do_c_event_edit_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
     87        db_commu_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
    8888
    8989
     
    104104            image_data_delete($c_topic['image_filename3']);
    105105        }
    106         do_c_event_edit_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
     106        db_commu_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
    107107
    108108        $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
  • OpenPNE/trunk/webapp/modules/pc/do/c_topic_write_insert_c_commu_topic_comment.php

    r2 r1268  
    3131        //---
    3232
    33         $number = _do_c_commu_topic_comment_number4c_commu_topic_id($c_commu_topic_id);
     33        $number = db_commu_c_commu_topic_comment_number4c_commu_topic_id($c_commu_topic_id);
    3434        $insert_c_commu_topic_comment = array(
    3535            "c_commu_id"        => $c_commu_id,
     
    3939            "c_commu_topic_id"  => $c_commu_topic_id,
    4040        );
    41         $insert_id = do_c_event_add_insert_c_commu_topic_comment($insert_c_commu_topic_comment);
     41        $insert_id = db_commu_insert_c_commu_topic_comment_3($insert_c_commu_topic_comment);
    4242
    4343        if ($tmpfile1) {
  • OpenPNE/trunk/webapp/modules/pc/do/f_intro_delete.php

    r2 r1268  
    2121        //フレンド
    2222
    23         $status = db_common_friend_status($u, $target_c_member_id);
     23        $status = db_friend_status($u, $target_c_member_id);
    2424        if (!$status['is_friend']) {
    2525            handle_kengen_error();
  • OpenPNE/trunk/webapp/modules/pc/do/f_intro_edit_update_c_friend.php

    r1265 r1268  
    3131        //フレンド
    3232
    33         $status = db_common_friend_status($u, $target_c_member_id);
     33        $status = db_friend_status($u, $target_c_member_id);
    3434        if (!$status['is_friend']) {
    3535            handle_kengen_error();
     
    3737        //---
    3838
    39         if(!p_f_intro_edit_intro_body4c_member_id($u, $target_c_member_id)){
     39        if(!db_friend_intro_body4c_member_id($u, $target_c_member_id)){
    4040            //紹介文を書いた人にポイント付与
    4141            $point = db_action_get_point4c_action_id(5);
  • OpenPNE/trunk/webapp/modules/pc/do/f_intro_from_delete.php

    r2 r1268  
    2121        //フレンド
    2222
    23         $status = db_common_friend_status($u, $target_c_member_id);
     23        $status = db_friend_status($u, $target_c_member_id);
    2424        if (!$status['is_friend']) {
    2525            handle_kengen_error();
  • OpenPNE/trunk/webapp/modules/pc/do/f_invite_insert_c_message_friend_invite.php

    r1265 r1268  
    4848
    4949        foreach ($c_member_id_list as $key => $value) {
    50             do_common_send_message_syoukai_member($u, $value, $msg_subject, $msg_body);
     50            db_message_send_message_syoukai_member($u, $value, $msg_subject, $msg_body);
    5151        }
    5252
  • OpenPNE/trunk/webapp/modules/pc/do/f_link_request.php

    r134 r1268  
    2222        $c_member_id_to   = $target_c_member_id;
    2323
    24         $status = do_common_get_f_link_status($c_member_id_from, $c_member_id_to);
     24        $status = db_friend_f_link_status($c_member_id_from, $c_member_id_to);
    2525        $p = array('target_c_member_id' => $target_c_member_id);
    2626
  • OpenPNE/trunk/webapp/modules/pc/do/f_link_request_insert_c_friend_confirm.php

    r134 r1268  
    2222        //フレンドでない or フレンド承認中でない
    2323
    24         $status = db_common_friend_status($u, $target_c_member_id);
     24        $status = db_friend_status($u, $target_c_member_id);
    2525        if ($status['is_friend']) {
    2626            $p = array('target_c_member_id' => $target_c_member_id);
     
    3232
    3333        //アクセスブロック設定
    34         if (p_common_is_access_block($u, $target_c_member_id)) {
     34        if (db_member_is_access_block($u, $target_c_member_id)) {
    3535            openpne_redirect('pc', 'page_h_access_block');
    3636        }
     
    4343
    4444        //メッセージ
    45         $c_member_to   = db_common_c_member4c_member_id($target_c_member_id);
    46         $c_member_from = db_common_c_member4c_member_id($c_member_id_from);
     45        $c_member_to   = db_member_c_member4c_member_id($target_c_member_id);
     46        $c_member_from = db_member_c_member4c_member_id($c_member_id_from);
    4747
    4848        $subject =WORD_FRIEND."リンク要請メッセージ";
     
    5555            "この要請について、承認待ちリストから承認または拒否を選択してください。\n";
    5656
    57         do_common_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
     57        db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
    5858
    5959        $p = array('target_c_member_id' => $target_c_member_id);
  • OpenPNE/trunk/webapp/modules/pc/do/f_message_send_insert_c_message.php

    r518 r1268  
    6666
    6767        //アクセスブロック設定
    68         if (p_common_is_access_block($u, $c_member_id_to)) {
     68        if (db_member_is_access_block($u, $c_member_id_to)) {
    6969            openpne_redirect('pc', 'page_h_access_block');
    7070        }
    7171
    7272        if ($requests['jyusin_c_message_id']) {
    73             $c_message = _db_c_message4c_message_id($requests['jyusin_c_message_id']);
     73            $c_message = db_message_c_message4c_message_id($requests['jyusin_c_message_id']);
    7474            if ($c_message['c_member_id_to'] != $u || !$c_message['is_send']) {
    7575                handle_kengen_error();
     
    7777        }
    7878        if ($requests['target_c_message_id'] != $requests['jyusin_c_message_id']) {
    79             $c_message = _db_c_message4c_message_id($requests['target_c_message_id']);
     79            $c_message = db_message_c_message4c_message_id($requests['target_c_message_id']);
    8080            if ($c_message['c_member_id_from'] != $u || $c_message['is_send']) {
    8181                handle_kengen_error();
     
    8686        //返信済みにする
    8787        if ($requests['jyusin_c_message_id']) {
    88             do_update_is_hensin($requests['jyusin_c_message_id']);
     88            db_message_update_is_hensin($requests['jyusin_c_message_id']);
    8989        }
    9090
    9191        //下書き保存が存在しない
    9292        if ($requests['target_c_message_id'] == $requests['jyusin_c_message_id']) {
    93             $c_message_id = do_common_send_message($u, $c_member_id_to, $subject, $body);
     93            $c_message_id = db_message_send_message($u, $c_member_id_to, $subject, $body);
    9494        } else {
    9595            $c_message_id = $requests['target_c_message_id'];
    96             update_message_to_is_save($requests['target_c_message_id'], $subject, $body, 1);
     96            db_message_update_message_to_is_save($requests['target_c_message_id'], $subject, $body, 1);
    9797        }
    9898        //画像挿入
     
    102102        $filename_3 = image_insert_c_image4tmp("ms_{$c_message_id}_3", $tmpfile_3);
    103103        t_image_clear_tmp($sessid);
    104         db_update_c_message($c_message_id, $subject, $body, $filename_1, $filename_2, $filename_3);
     104        db_message_update_c_message($c_message_id, $subject, $body, $filename_1, $filename_2, $filename_3);
    105105
    106106        $p = array('msg' => 1);
  • OpenPNE/trunk/webapp/modules/pc/do/fh_diary_insert_c_diary_comment.php

    r1265 r1268  
    3131        $c_diary = db_diary_get_c_diary4id($target_c_diary_id);
    3232        $target_c_member_id = $c_diary['c_member_id'];
    33         $target_c_member = db_common_c_member4c_member_id($target_c_member_id);
     33        $target_c_member = db_member_c_member4c_member_id($target_c_member_id);
    3434
    3535        if ($u != $target_c_member_id) {
     
    3939            }
    4040            //アクセスブロック設定
    41             if (p_common_is_access_block($u, $target_c_member_id)) {
     41            if (db_member_is_access_block($u, $target_c_member_id)) {
    4242                openpne_redirect('pc', 'page_h_access_block');
    4343            }
  • OpenPNE/trunk/webapp/modules/pc/do/h_com_add_insert_c_commu.php

    r312 r1268  
    3737
    3838        //作成者をコミュメンバーにする
    39         do_inc_join_c_commu($c_commu_id, $u);
     39        db_commu_join_c_commu($c_commu_id, $u);
    4040
    4141        $p = array('target_c_commu_id' => $c_commu_id);
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_1.php

    r924 r1268  
    88 * メールアドレス変更
    99 */
    10 class pc_do_h_config_1 extends OpenPNE_Action
     10class pc_db_member_h_config_1 extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3333        }
    3434
    35         $c_member_id = _db_c_member_id4pc_address($pc_address);
     35        $c_member_id = db_member_c_member_id4pc_address($pc_address);
    3636        if ($c_member_id == $u) {
    3737            //自分のメールアドレス
     
    4949        }
    5050
    51         do_h_config_1($u, $pc_address);
     51        db_member_h_config_1($u, $pc_address);
    5252
    5353        $GLOBALS['AUTH']->logout();
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_2.php

    r1263 r1268  
    4343        }
    4444
    45         do_common_update_password($u, $new_password);
     45        db_member_update_password($u, $new_password);
    4646
    4747        $GLOBALS['AUTH']->logout();
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_3.php

    r1187 r1268  
    88 * 設定変更
    99 */
    10 class pc_do_h_config_3 extends OpenPNE_Action
     10class pc_db_member_h_config_3 extends OpenPNE_Action
    1111{
    1212    function handleError($errors)
     
    3737
    3838        if ($rss_url = OpenPNE_RSS::auto_discovery($rss)) {
    39             $c_member = db_common_c_member4c_member_id($u);
     39            $c_member = db_member_c_member4c_member_id($u);
    4040            if ($rss_url != $c_member['rss']) {
    4141                //異なるBlogを登録すると過去のrssは全て削除する
    42                 delete_rss_cache($u);
     42                db_rss_delete_rss_cache($u);
    4343            }
    4444
    4545            //c_rss_cacheへ登録
    46             insert_rss_cache($rss_url, $u);
     46            db_rss_insert_rss_cache($rss_url, $u);
    4747        } else {
    4848            $rss_url = '';
    49             delete_rss_cache($u);
     49            db_rss_delete_rss_cache($u);
    5050        }
    5151
    52         do_h_config_3(
     52        db_member_h_config_3(
    5353            $u,
    5454            $is_receive_mail,
     
    6363        );
    6464
    65         do_h_config_3_insert_c_access_block($u, $c_member_id_block);
     65        db_member_h_config_3_insert_c_access_block($u, $c_member_id_block);
    6666
    6767        openpne_redirect('pc', 'page_h_home');
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_image.php

    r2 r1268  
    2222        }
    2323
    24         $c_member = db_common_c_member4c_member_id($u);
     24        $c_member = db_member_c_member4c_member_id($u);
    2525
    2626        if (!$c_member['image_filename_1']) {
     
    3939
    4040        //c_memberのフィールドに登録
    41         do_h_config_image_new($u, $image_filename, $img_num);
     41        db_member_config_image_new($u, $image_filename, $img_num);
    4242
    4343        //画像1の時(最初の画像)メイン画像に
    4444        if ($img_num == 1) {
    45             do_h_config_image_change_c_member_main_image($u, 1);
     45            db_member_change_c_member_main_image($u, 1);
    4646        }
    4747
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_image_change_main_c_member_image.php

    r134 r1268  
    1818        // ----------
    1919
    20         do_h_config_image_change_c_member_main_image($u, $img_num);
     20        db_member_change_c_member_main_image($u, $img_num);
    2121
    2222        openpne_redirect('pc', 'page_h_config_image');
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_image_delete_c_member_image.php

    r2 r1268  
    2424
    2525
    26         $c_member = db_common_c_member4c_member_id($u);
     26        $c_member = db_member_c_member4c_member_id($u);
    2727        image_data_delete($c_member['image_filename_'.$img_num]);
    28         do_h_config_image_delete_c_member_image_new($u, $img_num);
     28        db_member_delete_c_member_image_new($u, $img_num);
    2929
    3030        if ($c_member['image_filename'] == $c_member['image_filename_'.$img_num]) {
    31             do_h_config_image_change_c_member_main_image($u, 1);
     31            db_member_change_c_member_main_image($u, 1);
    3232        }
    3333
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_ktai_send.php

    r2 r1268  
    2828
    2929        // 登録済みアドレスかどうかチェックする
    30         if (($c_member_id = do_common_c_member_id4ktai_address($ktai_address)) &&
     30        if (($c_member_id = db_member_c_member_id4ktai_address2($ktai_address)) &&
    3131            $c_member_id != $u) {
    3232            $msg = "入力されたアドレスは既に登録されています";
     
    3535        }
    3636
    37         k_do_delete_c_member_ktai_pre4ktai_address($ktai_address);
    38         k_do_delete_c_ktai_address_pre4ktai_address($ktai_address);
     37        db_member_delete_c_member_ktai_pre4id4ktai_address($ktai_address);
     38        db_member_delete_c_ktai_address_pre4ktai_address($ktai_address);
    3939
    4040        $session = create_hash();
    41         k_do_insert_c_ktai_address_pre($u, $session, $ktai_address);
     41        db_member_insert_c_ktai_address_pre($u, $session, $ktai_address);
    4242
    4343        do_mail_sns_change_ktai_mail_send($u, $session, $ktai_address);
  • OpenPNE/trunk/webapp/modules/pc/do/h_config_prof.php

    r882 r1268  
    3131
    3232        // 値の整合性をチェック(DB)
    33         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
     33        $c_member_profile_list = db_member_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    3434        // 必須項目チェック
    35         $profile_list = db_common_c_profile_list4null();
     35        $profile_list = db_member_c_profile_list4null();
    3636        foreach ($profile_list as $profile) {
    3737            if ($profile['disp_config']
     
    7474            break;
    7575        case "register":
    76             do_config_prof_new($u, $prof);
    77             do_config_prof_update_c_member_profile($u, $c_member_profile_list);
     76            db_member_config_prof_new($u, $prof);
     77            db_member_update_c_member_profile($u, $c_member_profile_list);
    7878
    7979            openpne_redirect('pc', 'page_h_prof');
     
    120120    {
    121121        $rules = array();
    122         $profile_list = db_common_c_profile_list4null();
     122        $profile_list = db_member_c_profile_list4null();
    123123        foreach ($profile_list as $profile) {
    124124            if ($profile['disp_config']) {
  • OpenPNE/trunk/webapp/modules/pc/do/h_confirm_list_delete_c_commu_admin_confirm.php

    r2 r1268  
    2222        //コミュニティ管理者交代を受けている or 送った人
    2323
    24         $cac = _db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
     24        $cac = db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
    2525
    2626        if ($cac['c_member_id_to'] != $u
  • OpenPNE/trunk/webapp/modules/pc/do/h_confirm_list_delete_c_friend_confirm.php

    r2 r1268  
    2121        //リンク承認を送った人 or 受けた人
    2222
    23         $cfc = _do_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
     23        $cfc = db_friend_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
    2424
    2525        if ($cfc['c_member_id_to'] != $u
  • OpenPNE/trunk/webapp/modules/pc/do/h_confirm_list_insert_c_friend.php

    r2 r1268  
    2121        //リンク承認を受けているメンバー
    2222
    23         $cfc = _do_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
     23        $cfc = db_friend_c_friend_confirm4c_friend_confirm_id($target_c_friend_confirm_id);
    2424
    2525        if ($cfc['c_member_id_to'] != $u) {
  • OpenPNE/trunk/webapp/modules/pc/do/h_confirm_list_update_c_commu_admin_confirm.php

    r1216 r1268  
    2222        //コミュニティ管理者交代を受けているメンバー
    2323
    24         $admin_confirm = _db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
     24        $admin_confirm = db_c_commu_admin_confirm4c_commu_admin_confirm_id($target_c_commu_admin_confirm_id);
    2525
    2626        if ($admin_confirm['c_member_id_to'] != $u) {
  • OpenPNE/trunk/webapp/modules/pc/do/h_delete_ktai.php

    r410 r1268  
    1111        $q = $requests['c_member_id'];
    1212
    13         k_do_update_ktai_address($q,"");
     13        db_member_update_ktai_address($q,"");
    1414        openpne_redirect('pc', 'page_h_ktai_delete_end');
    1515
  • OpenPNE/trunk/webapp/modules/pc/do/h_home_insert_c_schedule.php

    r924 r1268  
    6666        //---
    6767
    68         do_h_schedule_add_insert_c_schedule($u, $title, $input['body'],
     68        db_schedule_add_insert_c_schedule($u, $title, $input['body'],
    6969            $start_date, $start_time, $end_date, $end_time,
    7070            $input['is_receive_mail']);
  • OpenPNE/trunk/webapp/modules/pc/do/h_invite_delete_member.php

    r2 r1268  
    1616
    1717        if ($c_member_id) {
    18             do_h_invite_delete_member_delete_c_member_pre($u, $c_member_id);
     18            db_member_delete_c_member_pre($u, $c_member_id);
    1919        }
    2020        //携帯用
    2121        if ($c_member_ktai_id) {
    22             do_h_invite_delete_member_delete_c_member_ktai_pre($u, $c_member_ktai_id);
     22            db_member_delete_c_member_ktai_pre($u, $c_member_ktai_id);
    2323        }
    2424
  • OpenPNE/trunk/webapp/modules/pc/do/h_invite_insert_c_invite.php

    r924 r1268  
    88 * 招待メール送信
    99 */
    10 class pc_do_h_invite_insert_c_invite extends OpenPNE_Action
     10class pc_db_member_insert_c_invite extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    3838        }
    3939
    40         if (p_is_sns_join4mail_address($mail)) {
     40        if (db_member_is_sns_join4mail_address($mail)) {
    4141            $msg = "そのアドレスは既に登録済みです";
    4242            $p = array('msg' => $msg);
     
    6464
    6565            // c_member_ktai_pre に追加
    66             if (do_common_c_member_ktai_pre4ktai_address($mail)) {
    67                 do_update_c_member_ktai_pre($session, $mail, $c_member_id_invite);
     66            if (db_member_c_member_ktai_pre4ktai_address($mail)) {
     67                db_member_update_c_member_ktai_pre($session, $mail, $c_member_id_invite);
    6868            } else {
    69                 do_insert_c_member_ktai_pre($session, $mail, $c_member_id_invite);
     69                db_member_insert_c_member_ktai_pre($session, $mail, $c_member_id_invite);
    7070            }
    7171
     
    8383
    8484            // c_member_pre に追加
    85             if (do_common_c_member_pre4pc_address($mail)) {
    86                 do_h_invite_update_c_invite($c_member_id_invite, $mail, $message, $session);
     85            if (db_member_c_member_pre4pc_address($mail)) {
     86                db_member_update_c_invite($c_member_id_invite, $mail, $message, $session);
    8787            } else {
    88                 do_h_invite_insert_c_invite($c_member_id_invite, $mail, $message, $session);
     88                db_member_insert_c_invite($c_member_id_invite, $mail, $message, $session);
    8989            }
    9090
    91             do_h_invite_insert_c_invite_mail_send($c_member_id_invite, $session, $message, $mail);
     91            db_member_insert_c_invite_mail_send($c_member_id_invite, $session, $message, $mail);
    9292        }
    9393
  • OpenPNE/trunk/webapp/modules/pc/do/h_message_box_delete_message.php

    r516 r1268  
    3434                //ごみ箱から移動
    3535                foreach ($c_message_id as $val) {
    36                     $c_message = _db_c_message4c_message_id($val);
     36                    $c_message = db_message_c_message4c_message_id($val);
    3737                    if ($c_message['c_member_id_from'] != $u
    3838                        && $c_message['c_member_id_to'] != $u) {
    3939                        handle_kengen_error();
    4040                    }
    41                     do_h_message_box_move_message($val, $u);
     41                    db_message_move_message($val, $u);
    4242                }
    4343                $p = array('box' => $box);
     
    4646                //ごみ箱から完全削除 復元方法なし
    4747                foreach ($c_message_id as $val) {
    48                     $c_message = _db_c_message4c_message_id($val);
     48                    $c_message = db_message_c_message4c_message_id($val);
    4949                    if ($c_message['c_member_id_from'] == $u) {
    50                         do_delete_c_message_from_trash($val);
     50                        db_message_delete_c_message_from_trash($val);
    5151                    } elseif ($c_message['c_member_id_to'] == $u) {
    52                         do_delete_c_message_to_trash($val);
     52                        db_message_delete_c_message_to_trash($val);
    5353                    } else {
    5454                        handle_kengen_error();
     
    6161            // メッセージをごみ箱へ移動
    6262            foreach ($c_message_id as $val) {
    63                 $c_message = _db_c_message4c_message_id($val);
     63                $c_message = db_message_c_message4c_message_id($val);
    6464                if ($c_message['c_member_id_from'] != $u) {
    6565                    if ($c_message['c_member_id_to'] != $u || !$c_message['is_send']) {
     
    6767                    }
    6868                }
    69                 _do_delete_c_message4c_message_id($val, $u);
     69                db_message_delete_c_message4c_message_id($val, $u);
    7070            }
    7171        }
  • OpenPNE/trunk/webapp/modules/pc/do/h_regist_address.php

    r1263 r1268  
    3131        }
    3232
    33         $c_member_id = _db_c_member_id4pc_address($pc_address);
     33        $c_member_id = db_member_c_member_id4pc_address($pc_address);
    3434        if ($c_member_id == $u) {
    3535            //自分のメールアドレス
  • OpenPNE/trunk/webapp/modules/pc/do/h_regist_prof.php

    r1263 r1268  
    4242
    4343        // 値の整合性をチェック(DB)
    44         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $_REQUEST['public_flag']);
     44        $c_member_profile_list = db_member_check_profile($validator->getParams(), $_REQUEST['public_flag']);
    4545
    4646        // 必須項目チェック
    47         $profile_list = db_common_c_profile_list4null();
     47        $profile_list = db_member_c_profile_list4null();
    4848        foreach ($profile_list as $profile) {
    4949            if ($profile['disp_config']
     
    146146    {
    147147        $rules = array();
    148         $profile_list = db_common_c_profile_list4null();
     148        $profile_list = db_member_c_profile_list4null();
    149149        foreach ($profile_list as $profile) {
    150150            if ($profile['disp_regist']) {
  • OpenPNE/trunk/webapp/modules/pc/do/h_review_clip_add_insert_c_review_clip.php

    r2 r1268  
    1818        //レビューコメント作者以外
    1919
    20         if (do_h_review_clip_add_c_review_id4c_review_id_c_member_id($c_review_id, $u)) {
     20        if (db_review_clip_add_c_review_id4c_review_id_c_member_id($c_review_id, $u)) {
    2121            openpne_redirect('pc', 'page_h_review_clip_list');
    2222        }
  • OpenPNE/trunk/webapp/modules/pc/do/h_review_edit_delete_c_review_comment.php

    r134 r1268  
    1818        //レビューコメント作者
    1919
    20         if (!do_h_review_edit_c_review_comment4c_review_comment_id_c_member_id($c_review_comment_id, $u)) {
     20        if (!db_review_edit_c_review_comment4c_review_comment_id_c_member_id($c_review_comment_id, $u)) {
    2121            handle_kengen_error();
    2222        }
    2323        //---
    2424
    25         $c_review_id = do_common_c_review_id4c_review_comment_id($c_review_comment_id);
     25        $c_review_id = db_review_common_c_review_id4c_review_comment_id($c_review_comment_id);
    2626
    2727        do_h_review_edit_delete_c_review_comment($c_review_comment_id);
     
    2929        //コメント件数が0件になった場合は
    3030        // c_review / c_review_clip / c_commu_review を削除する
    31         if (do_common_count_c_review_comment4c_review_id($c_review_id) === 0) {
     31        if (db_review_count_c_review_comment4c_review_id($c_review_id) === 0) {
    3232            do_delete_c_review4c_review_id($c_review_id);
    3333        }
  • OpenPNE/trunk/webapp/modules/pc/do/h_review_edit_update_c_review_comment.php

    r134 r1268  
    2020        //レビューコメント作成者
    2121
    22         if (!do_h_review_edit_c_review_comment4c_review_comment_id_c_member_id($c_review_comment_id, $u)) {
     22        if (!db_review_edit_c_review_comment4c_review_comment_id_c_member_id($c_review_comment_id, $u)) {
    2323            handle_kengen_error();
    2424        }
     
    3333
    3434        if ($err_msg) {
    35             $c_review = do_h_review_edit_c_review4c_review_comment_id($c_review_comment_id);
     35            $c_review = db_review_edit_c_review4c_review_comment_id($c_review_comment_id);
    3636            $_REQUEST['asin'] = $c_review['asin'];
    3737            $_REQUEST['err_msg'] = $err_msg;
  • OpenPNE/trunk/webapp/modules/pc/do/h_schedule_add_insert_c_schedule.php

    r155 r1268  
    55 */
    66
    7 class pc_do_h_schedule_add_insert_c_schedule extends OpenPNE_Action
     7class pc_db_schedule_add_insert_c_schedule extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    7373        }
    7474
    75         do_h_schedule_add_insert_c_schedule($u, $title, $input['body'],
     75        db_schedule_add_insert_c_schedule($u, $title, $input['body'],
    7676            $start_date, $start_time, $end_date, $end_time,
    7777            $input['is_receive_mail']);
  • OpenPNE/trunk/webapp/modules/pc/do/h_schedule_delete_delete_c_schedule.php

    r2 r1268  
    1818        //スケジュール作成者
    1919
    20         $c_schedule = p_common_c_schedule4c_schedule_id($target_c_schedule_id);
     20        $c_schedule = db_schedule_c_schedule4c_schedule_id($target_c_schedule_id);
    2121        if ($c_schedule['c_member_id'] != $u) {
    2222            handle_kengen_error();
     
    2424        //---
    2525
    26         do_h_schedule_delte_delete_c_schedule4c_schedule_id($target_c_schedule_id);
     26        db_schedule_delete_c_schedule4c_schedule_id($target_c_schedule_id);
    2727
    2828        openpne_redirect('pc', 'page_h_schedule_delete_end');
  • OpenPNE/trunk/webapp/modules/pc/do/h_schedule_edit_update_c_schedule.php

    r155 r1268  
    55 */
    66
    7 class pc_do_h_schedule_edit_update_c_schedule extends OpenPNE_Action
     7class pc_db_schedule_edit_update_c_schedule extends OpenPNE_Action
    88{
    99    function execute($requests)
     
    3232        //スケジュール作成者
    3333
    34         $c_schedule = p_common_c_schedule4c_schedule_id($target_c_schedule_id);
     34        $c_schedule = db_schedule_c_schedule4c_schedule_id($target_c_schedule_id);
    3535        if ($c_schedule['c_member_id'] != $u) {
    3636            handle_kengen_error();
     
    8787
    8888
    89         do_h_schedule_edit_update_c_schedule($u, $title, $input['body'],
     89        db_schedule_edit_update_c_schedule($u, $title, $input['body'],
    9090                                           $start_date, $start_time, $end_date, $end_time,
    9191                                           $input['is_receive_mail'],
  • OpenPNE/trunk/webapp/modules/pc/do/inc_join_c_commu.php

    r134 r1268  
    88 * コミュニティに参加
    99 */
    10 class pc_do_inc_join_c_commu extends OpenPNE_Action
     10class pc_db_commu_join_c_commu extends OpenPNE_Action
    1111{
    1212    function execute($requests)
     
    1919
    2020        //非公開コミュニティに管理者から招待されている場合は強制的に承認を回避
    21         $admin_invite = db_c_commu4c_admin_invite_id($target_c_commu_id, $u);
     21        $admin_invite = db_commu_c_commu4c_admin_invite_id($target_c_commu_id, $u);
    2222        if ($admin_invite) {
    2323            $status = STATUS_C_JOIN_REQUEST_FREE;
     
    2828        //承認必要なし
    2929        case STATUS_C_JOIN_REQUEST_FREE:
    30             do_inc_join_c_commu($target_c_commu_id, $u);
    31             do_inc_join_c_commu_send_mail($target_c_commu_id, $u);
     30            db_commu_join_c_commu($target_c_commu_id, $u);
     31            db_commu_join_c_commu_send_mail($target_c_commu_id, $u);
    3232            $p = array('target_c_commu_id' => $target_c_commu_id);
    3333            openpne_redirect('pc', 'page_c_join_commu_2', $p);
  • OpenPNE/trunk/webapp/modules/pc/do/inc_leave_c_commu.php

    r2 r1268  
    2121        //コミュニティメンバーで管理者ではない
    2222
    23         $is_admin  = _db_is_c_commu_admin($target_c_commu_id, $u);
    24         $is_member = _db_is_c_commu_member($target_c_commu_id, $u);
     23        $is_admin  = db_commu_is_c_commu_admin($target_c_commu_id, $u);
     24        $is_member = db_commu_is_c_commu_member($target_c_commu_id, $u);
    2525
    2626        if ($is_admin) {
  • OpenPNE/trunk/webapp/modules/pc/do/o_login2_change_mail.php

    r2 r1268  
    2323        //パスワードが正しい
    2424
    25         if (!do_change_mail($sid, $password)) {
     25        if (!db_member_change_mail($sid, $password)) {
    2626            $msg = "パスワードが違います";
    2727            $p = array('sid' => $sid, 'msg' => $msg);
  • OpenPNE/trunk/webapp/modules/pc/do/o_password_query.php

    r1263 r1268  
    2828
    2929        if (!$pc_address || !$q_id || !$q_answer ||
    30             !$c_member_id = do_password_query_is_password_query_complete($pc_address, $q_id, $q_answer)
     30            !$c_member_id = db_member_is_password_query_complete($pc_address, $q_id, $q_answer)
    3131           ) {
    3232            $msg = '正しい値を入力してください';
     
    3838        // パスワード再発行
    3939        $new_password = do_common_create_password();
    40         do_common_update_password($c_member_id, $new_password);
     40        db_member_update_password($c_member_id, $new_password);
    4141        do_password_query_mail_send($c_member_id, $pc_address, $new_password);
    4242
  • OpenPNE/trunk/webapp/modules/pc/do/o_public_invite.php

    r924 r1268  
    5656            openpne_redirect('pc', 'page_o_public_invite', $p);
    5757        }
    58         if (_db_c_member_id4pc_address($pc_address)) {
     58        if (db_member_c_member_id4pc_address($pc_address)) {
    5959            $msg = 'そのアドレスは既に登録されています';
    6060            $p = array('msg' => $msg);
     
    6969        $session = create_hash();
    7070
    71         if (do_common_c_member_pre4pc_address($pc_address)) {
    72             do_h_invite_update_c_invite($c_member_id_invite, $pc_address, '', $session);
     71        if (db_member_c_member_pre4pc_address($pc_address)) {
     72            db_member_update_c_invite($c_member_id_invite, $pc_address, '', $session);
    7373        } else {
    74             do_h_invite_insert_c_invite($c_member_id_invite, $pc_address, '', $session);
     74            db_member_insert_c_invite($c_member_id_invite, $pc_address, '', $session);
    7575        }
    7676
    77         do_h_invite_insert_c_invite_mail_send($c_member_id_invite, $session, '', $pc_address);
     77        db_member_insert_c_invite_mail_send($c_member_id_invite, $session, '', $pc_address);
    7878
    7979        // delete cookie
  • OpenPNE/trunk/webapp/modules/pc/do/o_regist_prof.php

    r1265 r1268  
    2222
    2323        $sid = $requests['sid'];
    24         if (!n_regist_intro_is_active_sid($sid)) {
     24        if (!db_member_is_active_sid($sid)) {
    2525            $p = array('msg_code' => 'invalid_url');
    2626            openpne_redirect('pc', 'page_o_tologin', $p);
     
    7575
    7676        // 値の整合性をチェック(DB)
    77         $c_member_profile_list = do_config_prof_check_profile($validator->getParams(), $public_flag_list);
     77        $c_member_profile_list = db_member_check_profile($validator->getParams(), $public_flag_list);
    7878
    7979
    8080        // 必須項目チェック
    81         $profile_list = db_common_c_profile_list4null();
     81        $profile_list = db_member_c_profile_list4null();
    8282        foreach ($profile_list as $profile) {
    8383            if ( $profile['disp_regist'] &&
     
    128128            setcookie(session_name(), '', time() - 3600, ini_get('session.cookie_path'));
    129129
    130             $pre = do_common_c_member_pre4sid($sid);
     130            $pre = db_member_c_member_pre4sid($sid);
    131131
    132132            // c_member, c_member_secure
     
    155155
    156156            // c_member_profile
    157             do_config_prof_update_c_member_profile($u, $c_member_profile_list);
     157            db_member_update_c_member_profile($u, $c_member_profile_list);
    158158
    159159            // 招待者とフレンドリンク
     
    163163            $c_commu_id_list = db_commu_regist_join_list();
    164164            foreach ($c_commu_id_list as $c_commu_id) {
    165                 do_inc_join_c_commu($c_commu_id, $u);
     165                db_commu_join_c_commu($c_commu_id, $u);
    166166            }
    167167
    168168            // pre の内容を削除
    169             do_common_delete_c_member_pre4sid($sid);
     169            db_member_delete_c_member_pre4sid($sid);
    170170
    171171            // 登録完了メール送信
     
    234234    {
    235235        $rules = array();
    236         $profile_list = db_common_c_profile_list4null();
     236        $profile_list = db_member_c_profile_list4null();
    237237        foreach ($profile_list as $profile) {
    238238            if ($profile['disp_regist']) {
  • OpenPNE/trunk/webapp/modules/pc/page/c_admin_request.php

    r1216 r1268  
    2020        //コミュニティ副管理者ではない
    2121
    22         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     22        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    2323            handle_kengen_error();
    2424        }
     
    3131        $this->set('inc_navi', fetch_inc_navi("c", $target_c_commu_id));
    3232
    33         $member = db_common_c_member_with_profile($target_c_member_id);
     33        $member = db_member_c_member_with_profile($target_c_member_id);
    3434        $member['last_login'] = p_f_home_last_login4access_date($member['access_date']);
    3535
    3636        $this->set("member", $member);
    37         $this->set("c_commu", _db_c_commu4c_commu_id($target_c_commu_id));
     37        $this->set("c_commu", db_commu_c_commu4c_commu_id($target_c_commu_id));
    3838
    3939        return 'success';
  • OpenPNE/trunk/webapp/modules/pc/page/c_edit.php

    r1216 r1268  
    2323        //--- 権限チェック
    2424        //コミュニティ管理者
    25         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     25        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    2626            handle_kengen_error();
    2727        }
     
    3030        $this->set('inc_navi', fetch_inc_navi('c', $target_c_commu_id));
    3131        //コミュニティデータ取得
    32         $c_commu = _db_c_commu4c_commu_id($target_c_commu_id);
     32        $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
    3333        if ($name) {
    3434            $c_commu['name'] = $name;
     
    5252
    5353        $this->set('c_commu', $c_commu);
    54         $this->set('c_commu_category_list', _db_c_commu_category4null());
     54        $this->set('c_commu_category_list', db_commu_c_commu_category4null());
    5555        $public_flag_list=
    5656        array(
  • OpenPNE/trunk/webapp/modules/pc/page/c_edit_delete_c_commu_confirm.php

    r1216 r1268  
    1717        //--- 権限チェック
    1818        //コミュニティ管理者
    19         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     19        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    2020            handle_kengen_error();
    2121        }
  • OpenPNE/trunk/webapp/modules/pc/page/c_edit_member.php

    r1216 r1268  
    1919        //--- 権限チェック
    2020        //コミュニティ管理者
    21         if (!_db_is_c_commu_admin($target_c_commu_id, $u)) {
     21        if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
    2222            handle_kengen_error();
    2323        }
     
    2727
    2828        //メンバー情報
    29         $this->set("member", db_common_c_member4c_member_id($u));
     29        $this->set("member", db_member_c_member4c_member_id($u));
    3030
    3131        //コミュニティID
     
    3333
    3434        //コミュニティ情報
    35         $this->set("c_commu", _db_c_commu4c_commu_id($target_c_commu_id));