Changeset 164 in subversion for trunk/roundcubemail/index.php


Ignore:
Timestamp:
Mar 14, 2006 4:13:07 PM (7 years ago)
Author:
roundcube
Message:

Improved error handling in DB connection failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/index.php

    r162 r164  
    33 +-----------------------------------------------------------------------+ 
    44 | RoundCube Webmail IMAP Client                                         | 
    5  | Version 0.1-20060220                                                  | 
     5 | Version 0.1-20060314                                                  | 
    66 |                                                                       | 
    77 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      | 
     
    111111load_gui(); 
    112112 
     113 
     114// check DB connections and exit on failure 
     115if ($err_str = $DB->is_error()) 
     116  { 
     117  raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, 
     118                    'message' => $err_str), FALSE, TRUE); 
     119  } 
     120 
     121 
    113122// error steps 
    114123if ($_action=='error' && !empty($_GET['_code'])) 
Note: See TracChangeset for help on using the changeset viewer.