* Copyright 1999-2004 Jon Parise * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. */ @define('HORDE_BASE', dirname(__FILE__) . '/..'); require_once dirname(__FILE__) . '/../lib/core.php'; require_once HORDE_LIBS . 'Horde/Prefs/UI.php'; $registry = &Registry::singleton(); /* Figure out which application we're setting preferences for. */ $app = Util::getFormData('app', 'horde'); $appbase = $registry->getParam('fileroot', $app); /* Load $app's base environment. */ require_once $appbase . '/lib/base.php'; /* Load $app's preferences, if any. */ if (file_exists($appbase . '/config/prefs.php')) { require $appbase . '/config/prefs.php'; } /* Load custom preference handlers for $app, if present. */ if (file_exists($appbase . '/lib/prefs.php')) { require_once $appbase . '/lib/prefs.php'; } /* See if we have a preferences group set. */ $group = Util::getFormData('group'); if (Prefs_UI::handleForm($group)) { require $appbase . '/config/prefs.php'; } /* Show the UI. */ Prefs_UI::generateUI($group); require $registry->getParam('templates', 'horde') . '/common-footer.inc';