Author Topic: How to reload the database connection?  (Read 3356 times)

Offline SimonusA

  • Newbie
  • *
  • Posts: 7
How to reload the database connection?
« on: January 31, 2013, 03:21:53 AM »
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:

Code: [Select]
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
« Last Edit: January 31, 2013, 03:28:40 AM by SimonusA »