]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge remote branch 'statusnet/0.9.x' into 1.0.x
authorCraig Andrews <candrews@integralblue.com>
Thu, 14 Oct 2010 19:27:17 +0000 (15:27 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 14 Oct 2010 19:27:17 +0000 (15:27 -0400)
1  2 
EVENTS.txt
README
lib/apiaction.php
lib/connectsettingsaction.php
lib/default.php
lib/htmloutputter.php
lib/statusnet.php

diff --cc EVENTS.txt
Simple merge
diff --cc README
Simple merge
Simple merge
Simple merge
diff --cc lib/default.php
Simple merge
Simple merge
index 39f90a5069dffb7a3cd67ff2bba3cd9e5c4ab28d,301994508de630401b1645f010a6e91bfc77dc92..3d018f4e211b54e0f0ebc00d236fbefcf04df55d
@@@ -371,22 -366,19 +370,34 @@@ class StatusNe
                  $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']
 +                ));
 +            }
 +        }
      }
+     /**
+      * Are we running from the web with HTTPS?
+      *
+      * @return boolean true if we're running with HTTPS; else false
+      */
+     static function isHTTPS()
+     {
+         // There are some exceptions to this; add them here!
+         return $_SERVER['HTTPS'];
+     }
  }
  
  class NoConfigException extends Exception