addClassPathMapper( new Horde_Autoloader_ClassPathMapper_PrefixString('Horde', $dirname) ); /* Sanity checking - if we can't even load the Horde_ErrorHandler file, then * the installation is all sorts of busted. */ if (!class_exists('Horde_ErrorHandler')) { exit('Cannot autoload Horde Core libraries. Please reinstall Horde and/or correctly configure the install paths. If you are using an autoloader cache, try to clear it.'); } /* Default exception handler for uncaught exceptions. The default fatal * exception handler output may include things like passwords, etc. so don't * output this unless an admin. */ set_exception_handler(array('Horde_ErrorHandler', 'fatal')); /* Catch errors. */ set_error_handler(array('Horde_ErrorHandler', 'errorHandler'), E_ALL | E_STRICT); /* Catch fatal errors. */ register_shutdown_function(array('Horde_ErrorHandler', 'catchFatalError'));