本文整理汇总了PHP中display_it函数的典型用法代码示例。如果您正苦于以下问题:PHP display_it函数的具体用法?PHP display_it怎么用?PHP display_it使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_it函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: assign
assign('sort', $vsort);
} else {
$sort = false;
}
if ($vsort == 'most_recent') {
$sort = false;
}
}
$counter = get_counter('channel', $count_query);
if (!$counter) {
//Collecting Data for Pagination
$ucount = $u_cond;
$ucount['count_only'] = true;
$total_rows = get_users($ucount);
$counter = $total_rows;
update_counter('channel', $count_query, $counter);
}
$total_pages = count_pages($counter, CLISTPP);
//Pagination
$pages->paginate($total_pages, $page);
$subtitle = lang('Channels');
if ($category) {
$subtitle .= " › " . $category;
}
if ($sort) {
$subtitle .= " • " . $sort;
}
subtitle($subtitle);
template_files('channels.html');
display_it();
示例2: isSectionEnabled
/**
* Function isSectionEnabled
* This function used to check weather INPUT section is enabled or not
*/
function isSectionEnabled($input, $restrict = false)
{
global $Cbucket;
$section = $Cbucket->configs[$input . 'Section'];
if (!$restrict) {
if ($section == 'yes') {
return true;
} else {
return false;
}
} else {
if ($section == 'yes' || THIS_PAGE == 'cb_install') {
return true;
} else {
template_files('blocked.html');
display_it();
exit;
}
}
}