3 +-------------------------------------------------------------------------+
4 | Roundcube Webmail IMAP Client |
7 | Copyright (C) 2005-2011, The Roundcube Dev Team |
9 | This program is free software; you can redistribute it and/or modify |
10 | it under the terms of the GNU General Public License version 2 |
11 | as published by the Free Software Foundation. |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
18 | You should have received a copy of the GNU General Public License along |
19 | with this program; if not, write to the Free Software Foundation, Inc., |
20 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
22 +-------------------------------------------------------------------------+
23 | Author: Thomas Bruederli <roundcube@gmail.com> |
24 +-------------------------------------------------------------------------+
26 $Id: index.php 2696 2009-07-02 06:38:26Z thomasb $
31 * Use PHP5 autoload for dynamic class loading
32 * (copy from program/include/iniset.php)
34 function __autoload($classname)
36 $filename = preg_replace(
55 include_once $filename. '.php';
60 * Fake internal error handler to catch errors
62 function raise_error($p)
64 $rci = rcube_install::get_instance();
65 $rci->raise_error($p);
69 * Local callback function for PEAR errors
71 function rcube_pear_error($err)
74 'code' => $err->getCode(),
75 'message' => $err->getMessage(),
79 // set PEAR error handling (will also load the PEAR main class)
80 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error');