From: Harvie Date: Sat, 8 Jan 2011 22:43:49 +0000 (+0100) Subject: Added first version of cron script for automatic registering of jabber users X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5ba5b4a264e9226d2182f9b7d5e7a809e63d62d9;p=mirrors%2FKyberia-bloodline.git Added first version of cron script for automatic registering of jabber users --- diff --git a/cron/ejabberd_sync.php b/cron/ejabberd_sync.php new file mode 100755 index 0000000..8bb6290 --- /dev/null +++ b/cron/ejabberd_sync.php @@ -0,0 +1,40 @@ +#!/usr/bin/php +query($q); + +while($set->next()) { + $user=escapeshellarg($set->getString('login')); + $pass=escapeshellarg(md5('jabber:'.$set->getString('password'))); + system($echo."ejabberdctl register $user $jabber_domain $pass"); + system($echo."ejabberdctl set-password $user $jabber_domain $pass"); //needs mod_ctlextra installed in ejabberd +} +