Now you have to do the following on your machine:
Create a new directory called stats in your $CHAT_WEBSERVER_ROOT/DigiChat/DigiClasses/Resources/$CHATNAME/ directory.
On Unix create a crontab job and let it every x minutes execute the following script:
Script getchatusers.sh
PHP Code:
/$PATH_TO_JAVA/bin/java -classpath /usr/local/DigiChat/Commander.zip com.diginet.digichat.commander.Commander users siteID $SITEID host $CHATHOST password $PASSWORD &> /$CHAT_WEBSERVER_ROOT/DigiChat/DigiClasses/Resources/$CHATNAME/stats/digiakt$SITEID.txt
Please replace the following variables above with your input:
$PATH_TO_JAVA = e.g. /usr/bin/java1.4.2/bin/java
$SITEID = e.g. 1000
$CHATNAME = e.g Default or your given name like MyCHAT
$CHATHOST = IP or URL
$PASSWORD = Commander password which you have to set
$CHAT_WEBSERVER_ROOT = /www/htdocs/domain/
digiakt$SITEID.txt = e.g. digiakt1000.txt
On Windows create a getchatusers.bat file instead of the getchatusers.sh with the same script source from above and replaced variables and create an AT job which runs every x minutes.
Then you can specify the path to this outputfile which is created every x minutes in my hack.
ALL SET ALL DONE !!!
P.S.: If you wish to block all users from reading this file without permission you can create an .htaccess file in the stats directory and enter the IP of your server and deny all others. I would recommend this.
Cheers,