- 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']
- ));
- }
+ static function isHTTPS()
+ {
+ // There are some exceptions to this; add them here!
+ if (empty($_SERVER['HTTPS'])) {
+ return false;