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

Changeset 9397


Ignore:
Timestamp:
Nov 27, 2008, 2:05:31 PM (12 years ago)
Author:
akamine
Message:

#2032 db_point_rank_up_pcktai_mail_settingの関数名と変数名を修正

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

Legend:

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

    r9392 r9397  
    3030
    3131// ランクアップメールの設定があるかどうかを取得
    32 function db_point_rank_up_pcktai_mail_setting($c_member_id)
     32function db_point_rank_up_pcktai_mail_config($c_member_id)
    3333{
    34     $sql = 'SELECT COUNT(*) FROM c_member_config ' .
    35             'WHERE c_member_id = ? AND name = "SEND_RANK_UP_MAIL_KTAI" ' .
    36             'OR c_member_id = ? AND name = "SEND_RANK_UP_MAIL_PC"';
     34    $sql = 'SELECT COUNT(*) FROM c_member_config'
     35         . ' WHERE c_member_id = ?'
     36         . ' AND (name = "SEND_RANK_UP_MAIL_KTAI" OR name = "SEND_RANK_UP_MAIL_PC")';
    3737    $params = array(intval($c_member_id), intval($data));
    3838    return (bool)db_get_one($sql, $params);
  • OpenPNE/trunk/webapp/lib/util/mail_send.php

    r9392 r9397  
    812812    $c_member = db_member_c_member4c_member_id($c_member_id, true);
    813813
    814     $is_pc = false;
    815     $is_ktai = false;
    816 
    817     $send_mail_config = db_point_rank_up_pcktai_mail_setting($c_member_id);
     814    $to_rank_up_mail_pc = false;
     815    $to_rank_up_mail_ktai = false;
     816
     817    $send_rank_up_mail_config = db_point_rank_up_pcktai_mail_config($c_member_id);
    818818
    819819    // DBにデータがない場合
    820     if (!$send_mail_config){
     820    if (!$send_rank_up_mail_config){
    821821        if (!empty($c_member['secure']['pc_address'])) {
    822             $is_pc = true;
     822            $to_rank_up_mail_pc = true;
    823823        } else {
    824             $is_ktai = true;
     824            $to_rank_up_mail_ktai = true;
    825825        }
    826826    }
    827827    // 設定された値を取得
    828     $target_c_member_config = util_get_c_member_config($c_member_id);
    829     if ($target_c_member_config['SEND_RANK_UP_MAIL_PC']) {
    830         $is_pc = true;
    831     }
    832     if ($target_c_member_config['SEND_RANK_UP_MAIL_KTAI']) {
    833         $is_ktai = true;
     828    $c_member_config = util_get_c_member_config($c_member_id);
     829    if ($c_member_config['SEND_RANK_UP_MAIL_PC']) {
     830        $to_rank_up_mail_pc = true;
     831    }
     832    if ($c_member_config['SEND_RANK_UP_MAIL_KTAI']) {
     833        $to_rank_up_mail_ktai = true;
    834834    }
    835835    // PCに送信
    836     if ($is_pc) {
     836    if ($to_rank_up_mail_pc) {
    837837        $to = $c_member['secure']['pc_address'];
    838 
    839838        $params = array(
    840839            'c_member'    => $c_member,
     
    846845
    847846    // 携帯に送信
    848     if ($is_ktai) {
     847    if ($to_rank_up_mail_ktai) {
    849848        $to = $c_member['secure']['ktai_address'];
    850849        $p = array('kad' => t_encrypt(db_member_username4c_member_id($c_member['c_member_id'], true)));
Note: See TracChangeset for help on using the changeset viewer.