]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/jabberqueuehandler.php
Readjusted location and size for logo, form_notice,
[quix0rs-gnu-social.git] / scripts / jabberqueuehandler.php
index 24f818a0c56fdfd92ebf8228eb569499023493d4..924fc45453ecc2ef08d5b570962c38d27ab6d839 100755 (executable)
@@ -20,8 +20,8 @@
 
 # Abort if called from a web server
 if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
-       print "This script must be run from the command line\n";
-       exit();
+    print "This script must be run from the command line\n";
+    exit();
 }
 
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
@@ -33,22 +33,25 @@ require_once(INSTALLDIR . '/lib/xmppqueuehandler.php');
 
 set_error_handler('common_error_handler');
 
-class JabberQueueHandler extends XmppQueueHandler {
+class JabberQueueHandler extends XmppQueueHandler
+{
 
-       var $conn = NULL;
+    var $conn = null;
 
-       function transport() {
-               return 'jabber';
-       }
+    function transport()
+    {
+        return 'jabber';
+    }
 
-       function handle_notice($notice) {
-               try {
-                       return jabber_broadcast_notice($notice);
-               } catch (XMPPHP_Exception $e) {
-                       $this->log(LOG_ERROR, "Got an XMPPHP_Exception: " . $e->getMessage());
-                       exit(1);
-               }
-       }
+    function handle_notice($notice)
+    {
+        try {
+            return jabber_broadcast_notice($notice);
+        } catch (XMPPHP_Exception $e) {
+            $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
+            exit(1);
+        }
+    }
 }
 
 ini_set("max_execution_time", "0");