| 1700 |
function mosShowVIMenu( &$params ) { |
function mosShowVIMenu( &$params ) { |
| 1701 |
global $my, $cur_template, $Itemid; |
global $my, $cur_template, $Itemid; |
| 1702 |
if (mamboCore::get('mosConfig_shownoauth')) $maxaccess = 0; |
if (mamboCore::get('mosConfig_shownoauth')) $maxaccess = 0; |
| 1703 |
else $maxaccess = $my->gid; |
else $maxaccess = $my->getAccessGid(); |
| 1704 |
$rows =& $this->getByParentOrder(0, $params->get('menutype'), $maxaccess); |
$rows =& $this->getByParentOrder(0, $params->get('menutype'), $maxaccess); |
| 1705 |
foreach ($rows as $i=>$row) $crosslink[$row->id] = $i; |
foreach ($rows as $i=>$row) $crosslink[$row->id] = $i; |
| 1706 |
// indent icons |
// indent icons |
| 1787 |
global $my, $cur_template, $Itemid; |
global $my, $cur_template, $Itemid; |
| 1788 |
|
|
| 1789 |
if (mamboCore::get('mosConfig_shownoauth')) $maxaccess = 0; |
if (mamboCore::get('mosConfig_shownoauth')) $maxaccess = 0; |
| 1790 |
else $maxaccess = $my->gid; |
else $maxaccess = $my->getAccessGid(); |
| 1791 |
$rows =& $this->getByParentOrder(0, $params->get('menutype'), $maxaccess, true); |
$rows =& $this->getByParentOrder(0, $params->get('menutype'), $maxaccess, true); |
| 1792 |
|
|
| 1793 |
$links = array(); |
$links = array(); |
| 2064 |
$this->grp = mosGetParam( $_SESSION, 'session_grp', 0); |
$this->grp = mosGetParam( $_SESSION, 'session_grp', 0); |
| 2065 |
} |
} |
| 2066 |
/** |
/** |
| 2067 |
|
* User access level |
| 2068 |
|
*/ |
| 2069 |
|
function getAccessGid() { |
| 2070 |
|
static $access; |
| 2071 |
|
if (!isset($access)) { |
| 2072 |
|
$acl = new gacl; |
| 2073 |
|
$access = $this->id > 0 ? 1 : 0; |
| 2074 |
|
$access += $acl->acl_check( 'action', 'access', 'users', $this->usertype, 'frontend', 'special' ); |
| 2075 |
|
} |
| 2076 |
|
return $access; |
| 2077 |
|
} |
| 2078 |
|
/** |
| 2079 |
* Validation and filtering |
* Validation and filtering |
| 2080 |
* @return boolean True is satisfactory |
* @return boolean True is satisfactory |
| 2081 |
*/ |
*/ |