예제 #1
0
파일: ShowThread.php 프로젝트: poppen/p2
 /**
  * @constructor
  */
 function ShowThread(&$Thread)
 {
     global $_conf;
     $this->str_to_link_regex = $this->buildStrToLinkRegex();
     $this->thread =& $Thread;
     if ($_conf['flex_idpopup']) {
         $this->setIdCountToThread();
         // $this->setBackwordResesToThread();
     }
     if (empty($GLOBALS['_P2_NGABORN_LOADED'])) {
         NgAbornCtl::loadNgAborns();
     }
 }
예제 #2
0
}
if (!(isset($host) && isset($bbs)) && !isset($spmode)) {
    p2die('必要な引数が指定されていません');
}
// 未読数制限
if (isset($_GET['unum_limit'])) {
    $unum_limit = (int) $_GET['unum_limit'];
} elseif (isset($_POST['unum_limit'])) {
    $unum_limit = (int) $_POST['unum_limit'];
} else {
    $unum_limit = 0;
}
//=================================================
// あぼーん&NGワード設定読み込み
//=================================================
$GLOBALS['ngaborns'] = NgAbornCtl::loadNgAborns();
//====================================================================
// メイン
//====================================================================
$aThreadList = new ThreadList();
// 板とモードのセット ===================================
$ta_keys = array();
if ($spmode) {
    if ($spmode == "taborn" or $spmode == "soko") {
        $aThreadList->setIta($host, $bbs, P2Util::getItaName($host, $bbs));
    }
    $aThreadList->setSpMode($spmode);
} else {
    $aThreadList->setIta($host, $bbs, P2Util::getItaName($host, $bbs));
    // スレッドあぼーんリスト読込
    $taborn_file = $aThreadList->getIdxDir() . 'p2_threads_aborn.idx';