diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 21:03:21 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 21:03:21 -0400 |
commit | ffa40a84bae9932e390cb58a4ba3a21708e61977 (patch) | |
tree | f3990f84ba17559d77c37d34b8216bef409e3e2e /extlib/XMPPHP/XMPP.php | |
parent | 14575fe6fc0de65f0234c73147ca877cc4c46cb8 (diff) |
update to latest (r76) version of XMPPHP
Diffstat (limited to 'extlib/XMPPHP/XMPP.php')
-rw-r--r-- | extlib/XMPPHP/XMPP.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/extlib/XMPPHP/XMPP.php b/extlib/XMPPHP/XMPP.php index 73fbd2658..429f45e56 100644 --- a/extlib/XMPPHP/XMPP.php +++ b/extlib/XMPPHP/XMPP.php @@ -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 |