array('enabled' => false, // whether to throttle edits; false by default
'count' => 20, // number of allowed messages in timespan
'timespan' => 600), // timespan for throttling
- 'xmpp' =>
- array('enabled' => false,
- 'server' => 'INVALID SERVER',
- 'port' => 5222,
- 'user' => 'update',
- 'encryption' => true,
- 'resource' => 'uniquename',
- 'password' => 'blahblahblah',
- 'host' => null, # only set if != server
- 'debug' => false, # print extra debug info
- 'public' => array()), # JIDs of users who want to receive the public stream
'invite' =>
array('enabled' => true),
'tag' =>
$config_files);
}
- // Backwards compatibility
- if (array_key_exists('memcached', $config)) {
- if ($config['memcached']['enabled']) {
- addPlugin('Memcache', array('servers' => $config['memcached']['server']));
- }
-
- if (!empty($config['memcached']['base'])) {
- $config['cache']['base'] = $config['memcached']['base'];
- }
- }
-
- if (array_key_exists('xmpp', $config)) {
- if ($config['xmpp']['enabled']) {
- addPlugin('xmpp', array(
- 'server' => $config['xmpp']['server'],
- 'port' => $config['xmpp']['port'],
- 'user' => $config['xmpp']['user'],
- 'resource' => $config['xmpp']['resource'],
- 'encryption' => $config['xmpp']['encryption'],
- 'password' => $config['xmpp']['password'],
- 'host' => $config['xmpp']['host'],
- 'debug' => $config['xmpp']['debug'],
- 'public' => $config['xmpp']['public']
- ));
- }
- }
-
// Check for database server; must exist!
if (empty($config['db']['database'])) {