本文整理汇总了PHP中P2Util::isHostKossoriEnq方法的典型用法代码示例。如果您正苦于以下问题:PHP P2Util::isHostKossoriEnq方法的具体用法?PHP P2Util::isHostKossoriEnq怎么用?PHP P2Util::isHostKossoriEnq使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类P2Util
的用法示例。
在下文中一共展示了P2Util::isHostKossoriEnq方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getBuildNewThreadATag
/**
* @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;
}
示例2: array
$dat_soko_ht = <<<EOP
<a href="{$_conf['subject_php']}?host={$aThreadList->host}{$bbs_q}{$norefresh_q}&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}&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}&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']) {
示例3: _getBuildnewthreadATag
/**
* 新規スレッド作成 <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;
}