forked from GNUsocial/gnu-social
4cdd90283b
The queuehandler sends messages to the user. If the user replies, the messages are typically sent directly to the queuehandler (including resource), not the default bot JID. We add a little code for the xmppqueuehandler to periodically service its queue of received messages. Received messages are forwarded to the listener to deal with. We use XEP 33, 'addresses', to note the original sender. The xmppdaemon checks to see if the 'from' on a message is the daemon address. If so, it looks for a XEP 33 'addresses' stanza, with an 'ofrom' address, which shows who it was originally is from. This should let us send from one resource ID and still process incoming messages in a different connection. darcs-hash:20080830040717-84dde-59c75bfb107a1dd5fd531106751b4544bfd15656.gz |
||
---|---|---|
actions | ||
classes | ||
db | ||
doc | ||
extlib | ||
js | ||
lib | ||
locale | ||
scripts | ||
theme | ||
config.php.sample | ||
COPYING | ||
htaccess.sample | ||
index.php | ||
README |
This package requires PHP 5.x and the following PHP Pear libraries: - DB_DataObject http://pear.php.net/package/DB_DataObject - Validate http://pear.php.net/package/Validate - XMLWriter (built-in) - Auth_Yadis from OpenIDEnabled (not the PEAR version!). I decided to use the openidenabled.com version since it's more widely implemented, seems to be better supported, and it may make sense to use the openidenabled.com libraries for OpenID auth sometime in the future. Note that this is no longer distributed separately; it's only in the openidenabled.com OpenID PHP tarball. http://openidenabled.com/php-openid/ - OAuth.php from http://oauth.googlecode.com/svn/code/php/ - markdown.php from http://michelf.com/projects/php-markdown/ - PEAR Mail, for sending out mail notifications http://pear.php.net/package/Mail - PEAR Net_SMTP, if you use the SMTP factory for notifications http://pear.php.net/package/Net_SMTP - xmpphp, the follow-up to Class.Jabber.php. Probably the best XMPP library available for PHP. http://xmpphp.googlecode.com/