function show_menu() { $auth_obj =& Registry::get('TUserAuth'); $profile = $auth_obj->getCurrentUserData(); if ($profile) { $menu_obj = new TMenu(); $params['_block']['params'] = array('return_parent' => true, 'levels' => 2, 'full' => true, 'start_uri' => '/cabinet/', 'types' => array('text', 'module')); $ret['authmenu'] = $menu_obj->show_menu($params['_block']['params']); } else { $ret = true; } return $ret; }