* * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. */ // Check for a prior definition of HORDE_BASE (perhaps by an // auto_prepend_file definition for site customization). #if (!defined('HORDE_BASE')) { # @define('HORDE_BASE', dirname(__FILE__) . '/..'); #} // Load the Horde Framework core, and set up inclusion paths. #require_once HORDE_BASE . '/lib/core.php'; // Registry. if (Util::nonInputVar('session_control') == 'none') { $registry = &Registry::singleton(HORDE_SESSION_NONE); } else { $registry = &Registry::singleton(); } #if (is_a(($pushed = $registry->pushApp('horde', !defined('AUTH_HANDLER'))), 'PEAR_Error')) { # if ($pushed->getCode() == 'permission_denied') { # Horde::authenticationFailureRedirect(); # } # Horde::fatal($pushed, __FILE__, __LINE__, false); #} $conf = &$GLOBALS['conf']; #@define('HORDE_TEMPLATES', $registry->get('templates')); // Notification System. #$notification = &Notification::singleton(); #$notification->attach('status'); /* Set up the menu. */ #require_once 'Horde/Menu.php'; #$menu = &new Menu(); // Compress output #Horde::compressOutput();