Commit Graph

48 Commits

Author SHA1 Message Date
Alexei Sorokin
37f69546e8 Fix up Roster::addContact 2020-09-13 23:00:21 +03:00
Alexei Sorokin
7cbdc99d08 Allow XMLStream handlers to accept all proper callables
Additionally, change the type of XMLStream::getId() to string as ids in XMPP
can take all shapes and sizes.

To override the compatible behaviour and pass a simple procedure as a callable
either use an anonymous function or pass "false" as $obj.
2020-09-13 22:19:15 +03:00
Alexei Sorokin
d95381f8fb Fix types related issues introduced with 57f33b4 2019-11-16 16:09:18 +00:00
Diogo Cordeiro
57f33b4328 Introduce PHP7 strict typing 2019-11-03 00:18:51 +00:00
Diogo Cordeiro
5b3492b151 Change CRYPTO constant as suggested by Sonar Cloud
https://github.com/BirknerAlex/XMPPHP/issues/13
2019-11-02 23:41:59 +00:00
Diogo Cordeiro
c7cdcc588a Modern version of XMPPHP extlib
Original XMPPHP is no longer maintained
Therefore I've done some optimizations and imported some commits from birkner and zorn-v forks.
None of the forks really looked ready to be adopted...
2019-06-19 03:32:32 +01:00
Christian Weiske
07a9b7ea23 Merge
Merge remote branch 'github-ivan1986/master'
2010-05-30 21:01:17 +02:00
Ivan Borzenkov
8625895493 add PHPDOC to adduser 2010-05-30 20:51:29 +02:00
Ivan Borzenkov
1e40322129 add patch from http://code.google.com/p/xmpphp/issues/detail?id=67 - Digest MD5 2010-05-30 20:51:11 +02:00
Ivan Borzenkov
06600d491a Add to roster 2010-05-30 20:51:06 +02:00
Christian Weiske
e584413813 fix wrong xml type when getting roster items added (as per RFC3921, 7.4. "Adding a Roster Item". Thanks to neustradamus@jabber.org for notifying me about that 2010-05-29 09:58:21 +02:00
Superwayne
21f4d5c066 Merge branch 'priority-fix' 2010-04-14 21:08:36 +02:00
Superwayne
94d3a03794 fix: cannot set priority to 0 if status message is omitted or $show is set to "available" 2010-04-14 21:05:11 +02:00
Superwayne
794ef37658 Merge branch 'master' of git://github.com/ivan1986/xmpphp 2010-04-14 20:07:23 +02:00
Superwayne
8cf43499f4 fix: $priority is not set if $show is "available" or $status is omitted 2010-04-14 19:54:24 +02:00
Ivan Borzenkov
6abf075531 add PHPDOC to adduser 2010-03-09 19:41:38 +03:00
Ivan Borzenkov
b26491cdc9 add patch from http://code.google.com/p/xmpphp/issues/detail?id=67 - Digest MD5 2010-03-08 00:49:07 +03:00
Ivan Borzenkov
6e1b55fddf Add to roster 2010-03-07 23:31:18 +03:00
Ivan Borzenkov
43b4bc94ab reverting "use XMPPHP/ folder instead of dirname(__FILE__) which is inefficient"
method whis relative path not work for lib - random current dir
dirname faster and not need change include_path

more info on
http://stackoverflow.com/questions/2220443/whats-better-of-requiredirname-file-myparent-php-than-just-require
2010-03-07 22:38:11 +03:00
Ivan Borzenkov
bde088057d fix - can not set priority 0 2010-02-27 22:42:05 +03:00
Christian Weiske
efb71fa7f3 use XMPPHP/ folder instead of dirname(__FILE__) which is inefficient 2010-02-25 19:33:00 +01:00
Mat Gadd
911cd4b974 Suppress a notice when the body element is not passed. 2010-02-11 12:33:11 +00:00
fritzy
1e76ca74de * htmlspecialchars doesn't take care of apostrophes, so attributes should be quoted.
git-svn-id: svn://netflint.net/xmpphp@77 ef36c318-a008-4979-b6e8-6b496270793b
2009-07-26 17:09:57 +00:00
temp
b968882a7e fixed include paths
git-svn-id: svn://netflint.net/xmpphp@75 ef36c318-a008-4979-b6e8-6b496270793b
2009-01-30 09:28:35 +00:00
fritzy
626db605c3 * added the subscribe function
git-svn-id: svn://netflint.net/xmpphp@74 ef36c318-a008-4979-b6e8-6b496270793b
2008-12-17 17:50:35 +00:00
fritzy
7309d4fa68 * presence and message events now include xml object in payload
* you can now set the priority in your presence


git-svn-id: svn://netflint.net/xmpphp@73 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-28 20:37:52 +00:00
fritzy
eaf949de88 * added vcard support
git-svn-id: svn://netflint.net/xmpphp@71 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-28 19:43:05 +00:00
fritzy
6cd2e281c7 * applied Evan's XMLStream select() patches
* made roster presence tracking optional


git-svn-id: svn://netflint.net/xmpphp@69 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-26 10:49:47 +00:00
gar
f2bfbe252c Removed unneeded addIqHandler
made roster_iq_handler reply to type='set' queries


git-svn-id: svn://netflint.net/xmpphp@66 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-21 09:21:05 +00:00
gar
0434419a16 added myself as author to headers and readme
git-svn-id: svn://netflint.net/xmpphp@64 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-12 00:35:06 +00:00
gar
b5e26128a9 added Roster and Presence support to XMPP.php
new Roster class handles roster and presence
XMPP now uses XPath handlers exclusively


git-svn-id: svn://netflint.net/xmpphp@63 ef36c318-a008-4979-b6e8-6b496270793b
2008-11-12 00:29:00 +00:00
fritzy
454b0e0b7e * added support for SASL-ANONYMOUS
* changed BOSH session serialization


git-svn-id: svn://netflint.net/xmpphp@59 ef36c318-a008-4979-b6e8-6b496270793b
2008-09-22 00:12:13 +00:00
fritzy
02a3f3dc5d * BOSH and Stream Handling Fixes
git-svn-id: svn://netflint.net/xmpphp@57 ef36c318-a008-4979-b6e8-6b496270793b
2008-09-21 21:30:00 +00:00
fritzy
34048957e0 * added BOSH support
git-svn-id: svn://netflint.net/xmpphp@55 ef36c318-a008-4979-b6e8-6b496270793b
2008-09-19 10:35:37 +00:00
temp
2744fa4457 fallback for type == null added
git-svn-id: svn://netflint.net/xmpphp@54 ef36c318-a008-4979-b6e8-6b496270793b
2008-09-01 21:36:46 +00:00
fritzy
f7bb8d8f76 * added SSL and fixed XMPP_Old
git-svn-id: svn://netflint.net/xmpphp@51 ef36c318-a008-4979-b6e8-6b496270793b
2008-07-25 21:39:09 +00:00
fritzy
895021132c * added payload option to messages
git-svn-id: svn://netflint.net/xmpphp@47 ef36c318-a008-4979-b6e8-6b496270793b
2008-07-11 23:25:36 +00:00
fritzy
9bfd715564 * changed indents back to tabs (ung)
* fixed several bugs in the issue list


git-svn-id: svn://netflint.net/xmpphp@45 ef36c318-a008-4979-b6e8-6b496270793b
2008-07-07 02:33:57 +00:00
fritzy
4208a1a439 * subscribe fix
git-svn-id: svn://netflint.net/xmpphp@43 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-16 21:43:57 +00:00
fritzy
1f50a945f8 * typeo fix
git-svn-id: svn://netflint.net/xmpphp@42 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-16 18:22:49 +00:00
fritzy
8988f88683 * added roster retrieval (doesn't do anything with it)
git-svn-id: svn://netflint.net/xmpphp@41 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-16 17:27:41 +00:00
temp
b5aa1b77b0 space fixes, added timeout to connect(), general fixes
git-svn-id: svn://netflint.net/xmpphp@39 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-05 21:14:43 +00:00
temp
1a4d1756c1 phpdocs fixes
git-svn-id: svn://netflint.net/xmpphp@38 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-05 20:08:45 +00:00
temp
3e41565343 phpdocs fixes
git-svn-id: svn://netflint.net/xmpphp@36 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-05 20:05:23 +00:00
temp
6a22b7b14c phpdocs fixes
git-svn-id: svn://netflint.net/xmpphp@35 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-05 20:00:25 +00:00
temp
b440b4d30e added proper phpdoc, added exceptions, added useEncryption() method
git-svn-id: svn://netflint.net/xmpphp@34 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-05 19:50:02 +00:00
fritzy
99f91b0e17 * added auto-authorize
git-svn-id: svn://netflint.net/xmpphp@31 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-03 17:56:35 +00:00
temp
6dae72dd78 added a class prefix, refactored log-class, finished scopes for methods in xmlstream and xmpp
git-svn-id: svn://netflint.net/xmpphp@29 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-01 14:29:33 +00:00