本文整理汇总了PHP中loadarchiver函数的典型用法代码示例。如果您正苦于以下问题:PHP loadarchiver函数的具体用法?PHP loadarchiver怎么用?PHP loadarchiver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了loadarchiver函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: arch_multi
)
<?php
}
?>
<?php
}
?>
</ul>
<div class="page">
<?php
echo arch_multi($_G['forum_threadcount'], $_G['tpp'], $page, "?fid-{$_G['fid']}.html");
?>
</div>
</div>
<div id="end">
<?php
echo lang('forum/archiver', 'full_version');
?>
:
<a href="../<?php
echo in_array('forum_forumdisplay', $_G['setting']['rewritestatus']) ? rewriteoutput('forum_forumdisplay', 1, '', $_G['fid'], $page) : 'forum.php?mod=forumdisplay&fid=' . $_G['fid'] . '&page=' . $page;
?>
" target="_blank"><strong><?php
echo $_G['forum']['name'];
?>
</strong></a>
</div>
<?php
include loadarchiver('common/footer');
示例2: libfile
if ($_G['forum_attachpids'] && !defined('IN_ARCHIVER')) {
require_once libfile('function/attachment');
if (is_array($threadsortshow) && !empty($threadsortshow['sortaids'])) {
$skipaids = $threadsortshow['sortaids'];
}
parseattach($_G['forum_attachpids'], $_G['forum_attachtags'], $postlist, $skipaids);
}
if (empty($postlist)) {
showmessage('post_not_found');
} elseif (!defined('IN_MOBILE_API')) {
foreach ($postlist as $pid => $post) {
$postlist[$pid]['message'] = preg_replace("/\\[attach\\]\\d+\\[\\/attach\\]/i", '', $postlist[$pid]['message']);
}
}
if (defined('IN_ARCHIVER')) {
include loadarchiver('forum/viewthread');
exit;
}
$_G['forum_thread']['heatlevel'] = $_G['forum_thread']['recommendlevel'] = 0;
if ($_G['setting']['heatthread']['iconlevels']) {
foreach ($_G['setting']['heatthread']['iconlevels'] as $k => $i) {
if ($_G['forum_thread']['heats'] > $i) {
$_G['forum_thread']['heatlevel'] = $k + 1;
break;
}
}
}
if (!empty($_G['setting']['recommendthread']['status']) && $_G['forum_thread']['recommends']) {
foreach ($_G['setting']['recommendthread']['iconlevels'] as $k => $i) {
if ($_G['forum_thread']['recommends'] > $i) {
$_G['forum_thread']['recommendlevel'] = $k + 1;
示例3: unserialize
$showactivity = $_G['forum']['allowpostspecial'] & 8;
$showdebate = $_G['forum']['allowpostspecial'] & 16;
}
if ($_G['group']['allowpost']) {
$_G['group']['allowpostpoll'] = $_G['group']['allowpostpoll'] && $showpoll;
$_G['group']['allowposttrade'] = $_G['group']['allowposttrade'] && $showtrade;
$_G['group']['allowpostreward'] = $_G['group']['allowpostreward'] && $showreward;
$_G['group']['allowpostactivity'] = $_G['group']['allowpostactivity'] && $showactivity;
$_G['group']['allowpostdebate'] = $_G['group']['allowpostdebate'] && $showdebate;
}
$_G['forum']['threadplugin'] = $_G['group']['allowpost'] && $_G['setting']['threadplugins'] ? unserialize($_G['forum']['threadplugin']) : array();
$allowleftside = !$subforumonly && $_G['setting']['leftsidewidth'] && !$_G['forum']['allowside'];
if (isset($_G['gp_leftsidestatus'])) {
dsetcookie('disableleftside', $_G['gp_leftsidestatus'], 2592000);
$_G['cookie']['disableleftside'] = $_G['gp_leftsidestatus'];
}
$leftside = empty($_G['cookie']['disableleftside']) && $allowleftside ? forumleftside() : array();
$leftsideswitch = $allowleftside ? "forum.php?mod=forumdisplay&fid={$_G['fid']}&page={$page}" . ($multiadd ? '&' . implode('&', $multiadd) : '') : '';
$template = 'diy:forum/forumdisplay:' . $_G['fid'];
if (!empty($_G['forum']['threadsorts']['templatelist']) && $_G['forum']['status'] != 3) {
$template = 'diy:forum/forumdisplay_' . $_G['forum']['threadsorts']['templatelist'] . ':' . $_G['fid'];
} elseif ($_G['forum']['status'] == 3) {
$groupviewed_list = get_viewedgroup();
write_groupviewed($_G['fid']);
$template = 'diy:group/group:' . $_G['fid'];
}
if (!defined('IN_ARCHIVER')) {
include template($template);
} else {
include loadarchiver('forum/forumdisplay');
}
示例4: intval
$invisiblecount = intval($invisiblecount);
$guestcount = $onlinenum - $membercount;
unset($online);
}
} else {
$_G['setting']['whosonlinestatus'] = 0;
}
if (defined('FORUM_INDEX_PAGE_MEMORY') && !FORUM_INDEX_PAGE_MEMORY) {
$key = !IS_ROBOT ? $_G['member']['groupid'] : 'for_robot';
memory('set', 'forum_index_page_' . $key, array('catlist' => $catlist, 'forumlist' => $forumlist, 'sublist' => $sublist, 'whosonline' => $whosonline, 'onlinenum' => $onlinenum, 'membercount' => $membercount, 'guestcount' => $guestcount, 'grids' => $grids, 'announcements' => $announcements, 'threads' => $threads, 'posts' => $posts, 'todayposts' => $todayposts, 'onlineinfo' => $onlineinfo, 'announcepm' => $announcepm), getglobal('setting/memory/forumindex'));
}
} else {
require_once DISCUZ_ROOT . './source/include/misc/misc_category.php';
}
if (defined('IN_ARCHIVER')) {
include loadarchiver('forum/discuz');
exit;
}
categorycollapse();
if ($gid && !empty($catlist)) {
$_G['category'] = $catlist[$gid];
$forumseoset = array('seotitle' => $catlist[$gid]['seotitle'], 'seokeywords' => $catlist[$gid]['keywords'], 'seodescription' => $catlist[$gid]['seodescription']);
$seodata = array('fgroup' => $catlist[$gid]['name']);
list($navtitle, $metadescription, $metakeywords) = get_seosetting('threadlist', $seodata, $forumseoset);
if (empty($navtitle)) {
$navtitle = $navtitle_g;
$nobbname = false;
} else {
$nobbname = true;
}
$_G['fid'] = $gid;