//============================================================== // 後処理 //============================================================== // p2_setting(sb設定) 記録 saveSbSetting($p2_setting_txt, $p2_setting, $pre_setting); // $subject_keys をシリアライズして保存する if (!$spmode) { saveSubjectKeys($subject_keys, $sb_keys_txt, $sb_keys_b_txt); } elseif ($spmode == 'merge_favita') { foreach ($sb_key_txts as $id => $txts) { saveSubjectKeys($subject_keys[$id], $txts[0], $txts[1]); } } // スレッドタイトルあぼーん記録 if ($aborn_threads !== null) { NgAbornCtl::saveAbornThreads($aborn_threads); } //$GLOBALS['debug'] && $GLOBALS['profiler']->leaveSection('FOOT'); // ここまで exit; // {{{ 関数 // {{{ autoTAbornOff() /** * 既にdat落ちしているスレは自動的にあぼーんを解除する * $ta_keys はあぼーんリストに入っていたけれど、あぼーんされずに残ったスレたち */ function autoTAbornOff($aThreadList, $ta_keys) { //$GLOBALS['debug'] && $GLOBALS['profiler']->enterSection('abornoff'); if (!$aThreadList->spmode && !empty($GLOBALS['word']) && !empty($GLOBALS['wakati_word']) && $aThreadList->threads && $ta_keys) { require_once P2_LIB_DIR . '/settaborn_off.inc.php';
/** * $GLOBALS['ngaborn_hits'] (HITの更新チェックに用意した) と、 * $GLOBALS['_ngaborns_head_hits'](read_new のHTML id用に用意した)をカウント更新する * * @static * @public * @return integer */ function countNgAbornsHits($ngcode) { if (!isset($GLOBALS['ngaborns_hits'])) { NgAbornCtl::initNgAbornsHits(); } if ($ngcode != 'ng_msg') { $GLOBALS['_ngaborns_head_hits']++; } return ++$GLOBALS['ngaborns_hits'][$ngcode]; }
// ImageCache2 if ($_conf['expack.ic2.enabled']) { if (!function_exists('ic2_loadconfig')) { include P2EX_LIB_DIR . '/ic2/bootstrap.php'; } $ic2conf = ic2_loadconfig(); if ($ic2conf['Thumb1']['width'] > 80) { include P2EX_LIB_DIR . '/ic2/templates/info-v.tpl.html'; } else { include P2EX_LIB_DIR . '/ic2/templates/info-h.tpl.html'; } } // SPM if ($_conf['expack.spm.enabled']) { echo ShowThreadK::getSpmElementHtml(); } } echo '</body></html>'; $matomeCache->concat(ob_get_flush()); // NGあぼーんを記録 NgAbornCtl::saveNgAborns(); /* * Local Variables: * mode: php * coding: cp932 * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil * End: */ // vim: set syn=php fenc=cp932 ai et ts=4 sw=4 sts=4 fdm=marker:
/** * 特定レスの透明あぼーんチェック * * @access protected * @return boolean */ function abornResCheck($resnum) { $t = $this->thread; return NgAbornCtl::abornResCheck($t->host, $t->bbs, $t->key, $resnum); }