diff options
author | Thomas <tb@woodcrest.local> | 2013-10-21 11:52:38 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-11-01 12:46:04 (GMT) |
commit | 7fd21807c61e345f67f798760fe02821d0db19db (patch) | |
tree | 106d6fd00c3ba4bfb9953624e747f17c81aea7e4 | |
parent | 3c8d6c87f57b05b47ce89bf6cae78a898f725775 (diff) | |
download | iRony-7fd21807c61e345f67f798760fe02821d0db19db.tar.gz |
Disable console output by default
-rw-r--r-- | config/dav.inc.php.sample | 4 | ||||
-rw-r--r-- | public_html/index.php | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/config/dav.inc.php.sample b/config/dav.inc.php.sample index ebba468..d8dd7fe 100644 --- a/config/dav.inc.php.sample +++ b/config/dav.inc.php.sample @@ -39,3 +39,7 @@ $rcmail_config['kolabdav_auth_cache'] = 'apc'; // lifetime of the Auth cache, possible units: s, m, h, d, w $rcmail_config['kolabdav_auth_cache_ttl'] = '1h'; + +// enable debug console showing the internal function calls triggered +// by http requests. This will write log to /var/log/iRony/console +$rcmail_config['kolab_dav_console'] = false; diff --git a/public_html/index.php b/public_html/index.php index 8a86bd1..a702fef 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -67,7 +67,12 @@ $rcube->plugins->init($rcube); $rcube->plugins->load_plugins($plugins, $required); // convenience function, you know it well :-) -function console() { call_user_func_array(array('rcube', 'console'), func_get_args()); } +function console() +{ + global $rcube; + if ($rcube->config->get('kolab_dav_console', false)) + call_user_func_array(array('rcube', 'console'), func_get_args()); +} // Make sure this setting is turned on and reflects the root url of the *DAV server. |