Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function startup() | ||||
$debug_mode = $this->config->get('activesync_debug') ? kolab_sync_logger::DEBUG : kolab_sync_logger::WARN; | $debug_mode = $this->config->get('activesync_debug') ? kolab_sync_logger::DEBUG : kolab_sync_logger::WARN; | ||||
$this->logger = new kolab_sync_logger($debug_mode); | $this->logger = new kolab_sync_logger($debug_mode); | ||||
// Get list of plugins | // Get list of plugins | ||||
// WARNING: We can use only plugins that are prepared for this | // WARNING: We can use only plugins that are prepared for this | ||||
// e.g. are not using output or rcmail objects or | // e.g. are not using output or rcmail objects or | ||||
// doesn't throw errors when using them | // doesn't throw errors when using them | ||||
$plugins = (array)$this->config->get('activesync_plugins', array('kolab_auth')); | $plugins = (array)$this->config->get('activesync_plugins', array('kolab_auth')); | ||||
$plugins = array_unique(array_merge($plugins, array('libkolab'))); | $plugins = array_unique(array_merge($plugins, array('libcalendaring', 'libkolab'))); | ||||
// Initialize/load plugins | // Initialize/load plugins | ||||
$this->plugins = kolab_sync_plugin_api::get_instance(); | $this->plugins = kolab_sync_plugin_api::get_instance(); | ||||
$this->plugins->init($this, $this->task); | $this->plugins->init($this, $this->task); | ||||
// this way we're compatible with Roundcube Framework 1.2 | // this way we're compatible with Roundcube Framework 1.2 | ||||
// we can't use load_plugins() here | // we can't use load_plugins() here | ||||
foreach ($plugins as $plugin) { | foreach ($plugins as $plugin) { | ||||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |