mysql - OpenFire Online/Offline Users in PHP -
i have openfire server running (it using mysql it's database) , i'm trying make php http pre-bind system(using sasl) work web app.
i have got part of app need choose random username not online(for guest users). thinking of choosing random users(in guests group i've created) , using presence service plugin check online status until find available one(a user that's offline).
is there better way list of offline/online users?
does server store online status of users in db? i've been looking around openfire db can't figure out.
thanks.
i wrote small plugin openfire (with of other simple plugin plug without having dig through openfire api docs) spits out json encoded list of users online. grab , run json_decode , cycle through array. can't find source @ moment, seems else made aswell:
http://community.igniterealtime.org/thread/45107
edit:
i notice github project linked in above post gone, try contacting them , see if still have it.
another edit:
link github repo: https://github.com/candy-chat/onlineusersplugin
Comments
Post a Comment