svnno****@sourc*****
svnno****@sourc*****
2009年 12月 31日 (木) 17:47:48 JST
Revision: 750 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=750 Author: rsk Date: 2009-12-31 17:47:48 +0900 (Thu, 31 Dec 2009) Log Message: ----------- expack: - P2Client::post() ã®ç¬¬7å¼æ° (bool $beRes) ã ããã©ã«ãå¤=false ã®ãªãã·ã§ã³å¼æ°ã«ããã Modified Paths: -------------- p2ex/trunk/lib/P2Client.php -------------- next part -------------- Modified: p2ex/trunk/lib/P2Client.php =================================================================== --- p2ex/trunk/lib/P2Client.php 2009-12-30 16:40:34 UTC (rev 749) +++ p2ex/trunk/lib/P2Client.php 2009-12-31 08:47:48 UTC (rev 750) @@ -227,7 +227,8 @@ /** * XbhÉ«Þ * - * csrfIdðæ¾µA©Âö®p2ÌùÇðÅV·é½ßAܸ read.php ð@B + * csrfIdðæ¾µA©Âö®p2ÌùÇðÅVÌóÔÉ·é½ßA + * ܸ read.php ð@B * ÊMÊðßñÅ«éæ¤É ls=l1n ƵĢéB * popup=1 Í«ÝãÌy[WÉ_CNg³¹È¢½ßB * @@ -237,13 +238,13 @@ * @param string $from * @param string $mail * @param string $message - * @param bool $beres + * @param bool $beRes * @param mixed &$response * @return bool * @throws P2Exception */ public function post($host, $bbs, $key, $from, $mail, $message, - $beres, &$response = null) + $beRes = false, &$response = null) { $dom = new P2DOM($this->readThread($host, $bbs, $key, 'l1n', $response)); if ($form = $this->getPostForm($dom)) { @@ -254,7 +255,7 @@ $postData[self::FIELD_NAME_FROM] = rawurlencode($from); $postData[self::FIELD_NAME_MAIL] = rawurlencode($mail); $postData[self::FIELD_NAME_MESSAGE] = rawurlencode($message); - if ($beres) { + if ($beRes) { $postData[self::FIELD_NAME_BERES] = '1'; } elseif (array_key_exists(self::FIELD_NAME_BERES, $postData)) { unset($postData[self::FIELD_NAME_BERES]);