pushApp('ingo', !defined('AUTH_HANDLER'))), 'PEAR_Error')) { if ($pushed->getCode() == 'permission_denied') { Horde::authenticationFailureRedirect(); } Horde::fatal($pushed, __FILE__, __LINE__, false); } $conf = &$GLOBALS['conf']; @define('INGO_TEMPLATES', $registry->get('templates')); // Notification system. $notification = &Notification::singleton(); $notification->attach('status'); // Redirect the user to the Horde login page if they haven't // authenticated. if (!Auth::isAuthenticated() && !defined('AUTH_HANDLER')) { Horde::authenticationFailureRedirect(); } // Find the base file path of Ingo. @define('INGO_BASE', dirname(__FILE__) . '/..'); // Ingo base library. require_once INGO_BASE . '/lib/Ingo.php'; // Other Horde libraries needed. require_once 'Horde/Help.php'; // Start compression. Horde::compressOutput(); // Load the Ingo_Storage driver. It appears in the global variable // $ingo_storage. require_once INGO_BASE . '/lib/Storage.php'; $GLOBALS['ingo_storage'] = &Ingo_Storage::singleton(); // Create the ingo session (if needed). if (!isset($_SESSION['ingo']) || !is_array($_SESSION['ingo'])) { require_once INGO_BASE . '/lib/Session.php'; Ingo_Session::createSession(); }