* Copyright 2002-2004 Chuck Hagenbuch <*****@*****.**> * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. */ $fieldsList['show'] = 0; $fieldsList['read'] = 1; $fieldsList['edit'] = 2; $fieldsList['delete'] = 3; @define('HORDE_BASE', dirname(__FILE__) . '/../..'); require_once HORDE_BASE . '/lib/base.php'; require_once HORDE_LIBS . 'Horde/Menu.php'; require_once HORDE_LIBS . 'Horde/Share.php'; require_once HORDE_LIBS . 'Horde/Group.php'; $app = Util::getFormData('app'); $shares =& Horde_Share::singleton($app); $groups =& Group::singleton(); $auth =& Auth::singleton($conf['auth']['driver']); $form = null; $reload = false; $actionID = Util::getFormData('actionID', 'edit'); switch ($actionID) { case 'edit': $share =& $shares->getShareById(Util::getFormData('cid')); if (!is_a($share, 'PEAR_Error')) { $form = 'edit.inc'; $perm =& $share->getPermission(); } elseif (($category = Util::getFormData('share')) !== null) { $share =& $shares->getShare($category); if (!is_a($share, 'PEAR_Error')) { $form = 'edit.inc';