commit | author | age
|
fee8c6
|
1 |
<?php |
df3c35
|
2 |
/* |
T |
3 |
+-------------------------------------------------------------------------+ |
e019f2
|
4 |
| Roundcube Webmail IMAP Client | |
df3c35
|
5 |
| Version 0.3-20090702 | |
T |
6 |
| | |
e019f2
|
7 |
| Copyright (C) 2005-2009, Roundcube Dev. - Switzerland | |
df3c35
|
8 |
| | |
T |
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. | |
|
12 |
| | |
|
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. | |
|
17 |
| | |
|
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. | |
|
21 |
| | |
|
22 |
+-------------------------------------------------------------------------+ |
|
23 |
| Author: Thomas Bruederli <roundcube@gmail.com> | |
|
24 |
+-------------------------------------------------------------------------+ |
fee8c6
|
25 |
|
df3c35
|
26 |
$Id: index.php 2696 2009-07-02 06:38:26Z thomasb $ |
T |
27 |
|
|
28 |
*/ |
fee8c6
|
29 |
|
T |
30 |
/** |
|
31 |
* Use PHP5 autoload for dynamic class loading |
2c3d81
|
32 |
* (copy from program/include/iniset.php) |
fee8c6
|
33 |
*/ |
T |
34 |
function __autoload($classname) |
|
35 |
{ |
|
36 |
$filename = preg_replace( |
2c3d81
|
37 |
array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/^html_.+/', '/^utf8$/'), |
A |
38 |
array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'html', 'utf8.class'), |
fee8c6
|
39 |
$classname |
T |
40 |
); |
|
41 |
include_once $filename. '.php'; |
|
42 |
} |
|
43 |
|
|
44 |
|
|
45 |
/** |
df3c35
|
46 |
* Fake internal error handler to catch errors |
fee8c6
|
47 |
*/ |
T |
48 |
function raise_error($p) |
|
49 |
{ |
|
50 |
$rci = rcube_install::get_instance(); |
|
51 |
$rci->raise_error($p); |
|
52 |
} |