XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
userinfo.php File Reference

Go to the source code of this file.

Namespaces

namespace  profile
 

Variables

 $avatar = ""
 
 $cat_crit = new CriteriaCompo()
 
 $cat_handler =& xoops_getmodulehandler('category')
 
 $cats = $cat_handler->getObjects($cat_crit, true, false)
 
if($thisUser->getVar('user_avatar')&&"blank.gif"!=$thisUser->
getVar('user_avatar')) 
$email = ""
 
 $field_ids_visible = $visibility_handler->getVisibleFields($thisUsergroups,$groups)
 
 $fields = $profile_handler->loadFields()
 
if($uid<=0) $gperm_handler = & xoops_gethandler( 'groupperm' )
 
 $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)
 
 $groups_accessible = $gperm_handler->getItemIds('profile_access', $groups_xoopsUser, $GLOBALS['xoopsModule']->getVar('mid'))
 
if(!is_object($thisUser)||(!$thisUser->
isActive()&&(!$GLOBALS['xoopsUser']||!$GLOBALS['xoopsUser']->
isAdmin()))) 
$groups_basic = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS)
 
 $groups_thisUser = $thisUser->getGroups()
 
 $groups_thisUser_nonbasic = array_diff($groups_thisUser, $groups_basic)
 
 $groups_xoopsUser = $groups
 
 $profile = $profile_handler->get($thisUser->getVar('uid'))
 
 $profile_handler =& xoops_getmodulehandler('profile')
 
 $rejected = false
 
 $thisUser =& $member_handler->getUser($uid)
 
 $thisUsergroups = $thisUser->getGroups()
 
 $uid = intval($_GET['uid'])
 
 $visibility_handler = xoops_getmodulehandler('visibility')
 
 $xoBreadcrumbs [] = array('title' => _PROFILE_MA_USERINFO)
 
if($rejected) if(is_object($GLOBALS['xoopsUser'])&&$GLOBALS['xoopsUser']->
isAdmin()) 
$xoopsOption ['template_main'] = 'profile_userinfo.html'
 
if(is_object($GLOBALS['xoopsUser'])&&$GLOBALS['xoopsUser']->
isAdmin()) 
$xoopsOption ['xoops_pagetitle'] = sprintf(_US_ALLABOUT, $thisUser->getVar('uname'))
 
if(is_object($GLOBALS['xoopsUser'])&&$uid==$GLOBALS['xoopsUser']->
getVar('uid')) 
else
 

Variable Documentation

$cat_crit = new CriteriaCompo()

Definition at line 132 of file userinfo.php.

$cat_handler =& xoops_getmodulehandler('category')

Definition at line 131 of file userinfo.php.

Referenced by profile_getRegisterForm(), and profile_getUserForm().

$cats = $cat_handler->getObjects($cat_crit, true, false)

Definition at line 134 of file userinfo.php.

if ($thisUser->getVar('user_avatar')&&"blank.gif"!=$thisUser->getVar('user_avatar')) $email = ""

Definition at line 142 of file userinfo.php.

$field_ids_visible = $visibility_handler->getVisibleFields($thisUsergroups,$groups)

Definition at line 127 of file userinfo.php.

$fields = $profile_handler->loadFields()

Definition at line 130 of file userinfo.php.

$gperm_handler = & xoops_gethandler( 'groupperm' )

Definition at line 34 of file userinfo.php.

$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)

Definition at line 35 of file userinfo.php.

$groups_accessible = $gperm_handler->getItemIds('profile_access', $groups_xoopsUser, $GLOBALS['xoopsModule']->getVar('mid'))

Definition at line 89 of file userinfo.php.

if (!is_object($thisUser)||(!$thisUser->isActive()&&(!$GLOBALS['xoopsUser']||!$GLOBALS['xoopsUser']->isAdmin()))) $groups_basic = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS)

Access permission check

Note: "thisUser" refers to the user whose profile will be accessed; "xoopsUser" refers to the current user $GLOBALS['xoopsUser'] "Basic Groups" refer to XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS and XOOPS_GROUP_ANONYMOUS; "Non Basic Groups" refer to all other custom groups

Admin groups: If thisUser belongs to admin groups, the xoopsUser has access if and only if one of xoopsUser's groups is allowed to access admin group; else Non basic groups: If thisUser belongs to one or more non basic groups, the xoopsUser has access if and only if one of xoopsUser's groups is allowed to allowed to any of the non basic groups; else User group: If thisUser belongs to User group only, the xoopsUser has access if and only if one of his groups is allowed to access User group

Definition at line 84 of file userinfo.php.

$groups_thisUser = $thisUser->getGroups()

Definition at line 85 of file userinfo.php.

$groups_thisUser_nonbasic = array_diff($groups_thisUser, $groups_basic)

Definition at line 86 of file userinfo.php.

$groups_xoopsUser = $groups

Definition at line 87 of file userinfo.php.

$profile = $profile_handler->get($thisUser->getVar('uid'))

Definition at line 156 of file userinfo.php.

if ($thisUser->getVar('user_viewemail')==1) else if (is_object($GLOBALS['xoopsUser'])) foreach (array_keys($cats) as $i) $profile_handler =& xoops_getmodulehandler('profile')

Definition at line 129 of file userinfo.php.

$rejected = false

Definition at line 91 of file userinfo.php.

$thisUser =& $member_handler->getUser($uid)

Definition at line 62 of file userinfo.php.

$thisUsergroups = $thisUser->getGroups()

Definition at line 124 of file userinfo.php.

$uid = intval($_GET['uid'])

Definition at line 24 of file userinfo.php.

$visibility_handler = xoops_getmodulehandler('visibility')

Definition at line 125 of file userinfo.php.

$xoBreadcrumbs[] = array('title' => _PROFILE_MA_USERINFO)

Definition at line 223 of file userinfo.php.

if ($rejected) if (is_object($GLOBALS['xoopsUser'])&&$GLOBALS['xoopsUser']->isAdmin()) $xoopsOption['template_main'] = 'profile_userinfo.html'

Definition at line 109 of file userinfo.php.

if (is_object($GLOBALS['xoopsUser'])&&$GLOBALS['xoopsUser']->isAdmin()) $xoopsOption['xoops_pagetitle'] = sprintf(_US_ALLABOUT, $thisUser->getVar('uname'))

Definition at line 121 of file userinfo.php.

if ($thisUser->isAdmin()) else if ($groups_thisUser_nonbasic) else
Initial value:

Definition at line 60 of file userinfo.php.