示例#1
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "mysql";
     //are same for functional and sla tests
     $this->validate_connection();
 }
示例#2
0
 function __construct($functional)
 {
     $this->config = rc_monitor_driver_base::get_config();
     if (!($this->drivers = $this->config['rc_monitor_drivers_list'])) {
         $this->drivers = array("memcache", "mysql", "imap", "sieve", "calendar");
     }
     $this->functional = $functional;
 }
示例#3
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "memcache";
     $this->servers = implode(",", $this->config['memcache_hosts']);
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#4
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "sieve";
     if (!($this->sieve_users = $this->config['rc_monitor_sieve_users'])) {
         $this->sieve_users = array(array('user' => '*****@*****.**', 'pass' => 'pass123', 'host' => 'imap.domain.com', 'port' => 4190, 'auth_type' => 'LOGIN'));
     }
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#5
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "imap";
     $this->conn = new rcube_imap_generic();
     # to enable imap debug
     #$this->conn->setDebug(true);
     $this->imap_users = $this->config['rc_monitor_imap_users'];
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#6
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;
     }
 }
示例#7
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "calendar";
     if (!($this->calendar_users = $this->config['rc_monitor_calendar_users'])) {
         $this->calendar_users = array();
     }
     if (!($this->calendar_url = $this->config['rc_monitor_calendar_url'])) {
         $this->calendar_url = 'http://local-owncloud/apps/calendar/caldav.php/calendars/#USER#/default%20calendar';
     }
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }