本文整理汇总了PHP中permissions::isHierarch方法的典型用法代码示例。如果您正苦于以下问题:PHP permissions::isHierarch方法的具体用法?PHP permissions::isHierarch怎么用?PHP permissions::isHierarch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类permissions
的用法示例。
在下文中一共展示了permissions::isHierarch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: StripSlashes
$smarty->assign('node_name', $_GET['node_name']);
$content = $smarty->display("modules/addnode.tpl");
}
}
//modifying node glass pearl
if (is_array($children_types[$node['node_type']])) {
$smarty->assign('children_types', $children_types[$node['node_type']]);
}
$smarty->assign('types', $types);
$node['node_type'] = $types[$node['node_type']];
$node['node_content'] = StripSlashes($node['node_content']);
$node['node_name'] = StripSlashes($node['node_name']);
//checking permissions
require SYSTEM_ROOT . 'inc/permissions.inc';
$permissions = permissions::checkPermissions($node);
$permissions['h'] = permissions::isHierarch($node);
//entering the node
//sventest
if ($permissions['r'] || $event != 'register') {
//performing node_events (based on update/insert/delete db queries)
if ($event) {
require SYSTEM_ROOT . 'inc/eventz.inc';
} elseif ($transaction) {
require SYSTEM_ROOT . 'inc/transaction.inc';
}
//end of performing node events
//sventest
}
if ($permissions['r']) {
log::log('enter', $node['node_id'], 'ok', $node['node_user_subchild_count']);
if (!empty($_SESSION['user_id']) && is_numeric($node['node_id'])) {