Ejemplo n.º 1
0
/**
 * @return  string  <a>
 */
function _getBuildNewThreadATag($aThreadList)
{
    $buildnewthread_atag = '';
    if (!$aThreadList->spmode and !P2Util::isHostKossoriEnq($aThreadList->host)) {
        $uri = UriUtil::buildQueryUri('post_form_i.php', array('host' => $aThreadList->host, 'bbs' => $aThreadList->bbs, 'newthread' => '1', UA::getQueryKey() => UA::getQueryValue()));
        $buildnewthread_atag = P2View::tagA($uri, hs('スレ立て'));
    }
    return $buildnewthread_atag;
}
Ejemplo n.º 2
0
    $dat_soko_ht = <<<EOP
<a href="{$_conf['subject_php']}?host={$aThreadList->host}{$bbs_q}{$norefresh_q}&amp;spmode=soko{$_conf['k_at_a']}">dat倉庫</a>
EOP;
} else {
    $dat_soko_ht = '';
}
// あぼーん中のスレッド
if (!empty($ta_num)) {
    $taborn_link_ht = <<<EOP
\t<a href="{$_conf['subject_php']}?host={$aThreadList->host}{$bbs_q}{$norefresh_q}&amp;spmode=taborn{$_conf['k_at_a']}">アボン中({$ta_num})</a> 
EOP;
} else {
    $taborn_link_ht = '';
}
// 新規スレッド作成
if (!$aThreadList->spmode and !P2Util::isHostKossoriEnq($aThreadList->host)) {
    $buildnewthread_ht = <<<EOP
\t<a href="post_form_i.php?host={$aThreadList->host}{$bbs_q}&amp;newthread=1{$_conf['k_at_a']}">スレ立て</a>
EOP;
} else {
    $buildnewthread_ht = '';
}
// {{{ ソート変更 (新着 レス No. タイトル 板 すばやさ 勢い Birthday ☆)
$sorts = array('midoku' => '新着', 'res' => 'レス', 'no' => 'No.', 'title' => 'タイトル');
if ($aThreadList->spmode and $aThreadList->spmode != 'taborn' and $aThreadList->spmode != 'soko') {
    $sorts['ita'] = '板';
}
if ($_conf['sb_show_spd']) {
    $sorts['spd'] = 'すばやさ';
}
if ($_conf['sb_show_ikioi']) {
Ejemplo n.º 3
0
/**
 * 新規スレッド作成 <a>
 *
 * @return  string  HTML
 */
function _getBuildnewthreadATag($aThreadList)
{
    global $STYLE;
    $buildnewthreadATag = '';
    if (!$aThreadList->spmode and !P2Util::isHostKossoriEnq($aThreadList->host)) {
        $qs = array('host' => $aThreadList->host, 'bbs' => $aThreadList->bbs, 'newthread' => '1', UA::getQueryKey() => UA::getQueryValue());
        if (defined('SID') && strlen(SID)) {
            $qs[session_name()] = session_id();
        }
        $onClickUri = UriUtil::buildQueryUri('post_form.php', array_merge($qs, array('popup' => '1')));
        $buildnewthreadATag = P2View::tagA(UriUtil::buildQueryUri('post_form.php', $qs), '新規スレッド作成', array('onClick' => sprintf("return !openSubWin('%s',%s,1,0)", str_replace("'", "\\'", $onClickUri), $STYLE['post_pop_size']), 'target' => '_self'));
    }
    return $buildnewthreadATag;
}