Command |
PHP |
Response |
ADD user |
$ptext ='{"command":"add","user":"alex","pass":"1234","notes":"test","maxcon":"10","enddate":"2024-09-28","categories":"2,3,4,5","ip":"","reseller":"","balancer":""}'; |
{"info":"add_ok"} {"info":"add_err"} |
EDIT user |
$ptext ='{"command":"edit","user":"alex","pass":"1234","notes":"test","maxcon":"10","enddate":"2024-09-28","categories":"2,3,4,5","ip":"","reseller":"","balancer":""}'; |
{"info":"edit_ok"} {"info":"edit_err"} |
DEL user |
$ptext ='{"command":"del","user":"alex"}'; |
{"info":"del_ok"} {"info":"del_err"} |
GET user |
$ptext ='{"command":"get","user":"alex"}'; |
user:[{"id":1,"user":"alex","pass":"1234","categories":"1,14","enddate":1619827200,"notes":"free","maxcon":10,"ip":"allowed ip(s) separated by ,","reseller":"","balancer":""}] |
GET all users |
$ptext ='{"command":"get","user":"all_users"}'; |
user:[{"id":1,"user":"alex","pass":"1234","categories":"1,14","enddate":1619827200,"notes":"free","maxcon":10,"ip":"allowed ip(s) separated by ,","reseller":"","balancer":""},{"id":2,"user":"alex1","pass":"1234","categories":"1,4","enddate":1619827200,"notes":"free1","maxcon":1,"ip":"allowed ip(s) separated by ,","reseller":"","balancer":""}] |
GET users connections |
$ptext ='{"command":"connections","user":"all_users"}'; |
user:[{"id":1,"user":"alex","ip":"192.168.1.100","ua":"VLC/3.0.6","type":"mpegts","uptime":1610647406232,"chid":2,"catid":1},{"id":2,"user":"alex1","ip":"192.168.1.101","ua":"VLC/3.0.6","type":"mpegts","uptime":1610647539877,"chid":3,"catid":1}] |
- |
- |
{"info":"command_err"} {"info":"key_err"} {"info":"user_exists"} |
Note |
Format "enddate" |
"enddate":"2024-09-28", "enddate":"2024-09-28T05:01:22" |
Note |
- |
This color is after decryption! |