示例#1
0
 static function get_config()
 {
     if (!self::$config) {
         // load main config file
         require_once RCMAIL_CONFIG_DIR . '/main.inc.php';
         self::$config = $rcmail_config;
         // load database config
         require_once RCMAIL_CONFIG_DIR . '/db.inc.php';
         include_once 'config.inc.php';
         self::$config = array_merge(self::$config, $rcmail_config);
         ksort(self::$config);
         return self::$config;
     } else {
         return self::$config;
     }
 }