I have followed the docs to create a WHM plugin with a UI.
I am attempting to make an AJAX call that will access a PHP script I write to garb all cpanel users, then check their directories for a WordPress installation.
I have spent several hours trying to figure out how to grab a list of accounts in PHP. I believe using the WHM API is incorrect as this is not outside of WHM. CPANEL() does not work because it is for the root user.
Any help pointing me in the right direction would be greatly appreciated.
I am attempting to make an AJAX call that will access a PHP script I write to garb all cpanel users, then check their directories for a WordPress installation.
I have spent several hours trying to figure out how to grab a list of accounts in PHP. I believe using the WHM API is incorrect as this is not outside of WHM. CPANEL() does not work because it is for the root user.
Any help pointing me in the right direction would be greatly appreciated.