示例#1
0
文件: read_new_i.php 项目: poppen/p2
    exit;
}
//==================================================================
// 変数
//==================================================================
$GLOBALS['rnum_all_range'] = $_conf['k_rnum_range'];
$GLOBALS['word'] = null;
$sb_view = "shinchaku";
$newtime = date("gis");
$host = geti($_GET['host'], geti($_POST['host']));
$bbs = geti($_GET['bbs'], geti($_POST['bbs']));
$spmode = geti($_GET['spmode'], geti($_POST['spmode']));
if ((!$host || !isset($bbs)) && !isset($spmode)) {
    p2die('必要な引数が指定されていません');
}
if ($host && P2Validate::host($host) || $bbs && P2Validate::bbs($bbs) || $spmode && P2Validate::spmode($spmode)) {
    p2die('不正な引数です');
}
$hr = P2View::getHrHtmlK();
//====================================================================
// メイン
//====================================================================
register_shutdown_function('saveMatomeCache');
$GLOBALS['_read_new_html'] = '';
ob_start();
$aThreadList = new ThreadList();
// 板とモードのセット
if ($spmode) {
    if ($spmode == "taborn" or $spmode == "soko") {
        $aThreadList->setIta($host, $bbs, P2Util::getItaName($host, $bbs));
    }