本文整理汇总了PHP中get_headboards函数的典型用法代码示例。如果您正苦于以下问题:PHP get_headboards函数的具体用法?PHP get_headboards怎么用?PHP get_headboards使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_headboards函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: error
FROM ' . $db->pre . 'topics
WHERE id = "' . $_GET['id'] . '"
LIMIT 1
', __LINE__, __FILE__);
if ($db->num_rows($result) != 1) {
error($lang->phrase('query_string_error'));
}
$info = $db->fetch_assoc($result);
$info['last_name'] = $gpc->prepare($info['last_name']);
$my->p = $slog->Permissions($info['board']);
$my->mp = $slog->ModPermissions($info['board']);
// preparing data for breadcrumb
$catbid = $scache->load('cat_bid');
$fc = $catbid->get();
$last = $fc[$info['board']];
$topforums = get_headboards($fc, $last, true);
$prefix = '';
if ($info['prefix'] > 0) {
$prefix_obj = $scache->load('prefix');
$prefix_arr = $prefix_obj->get($info['board']);
if (isset($prefix[$info['prefix']])) {
$prefix = $prefix_arr[$info['prefix']]['value'];
$prefix = $lang->phrase('showtopic_prefix_title');
}
}
$breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x);
$breadcrumb->Add($prefix . $info['topic'], "showtopic.php?id=" . $info['id'] . SID2URL_x);
$breadcrumb->Add($lang->phrase('teamcp'));
echo $tpl->parse("header");
forum_opt($last);
if ($my->vlogin && $my->mp[0] == 1) {
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:managetopic.php
示例2: eval
($code = $plugins->load('misc_rules_prepared')) ? eval($code) : null;
echo $tpl->parse("misc/rules");
($code = $plugins->load('misc_rules_end')) ? eval($code) : null;
} elseif ($_GET['action'] == "board_rules") {
$my->p = $slog->Permissions($_GET['id']);
$catbid = $scache->load('cat_bid');
$fc = $catbid->get();
if (!isset($fc[$_GET['id']])) {
error($lang->phrase('query_string_error'));
}
$info = $fc[$_GET['id']];
if ($info['message_active'] == '0') {
error($lang->phrase('no_board_rules_specified'));
}
($code = $plugins->load('misc_board_rules_start')) ? eval($code) : null;
$topforums = get_headboards($fc, $info);
$breadcrumb->Add($info['name'], "showforum.php?id=" . $info['id'] . SID2URL_x);
$breadcrumb->Add($lang->phrase('board_rules'));
forum_opt($info);
echo $tpl->parse("header");
echo $tpl->parse("menu");
($code = $plugins->load('misc_board_rules_prepared')) ? eval($code) : null;
echo $tpl->parse("misc/board_rules");
($code = $plugins->load('misc_board_rules_end')) ? eval($code) : null;
} elseif ($_GET['action'] == "error") {
$my->p = $slog->Permissions();
$errid = $gpc->get('id', int);
if ($errid != 400 && $errid != 404 && $errid != 401 && $errid != 403 && $errid != 500) {
$errid = 0;
}
($code = $plugins->load('misc_error_prepared')) ? eval($code) : null;
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:misc.php
示例3: viscacha_header
}
$db->close();
viscacha_header('Location: showtopic.php?id=' . $info['id'] . '&page=' . $pgs . $qUrl . SID2URL_JS_x . '#p' . $mylast[1]);
exit;
}
($code = $plugins->load('showtopic_redirect')) ? eval($code) : null;
$prefix = '';
if ($info['prefix'] > 0) {
$prefix_obj = $scache->load('prefix');
$prefix_arr = $prefix_obj->get($info['board']);
if (isset($prefix_arr[$info['prefix']])) {
$prefix = $prefix_arr[$info['prefix']]['value'];
$prefix = $lang->phrase('showtopic_prefix_title');
}
}
$topforums = get_headboards($fc, $last, TRUE);
$breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x);
$breadcrumb->Add($prefix . $info['topic']);
forum_opt($last);
echo $tpl->parse("header");
echo $tpl->parse("menu");
($code = $plugins->load('showtopic_start')) ? eval($code) : null;
// Some speed optimisation
$speeder = $info['posts'] + 1;
$start = $_GET['page'] * $last['topiczahl'];
$start = $start - $last['topiczahl'];
$temp = pages($speeder, $last['topiczahl'], "showtopic.php?id=" . $info['id'] . "&", $_GET['page']);
$q = explode(' ', trim($q));
$memberdata_obj = $scache->load('memberdata');
$memberdata = $memberdata_obj->get();
$inner['index_bit'] = '';
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:showtopic.php
示例4: forum_opt
$my->p = $slog->Permissions($info['board']);
$my->mp = $slog->ModPermissions($info['board']);
$cat_bid_obj = $scache->load('cat_bid');
$fc = $cat_bid_obj->get();
$last = $fc[$info['board']];
forum_opt($last, 'edit');
$prefix_obj = $scache->load('prefix');
$prefix_arr = $prefix_obj->get($info['board']);
$prefix = '';
if ($info['prefix'] > 0) {
if (isset($prefix_arr[$info['prefix']])) {
$prefix = $prefix_arr[$info['prefix']]['value'];
$prefix = $lang->phrase('showtopic_prefix_title');
}
}
get_headboards($fc, $last);
$breadcrumb->Add($last['name'], "showforum.php?id=" . $last['id'] . SID2URL_x);
$breadcrumb->Add($prefix . $info['topic'], 'showtopic.php?id=' . $info['topic_id'] . SID2URL_x);
$breadcrumb->Add($lang->phrase('edit'));
echo $tpl->parse("header");
if ($info['status'] != 0) {
error($lang->phrase('topic_closed'), 'showtopic.php?action=jumpto&id=' . $info['topic_id'] . '&topic_id=' . $info['id']);
}
$diff = times() - $info['date'];
if ($config['edit_edit_time'] == 0) {
$edit_seconds = $diff;
} else {
$edit_seconds = $config['edit_edit_time'] * 60;
}
$delete_seconds = $config['edit_delete_time'] * 60;
if ($my->mp[4] == 1 && ($info['topic_id'] > 0 || $info['posts'] == 0)) {
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:edit.php
注:本文中的get_headboards函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论