svnno****@sourc*****
svnno****@sourc*****
2010年 1月 30日 (土) 22:00:09 JST
Revision: 826 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=826 Author: rsk Date: 2010-01-30 22:00:07 +0900 (Sat, 30 Jan 2010) Log Message: ----------- expack: - rev.100130.2200. - ã¾ã¡BBSã®datåå¾ã§ããã¼ã¼ãã¬ã¹ã®æ±ããèæ ®ãã¦ããªãã£ãä¸å ·åãä¿®æ£ã Modified Paths: -------------- p2ex/trunk/conf/conf.inc.php p2ex/trunk/lib/DownloadDatMachiBbs.php -------------- next part -------------- Modified: p2ex/trunk/conf/conf.inc.php =================================================================== --- p2ex/trunk/conf/conf.inc.php 2010-01-30 11:01:56 UTC (rev 825) +++ p2ex/trunk/conf/conf.inc.php 2010-01-30 13:00:07 UTC (rev 826) @@ -7,7 +7,7 @@ // o[Wîñ $_conf = array( 'p2version' => '1.7.29+1.8.x', // rep2Ìo[W - 'p2expack' => '100130.2000', // g£pbNÌo[W + 'p2expack' => '100130.2200', // g£pbNÌo[W 'p2name' => 'expack', // rep2̼O ); Modified: p2ex/trunk/lib/DownloadDatMachiBbs.php =================================================================== --- p2ex/trunk/lib/DownloadDatMachiBbs.php 2010-01-30 11:01:56 UTC (rev 825) +++ p2ex/trunk/lib/DownloadDatMachiBbs.php 2010-01-30 13:00:07 UTC (rev 826) @@ -88,10 +88,25 @@ flock($fp, LOCK_EX); foreach ($lines as $i => $line) { - if (substr_count($line, '<>') >= 4) { // µ§ÉÍ "=== 5" - // sªÌ "XÔ<>" ÍÛ¶µÈ¢ - fwrite($fp, substr($line, strpos($line, '<>') + 2)); - $thread->gotnum++; + // æ¾ÏÝXðCNg + $thread->gotnum++; + // sðªðAvf`FbN (µ§ÉÍ === 6) + $lar = explode('<>', rtrim($line)); + if (count($lar) >= 5) { + // XÔÍÛ¶µÈ¢ÌÅæèo· + $resnum = (int)array_shift($lar); + // XÔÆæ¾ÏÝXªÙÈÁÄ¢½ç Ú[ñµ¢ + while ($thread->gotnum < $resnum) { + $abn = " Ú[ñ<> Ú[ñ<> Ú[ñ<> Ú[ñ<>"; + if ($thread->gotnum == 1) { + $abn .= $lar[4]; + } + $abn .= "\n"; + fwrite($fp, $abn); + $thread->gotnum++; + } + // sð«Þ + fwrite($fp, implode('<>', $lar) . "\n"); } else { $lineno = $i + 1; P2Util::pushInfoHtml("<p>rep2 info: dat®G[: line {$lineno} of {$url}.</p>");