예제 #1
0
파일: read_new_i.php 프로젝트: poppen/p2
<?php 
P2Util::printInfoHtml();
//==============================================================
// それぞれの行解析
//==============================================================
$online_num = 0;
$linesize = sizeof($lines);
for ($x = 0; $x < $linesize; $x++) {
    if (isset($GLOBALS['rnum_all_range']) and $GLOBALS['rnum_all_range'] <= 0) {
        break;
    }
    $l = $lines[$x];
    $aThread = new ThreadRead();
    $aThread->torder = $x + 1;
    // ラインデータ読み込み
    $aThread->setThreadInfoFromLineWithThreadList($l, $aThreadList, $setItaj = false);
    // hostもbbsも不明ならスキップ
    if (!($aThread->host && $aThread->bbs)) {
        unset($aThread);
        continue;
    }
    $aThread->setThreadPathInfo($aThread->host, $aThread->bbs, $aThread->key);
    $aThread->getThreadInfoFromIdx();
    // 既得スレッドデータをidxから取得
    // 新着のみ(for subject)
    if (!$aThreadList->spmode and $sb_view == "shinchaku" and !isset($GLOBALS['word'])) {
        if ($aThread->unum < 1) {
            unset($aThread);
            continue;
        }
    }