Changeset View
Changeset View
Standalone View
Standalone View
public_html/index.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
// Load plugins | // Load plugins | ||||
$plugins = (array)$rcube->config->get('kolabdav_plugins', array('kolab_auth')); | $plugins = (array)$rcube->config->get('kolabdav_plugins', array('kolab_auth')); | ||||
$required = array('libkolab', 'libcalendaring'); | $required = array('libkolab', 'libcalendaring'); | ||||
$rcube->plugins->init($rcube); | $rcube->plugins->init($rcube); | ||||
$rcube->plugins->load_plugins($plugins, $required); | $rcube->plugins->load_plugins($plugins, $required); | ||||
// enable logger | // enable logger | ||||
if ($rcube->config->get('kolabdav_console') || $rcube->config->get('kolabdav_user_debug')) { | if ($rcube->config->get('kolabdav_console') || $rcube->config->get('per_user_logging')) { | ||||
$logger = new \Kolab\Utils\DAVLogger((\Kolab\Utils\DAVLogger::CONSOLE | $rcube->config->get('kolabdav_http_log', 0))); | $logger = new \Kolab\Utils\DAVLogger((\Kolab\Utils\DAVLogger::CONSOLE | $rcube->config->get('kolabdav_http_log', 0))); | ||||
} | } | ||||
// convenience function, you know it well :-) | // convenience function, you know it well :-) | ||||
function console() | function console() | ||||
{ | { | ||||
global $logger; | global $logger; | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |