本文整理汇总了PHP中visitedforums函数的典型用法代码示例。如果您正苦于以下问题:PHP visitedforums函数的具体用法?PHP visitedforums怎么用?PHP visitedforums使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了visitedforums函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
$groupnames[$row['tid']]['fid'] = $row['fid'];
$groupnames[$row['tid']]['views'] = $row['views'];
}
}
$stemplate = $sortexpiration = null;
if ($_G['forum']['threadsorts']['types'] && $sortoptionarray && $templatearray) {
$sortid = intval($_G['gp_sortid']);
$sortlistarray = showsorttemplate($_G['gp_sortid'], $_G['fid'], $sortoptionarray, $templatearray, $_G['forum_threadlist'], $threadids);
$stemplate = $sortlistarray['template'];
$sortexpiration = $sortlistarray['expiration'];
if (($_G['gp_searchoption'] || $_G['gp_searchsort']) && empty($searchsorttids)) {
$_G['forum_threadlist'] = $multipage = '';
}
}
$separatepos = $separatepos ? $separatepos + 1 : 0;
$_G['setting']['visitedforums'] = $_G['setting']['visitedforums'] ? visitedforums() : '';
$oldthreads = array();
$oldtopics = isset($_G['cookie']['oldtopics']) ? $_G['cookie']['oldtopics'] : 'D';
if ($_G['setting']['visitedthreads'] && $oldtopics) {
$oldtids = array_slice(explode('D', $oldtopics), 0, $_G['setting']['visitedthreads']);
$oldtidsnew = array();
foreach ($oldtids as $oldtid) {
$oldtid && ($oldtidsnew[] = $oldtid);
}
if ($oldtidsnew) {
$query = DB::query("SELECT tid, subject FROM " . DB::table('forum_thread') . " WHERE tid IN (" . dimplode($oldtidsnew) . ")");
while ($oldthread = DB::fetch($query)) {
$oldthreads[$oldthread['tid']] = $oldthread['subject'];
}
}
}
示例2: gmdate
}
$thread['dateline'] = gmdate($dateformat, $thread['dateline'] + $timeoffset * 3600);
$thread['lastpost'] = gmdate("{$dateformat} {$timeformat}", $thread['lastpost'] + $timeoffset * 3600);
if (in_array($thread['displayorder'], array(1, 2, 3))) {
$thread['id'] = 'stickthread_' . $thread['tid'];
$separatepos++;
} elseif (in_array($thread['displayorder'], array(4, 5))) {
$thread['id'] = 'floatthread_' . $thread['tid'];
} else {
$thread['id'] = 'normalthread_' . $thread['tid'];
}
$iscircle && $thread['sgid'] && ($sgids[] = $thread['sgid']);
$threadlist[] = $thread;
}
$separatepos = $separatepos ? $separatepos + 1 : ($announcement ? 1 : 0);
$visitedforums = $visitedforums ? visitedforums() : '';
$forumselect = $forummenu = '';
$typeselect = typeselect($typeid, '', 'onchange="if(this.options[this.selectedIndex].className) {this.form.action=this.form.action + \'&previewpost=yes&showpreview=no\';this.form.submit();}"');
$usesigcheck = $discuz_uid && $sigstatus ? 'checked="checked"' : '';
$allowpost = !$forum['postperm'] && $allowpost || $forum['postperm'] && forumperm($forum['postperm']) || !empty($forum['allowpost']);
$showpoll = $showtrade = $showreward = $showactivity = $showdebate = $showvideo = 0;
if ($forum['allowpostspecial']) {
$showpoll = $forum['allowpostspecial'] & 1;
$showtrade = $forum['allowpostspecial'] & 2;
$showreward = isset($extcredits[$creditstrans]) && $forum['allowpostspecial'] & 4;
$showactivity = $forum['allowpostspecial'] & 8;
$showdebate = $forum['allowpostspecial'] & 16;
$showvideo = $forum['allowpostspecial'] & 32 && $videoopen;
}
if ($allowpost) {
$allowpostpoll = $allowpostpoll && $showpoll;
示例3: forumperm
$allowfastpost = false;
}
$_G['group']['allowpost'] = $_G['forum']['allowpost'] != -1 && (!$_G['forum']['postperm'] && $_G['group']['allowpost'] || $_G['forum']['postperm'] && forumperm($_G['forum']['postperm']) || $_G['forum']['allowpost']);
$_G['forum']['allowpostattach'] = isset($_G['forum']['allowpostattach']) ? $_G['forum']['allowpostattach'] : '';
$allowpostattach = $allowpostreply && ($_G['forum']['allowpostattach'] != -1 && ($_G['forum']['allowpostattach'] == 1 || !$_G['forum']['postattachperm'] && $_G['group']['allowpostattach'] || $_G['forum']['postattachperm'] && forumperm($_G['forum']['postattachperm'])));
if ($_G['group']['allowpost']) {
$_G['group']['allowpostpoll'] = $_G['group']['allowpostpoll'] && $_G['forum']['allowpostspecial'] & 1;
$_G['group']['allowposttrade'] = $_G['group']['allowposttrade'] && $_G['forum']['allowpostspecial'] & 2;
$_G['group']['allowpostreward'] = $_G['group']['allowpostreward'] && $_G['forum']['allowpostspecial'] & 4 && isset($_G['setting']['extcredits'][$_G['setting']['creditstrans']]);
$_G['group']['allowpostactivity'] = $_G['group']['allowpostactivity'] && $_G['forum']['allowpostspecial'] & 8;
$_G['group']['allowpostdebate'] = $_G['group']['allowpostdebate'] && $_G['forum']['allowpostspecial'] & 16;
} else {
$_G['group']['allowpostpoll'] = $_G['group']['allowposttrade'] = $_G['group']['allowpostreward'] = $_G['group']['allowpostactivity'] = $_G['group']['allowpostdebate'] = FALSE;
}
$_G['forum']['threadplugin'] = $_G['group']['allowpost'] && $_G['setting']['threadplugins'] ? is_array($_G['forum']['threadplugin']) ? $_G['forum']['threadplugin'] : dunserialize($_G['forum']['threadplugin']) : array();
$_G['setting']['visitedforums'] = $_G['setting']['visitedforums'] && $_G['forum']['status'] != 3 ? visitedforums() : '';
$relatedthreadlist = array();
$relatedthreadupdate = $tagupdate = FALSE;
$relatedkeywords = $tradekeywords = $_G['forum_firstpid'] = '';
if (!isset($_G['cookie']['collapse']) || strpos($_G['cookie']['collapse'], 'modarea_c') === FALSE) {
$collapseimg['modarea_c'] = 'collapsed_no';
$collapse['modarea_c'] = '';
} else {
$collapseimg['modarea_c'] = 'collapsed_yes';
$collapse['modarea_c'] = 'display: none';
}
$threadtag = array();
viewthread_updateviews($archiveid);
$_G['setting']['infosidestatus']['posts'] = $_G['setting']['infosidestatus'][1] && isset($_G['setting']['infosidestatus']['f' . $_G['fid']]['posts']) ? $_G['setting']['infosidestatus']['f' . $_G['fid']]['posts'] : $_G['setting']['infosidestatus']['posts'];
$postfieldsadd = $specialadd1 = $specialadd2 = $specialextra = '';
$tpids = array();