Roundcube Community Forum

 

How to reload the database connection?

Started by SimonusA, January 31, 2013, 03:21:53 AM

Previous topic - Next topic

SimonusA

I have made some changes into the rcmail.php file for getting the quota from a confixx database. This works well, but if I then delete a mail I get a "Servererror". This happens because of the new databaseconnection, I believe I have to build up another connection to the rc database afterwards, can somebody tell me how to do this?

This is what I done:

public function quota_content($attrib = null)
    {
        include('connect_confixx.php');
        $mailbox = getMailbox($_SESSION['username']);
        $used_quota = get_quota_percentage($mailbox);
         ...


Greetings and thanks in advance