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,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