예제 #1
0
파일: info_i.php 프로젝트: 68/rep2iphone
        $title_msg = "- 履歴にはありませんでした";
        $info_msg = "- 履歴にはありませんでした";
    }
    // }}}
    // お気に入りスレッド
} elseif (isset($_GET['setfav'])) {
    require_once P2_LIB_DIR . '/setfav.inc.php';
    setFav($host, $bbs, $key, $_GET['setfav']);
    // 殿堂入り
} elseif (isset($_GET['setpal'])) {
    require_once P2_LIB_DIR . '/setpalace.inc.php';
    setPal($host, $bbs, $key, $_GET['setpal']);
    // スレッドあぼーん
} elseif (isset($_GET['taborn'])) {
    require_once P2_LIB_DIR . '/settaborn.inc.php';
    settaborn($host, $bbs, $key, $_GET['taborn']);
}
//=================================================================
// メイン
//=================================================================
$aThread =& new Thread();
// hostを分解してidxファイルのパスを求める
$aThread->setThreadPathInfo($host, $bbs, $key);
$key_line = $aThread->getThreadInfoFromIdx();
$aThread->getDatBytesFromLocalDat();
// $aThread->length をset
if (!($aThread->itaj = P2Util::getItaName($aThread->host, $aThread->bbs))) {
    $aThread->itaj = $aThread->bbs;
}
$hc['itaj'] = $aThread->itaj;
if (!$aThread->ttitle) {
예제 #2
0
    // お気に入りスレッド
} elseif (isset($_GET['setfav']) && !empty($_GET['key']) && $host && $bbs) {
    require_once P2_LIB_DIR . '/setfav.inc.php';
    setFav($host, $bbs, $_GET['key'], $_GET['setfav'], isset($_GET['ttitle_en']) ? UrlSafeBase64::decode($_GET['ttitle_en']) : null);
    // 殿堂入り
} elseif (isset($_GET['setpal']) && $_GET['key'] && $host && $bbs) {
    require_once P2_LIB_DIR . '/setpalace.inc.php';
    setPal($host, $bbs, $_GET['key'], $_GET['setpal']);
    // あぼーんスレッド解除
} elseif (isset($_POST['submit']) && $_POST['submit'] == $abornoff_st && $host && $bbs && $_POST['checkedkeys']) {
    require_once P2_LIB_DIR . '/settaborn_off.inc.php';
    settaborn_off($host, $bbs, $_POST['checkedkeys']);
    // スレッドあぼーん
} elseif (isset($_GET['taborn']) && !is_null($_GET['key']) && $host && $bbs) {
    require_once P2_LIB_DIR . '/settaborn.inc.php';
    settaborn($host, $bbs, $_GET['key'], $_GET['taborn']);
}
// お気に板をマージ
if ($spmode == 'merge_favita') {
    $favitas = array();
    $pre_subject_keys = array();
    $subject_keys = array();
    $sb_key_txts = array();
    if (file_exists($_conf['favita_brd'])) {
        foreach (file($_conf['favita_brd']) as $l) {
            if (preg_match("/^\t?(.+?)\t(.+?)\t.+?\$/", rtrim($l), $matches)) {
                $_host = $matches[1];
                $_bbs = $matches[2];
                $_id = $_host . '/' . $_bbs;
                $_idx_host_bbs_dir_s = P2Util::idxDirOfHostBbs($_host, $_bbs);
                $_sb_keys_txt = $_idx_host_bbs_dir_s . 'p2_sb_keys.txt';
예제 #3
0
         } else {
             $r_msg = '0';
             // 失敗
         }
     }
     break;
     // }}}
     // {{{ スレッドあぼーん
 // }}}
 // {{{ スレッドあぼーん
 case 'taborn':
     if (isset($host) && isset($bbs) && isset($key) && isset($_REQUEST['taborn'])) {
         if (!function_exists('settaborn')) {
             include P2_LIB_DIR . '/settaborn.inc.php';
         }
         $r = settaborn($host, $bbs, $key, $_REQUEST['taborn']);
         if ($r) {
             $r_msg = '1';
             // 完了
         } else {
             $r_msg = '0';
             // 失敗
         }
     }
     break;
     // }}}
     // {{{ 既読数セット
 // }}}
 // {{{ 既読数セット
 case 'setreadnum':
     if (isset($host) && isset($bbs) && isset($key) && isset($_REQUEST['setreadnum'])) {