getInstance('Horde_Core_Factory_Auth')->create(); $groups = array(); try { $groups = $GLOBALS['injector'] ->getInstance('Horde_Group') ->listAll(empty($GLOBALS['conf']['share']['any_group']) ? $GLOBALS['registry']->getAuth() : null); asort($groups); } catch (Horde_Group_Exception $e) {} $file_upload = $GLOBALS['browser']->allowFileUploads(); if (!empty($GLOBALS['conf']['resource']['driver'])) { $resources = Kronolith::getDriver('Resource') ->listResources(Horde_Perms::READ, array('type' => Kronolith_Resource::TYPE_SINGLE)); $resource_enum = array(); foreach ($resources as $resource) { $resource_enum[$resource->getId()] = htmlspecialchars($resource->get('name')); } } $accountUrl = $GLOBALS['registry']->get('webroot', 'horde'); if (isset($GLOBALS['conf']['urls']['pretty']) && $GLOBALS['conf']['urls']['pretty'] == 'rewrite') { $accountUrl .= '/rpc/'; } else { $accountUrl .= '/rpc.php/'; } $accountUrl = Horde::url($accountUrl, true, -1) . 'principals/'. $GLOBALS['registry']->convertUsername($GLOBALS['registry']->getAuth(), false) . '/'; ?>