Changeset 784 for trunk/xpressme_integration_kit/class/userInfo_class.php
- Timestamp:
- May 30, 2011, 11:08:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/userInfo_class.php
r783 r784 26 26 global $xoopsUser,$xoopsModule; 27 27 28 if(empty($xoopsUser)) $this->is_logon = false; 29 $this->is_logon = true; 30 $this->user_name = $xoopsUser->getVar('uname'); 31 if($this->user_name == '') { 32 $this->user_name = $xoopsUser->getVar('name'); 33 } 34 $this->user_id = $xoopsUser->getVar('uid'); 35 $this->user_group = $xoopsUser->getGroups(); 36 $moduleperm_handler =& xoops_gethandler('groupperm'); 37 if ($moduleperm_handler->checkRight('module_read', 38 $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { 39 $this->is_mod_read = true; 40 } else { 41 $this->is_mod_read = false; 28 if(empty($xoopsUser)){ 29 $this->is_logon = false; 30 } else { 31 $this->is_logon = true; 32 $this->user_name = $xoopsUser->getVar('uname'); 33 if($this->user_name == '') { 34 $this->user_name = $xoopsUser->getVar('name'); 35 } 36 $this->user_id = $xoopsUser->getVar('uid'); 37 $this->user_group = $xoopsUser->getGroups(); 38 $moduleperm_handler =& xoops_gethandler('groupperm'); 39 if ($moduleperm_handler->checkRight('module_read', 40 $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { 41 $this->is_mod_read = true; 42 } else { 43 $this->is_mod_read = false; 44 } 45 $is_mod_admin = $xoopsUser->isAdmin($xoopsModule->getVar('mid')); 42 46 } 43 $is_mod_admin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));44 45 47 } 46 48 /*
Note: See TracChangeset
for help on using the changeset viewer.