示例#1
0
/**
 * Returns permissions of current object being viewed
 * 
 * @author Fawaz Tahir <*****@*****.**>
 * @return mix
 */
function get_current_object_permissions()
{
    return get_current_object_prop('permissions');
}
示例#2
0
<?php

/* 
 ****************************************************************
 | Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
 | @ Author : ArslanHassan										
 | @ Software : ClipBucket , © PHPBucket.com					
 ****************************************************************
*/
define('THIS_PAGE', 'user_content');
define('PARENT_PAGE', '');
require 'includes/config.inc.php';
$pages->page_redir();
$access = get_current_object_prop('access');
if ($access) {
    $userquery->perm_check($access, true);
}
$u = $_GET['user'];
$u = $u ? $u : $_GET['userid'];
$u = $u ? $u : $_GET['username'];
$u = $u ? $u : $_GET['uid'];
$u = $u ? $u : $_GET['u'];
$udetails = $userquery->get_user_details($u, false, true);
if ($udetails) {
    $usercontent->__set_current_user($udetails);
    assign("u", $udetails);
    subtitle(name($udetails));
} else {
    e(lang("usr_exist_err"));
    $Cbucket->show_page = false;
}