--- rep2ex-080917-0800/rep2/lib/ShowThreadPC.php 2008-09-13 18:32:00.000000000 +0900 +++ rep2/lib/ShowThreadPC.php 2009-02-12 02:40:52.000000000 +0900 @@ -15,6 +15,9 @@ class ShowThreadPc extends ShowThread { + + var $BBS_NONAME_NAME = ''; // +live (live.bbs_noname) 用 + // {{{ properties static private $_spm_objects = array(); @@ -49,6 +52,20 @@ 'plugin_link2chKako', 'plugin_link2chSubject', ); + + // +live (live.bbs_noname) 用 + if ($_GET['live']) { + if (empty($_conf['live.bbs_noname'])) { + require_once P2_LIB_DIR . '/SettingTxt.php'; + $st = new SettingTxt($this->thread->host, $this->thread->bbs); + $st->setSettingArray(); + if (!empty($st->setting_array['BBS_NONAME_NAME'])) { + $this->BBS_NONAME_NAME = $st->setting_array['BBS_NONAME_NAME']; + } + } + + } + if (P2_IMAGECACHE_AVAILABLE == 2) { $this->_url_handlers[] = 'plugin_imageCache2'; } elseif ($_conf['preview_thumbnail']) { @@ -120,6 +137,11 @@ $id = $this->thread->ids[$i]; + // +live (live.bbs_noname) 用 + if (!empty($this->BBS_NONAME_NAME) and $this->BBS_NONAME_NAME == $name) { + $name = ''; + } + // {{{ フィルタリング if (isset($_REQUEST['word']) && strlen($_REQUEST['word']) > 0) { if (strlen($GLOBALS['word_fm']) <= 0) { @@ -174,7 +196,7 @@ } // 連鎖あぼーん - if ($_conf['ngaborn_chain'] && preg_match_all('/(?:>|>)([1-9][0-9\\-,]*)/', $msg, $matches)) { + if ($_conf['ngaborn_chain'] && preg_match_all("/{$this->anchor_prefix_abon}([1-9][0-9\\-,]*)/", $msg, $matches)) { $chain_nums = array_unique(array_map('intval', split('[-,]+', trim(implode(',', $matches[1]), '-,')))); if (array_intersect($chain_nums, $this->_aborn_nums)) { if ($_conf['ngaborn_chain'] == 1) { @@ -215,7 +237,7 @@ // あぼーんメール if ($this->ngAbornCheck('aborn_mail', $mail) !== false) { - $ngaborns_hits['aborn_mal']++; + $ngaborns_hits['aborn_mail']++; $this->_aborn_nums[] = $i; return $this->_abornedRes($res_id); } @@ -268,6 +290,9 @@ $ng_msg_info[] = sprintf('NGワード:%s', htmlspecialchars($a_ng_msg, ENT_QUOTES)); } + // +live ハイライトワードチェック + include (P2_LIB_DIR . '/live/live_highlight_ctl.inc.php'); + // AA 判定 if ($this->am_autodetect && $this->activeMona->detectAA($msg)) { $msg_class .= ' ActiveMona'; @@ -353,6 +378,9 @@ } + // +live ハイライトワード変換 + include (P2_LIB_DIR . '/live/live_highlight_word.inc.php'); + /* //「ここから新着」画像を挿入 if ($i == $this->thread->readnum +1) { @@ -370,50 +398,9 @@ $spmeh = ''; } - $tores .= "