本文整理匯總了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'])) {