Changeset 3755
- Timestamp:
- Aug 23, 2007, 12:21:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ogawa/prj_neoktai/webapp/lib/mail/sns.php
r3754 r3755 142 142 return $this->add_member_image(); 143 143 } 144 //---145 146 //message147 elseif (148 preg_match('/^m(\d+)$/', $to_user, $matches) ||149 preg_match('/^m(\d+)-([0-9a-f]{12})$/', $to_user, $matches)150 ) {151 152 if (!$target_c_member_id = $matches[1]) {153 return false;154 }155 if (MAIL_ADDRESS_HASHED) {156 if (empty($matches[2])) return false;157 158 // メンバーハッシュのチェック159 if ($matches[2] != t_get_user_hash($this->c_member_id)) {160 return false;161 }162 }163 164 165 $subject = $this->decoder->get_subject();166 $body = $this->decoder->get_text_body();167 if($subject === ''){$subject = '無題';}168 if($body === ''){169 $this->error_mail('本文が空のため投稿できませんでした');170 m_debug_log('mail_sns::add_diary() body is empty');171 return false;172 }173 174 if ($ins_id = db_message_insert_c_message($this->c_member_id, $target_c_member_id, $subject, $body)) {175 m_debug_log('message box action', PEAR_LOG_INFO);176 return true;177 }else{178 return false;179 }180 }181 182 144 183 145 m_debug_log('mail_sns::main() action not found(member)');
Note: See TracChangeset
for help on using the changeset viewer.