You have to actually install teh pear modules. MDB2.php is not the same as the pear module from pear.php.net. It's just an interface for RC to use. Same thing with imap.inc. It's not the IMAP library from pear. It's an interface for RC to interact with the IMAP class from pear.
Yeah, that function is what I was talking about. You could always make it like this:
$myDebug = array();
function __autoload($classname)
{
global $myDebug;
$filename = preg_replace(
array('/MDB2_(.+)/', '/Mail_(.+)/', '/^html_.+/', '/^utf8$/'),
array('MDB2/\\1', 'Mail/\\1', 'html', 'utf8.class'),
$classname
);
$myDebug[] = 'Including: ' . $filename . '.php';
@include_once $filename. '.php';
}
Then, somewhere in index.php toward the bottom after al is said and done with, just add:
var_dump($myDebug);
Then on the page, you'll have a listing like (not with these exact contents):
Array (
[0] => 'MDB2/somefile.php',
[1] => 'html.php',
[2] => 'rcube_template.php'
)