1

Need JSON output in CMD_API_SHOW_USER_CONFIG user level

  • Live

Avatar
Roman Mazur

It's would be nice and useful to have JSON output in /CMD_API_SHOW_USER_CONFIG on user level.

For now, there is no JSON (?json=yes) and only URLEncoded output, that's not very usable in JSON/jQuery enabled skin development & customisation.

A

Activity Newest / Oldest

Avatar

Classic productions

Shukuruk


Avatar

John

Thanks for the report. Bug found/fixed, updated id=2716.
Note, this fix made changes in a large number of areas that generate json output. I've gone over every one, and fairly certain I got them all, but should you hit any errors, like 404 headers and html output after the json, let me know which call it is. Fix in pre-release area.


  • Avatar
Avatar

Roman Mazur

Thanks, John! I will test it in a couple of days.


Avatar

Roman Mazur

I do some quick-tests over new prerelease binaries and seems to work OK.


Avatar

Roman Mazur

There is an error in JSON output in prerelease binaries from
/963018346/packed_freebsd110_64.tar.gz

/CMD_API_ADDITIONAL_DOMAINS -- doubled {} in the end of output.

hosting.kiev.ua/screenshots/Scrn-20200319-002506-39dav.png

I do some checks on to another CMDs and all of listed below works just fine

/CMD_API_SHOW_USER_CONFIG?json=yes
/CMD_API_FILE_MANAGER?json=yes
/CMD_USER_STATS?domain=**********&json=yes
/CMD_API_DNS_CONTROL?domain=************&json=yes
/CMD_DNS_MX?domain=************&json=yes


Avatar

smtalk

Status changed to: Live

Avatar

John

Added the fix here:
www.directadmin.com/features.php?id=2716

Pre-release binaries should be available in 10 minutes.


  • Avatar
Avatar

Roman Mazur

Great! I'll give it a try tomorrow.


Avatar

Roman Mazur

I checked it out. It work! Thank you, John!


Avatar

smtalk

I guess you might be looking for /CMD_JSON_LANG?request=global ?


  • Avatar
Avatar

Roman Mazur

Thanks alot, but no. CMD_JSON_LANG does not give me an information about custom features (like memcache, firewall, plugin access, SMTP server access) enabled|disabled|value, as CMD_API_SHOW_USER_CONFIG does. Maybe I need to add something to my skin. More then 10 custom features used at a time and I modified Enhanced skin files to support more then 4 features.