update to latest (r76) version of XMPPHP

This commit is contained in:
Evan Prodromou 2009-06-28 21:03:21 -04:00
parent 14575fe6fc
commit ffa40a84ba
3 changed files with 16 additions and 7 deletions

View File

@ -27,7 +27,7 @@
*/ */
/** XMPPHP_XMLStream */ /** XMPPHP_XMLStream */
require_once "XMPP.php"; require_once dirname(__FILE__) . "/XMPP.php";
/** /**
* XMPPHP Main Class * XMPPHP Main Class

View File

@ -27,13 +27,13 @@
*/ */
/** XMPPHP_Exception */ /** XMPPHP_Exception */
require_once 'Exception.php'; require_once dirname(__FILE__) . '/Exception.php';
/** XMPPHP_XMLObj */ /** XMPPHP_XMLObj */
require_once 'XMLObj.php'; require_once dirname(__FILE__) . '/XMLObj.php';
/** XMPPHP_Log */ /** XMPPHP_Log */
require_once 'Log.php'; require_once dirname(__FILE__) . '/Log.php';
/** /**
* XMPPHP XML Stream * XMPPHP XML Stream
@ -375,7 +375,7 @@ class XMPPHP_XMLStream {
* integer -> process for this amount of time * integer -> process for this amount of time
*/ */
private function __process($maximum=0) { private function __process($maximum=5) {
$remaining = $maximum; $remaining = $maximum;

View File

@ -27,8 +27,8 @@
*/ */
/** XMPPHP_XMLStream */ /** XMPPHP_XMLStream */
require_once "XMLStream.php"; require_once dirname(__FILE__) . "/XMLStream.php";
require_once "Roster.php"; require_once dirname(__FILE__) . "/Roster.php";
/** /**
* XMPPHP Main Class * XMPPHP Main Class
@ -208,6 +208,15 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
$this->send($out); $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 * Message handler