]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
update to latest (r76) version of XMPPHP
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Jun 2009 01:03:21 +0000 (21:03 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Jun 2009 01:03:21 +0000 (21:03 -0400)
extlib/XMPPHP/BOSH.php
extlib/XMPPHP/XMLStream.php
extlib/XMPPHP/XMPP.php

index b147443d79bcb28ac88e67bef52dbe0d64c71c36..befaf60a77151cc533743ab5adb4211a05971d94 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 /** XMPPHP_XMLStream */
-require_once "XMPP.php";
+require_once dirname(__FILE__) . "/XMPP.php";
 
 /**
  * XMPPHP Main Class
index 0fcfea375e1d4110925dbe63a34310985e232dbb..d33411ec54140dafc1c527c946d05cbc931807c9 100644 (file)
  */
 
 /** XMPPHP_Exception */
-require_once 'Exception.php';
+require_once dirname(__FILE__) . '/Exception.php';
 
 /** XMPPHP_XMLObj */
-require_once 'XMLObj.php';
+require_once dirname(__FILE__) . '/XMLObj.php';
 
 /** XMPPHP_Log */
-require_once 'Log.php';
+require_once dirname(__FILE__) . '/Log.php';
 
 /**
  * XMPPHP XML Stream
@@ -375,7 +375,7 @@ class XMPPHP_XMLStream {
         * integer -> process for this amount of time 
         */
        
-       private function __process($maximum=0) {
+       private function __process($maximum=5) {
                
                $remaining = $maximum;
                
index 73fbd265840b878e176aba334a7cf984bca72689..429f45e565eb57648930988c8133b73bd6d26c5d 100644 (file)
@@ -27,8 +27,8 @@
  */
 
 /** XMPPHP_XMLStream */
-require_once "XMLStream.php";
-require_once "Roster.php";
+require_once dirname(__FILE__) . "/XMLStream.php";
+require_once dirname(__FILE__) . "/Roster.php";
 
 /**
  * XMPPHP Main Class
@@ -208,6 +208,15 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
                
                $this->send($out);
        }
+       /**
+        * Send Auth request
+        *
+        * @param string $jid
+        */
+       public function subscribe($jid) {
+               $this->send("<presence type='subscribe' to='{$jid}' from='{$this->fulljid}' />");
+               #$this->send("<presence type='subscribed' to='{$jid}' from='{$this->fulljid}' />");
+       }
 
        /**
         * Message handler