fetus Diary

2006/11/28(火) - あー。

ケータイ版からの場合に発生っと…

<?php
...
class CommentWriteAction extends CommonAction {
    public function execute() {
        $input = $this->GetNormalizedParam(array('id','name','body','captcha','captcha_id'), 'UTF-8', 'aKV');
        $this->getContext()->getRequest()->setAttributeByRef('input', $input);
        
        $dbcon = DBConnection::getConnection();
        $diary_data             = new DiaryData($dbcon);
        $captcha_data           = new CaptchaData($dbcon);
        $diary_comment_data     = new CommentData($dbcon);
        
        $data = $diary_data->QueryByID($input['id']);
        if($data) {
            $this->getContext()->getRequest()->setAttribute('entry', $data);
            ...
            $auth_master = new AuthMaster($dbcon);
            $author_mail = $auth_master->GetMailaddressFromID($data['editor_id']);
            if($author_mail == '') {
                $author_mail = 'yayoi-diary@localhost.localdomain';
            }
            $mailer = new CommentNotifyMail();
            $mailer->Send('', $author_mail, $data['date'], $input['id'], $input['name'], NULL, $input['body']);
        } else {
            ...
        }
        $this->getContext()->getController()->redirect(YAYOI_BASE_URL . 'm_c_' . $input['id'] . '.html');
        return View::NONE;
    }
}
?>

あー、CommentNotifyMail の利用方法が古いままだ… orz

関係あるかも?

このエントリは次のエントリから参照されているみたいです

  • 2006/11/28(火) - HiNa - よし

コメント

  • TRAN (06/11/29 1:23)

    むらかみさんのは、これが原因・・・?

  • むらかみ (06/11/29 1:37)

    そのようです。

名前
メール
コメント

※HTML タグは使えません。HTTP URL には自動リンクが張られます。

Captcha
画像から読み取れる文字を入力: