RisesWayne Posted December 17, 2018 Share Posted December 17, 2018 We're going to make a reference list, show the sites on WHM. We need to use the WHM API. How can we use WHMCS in the most secure way on the additional page? https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+listaccts and other. 0 Quote Link to comment Share on other sites More sharing options...
RisesWayne Posted March 2, 2019 Author Share Posted March 2, 2019 Any help? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted March 3, 2019 Share Posted March 3, 2019 Do you want only staff to see the list? If so, would be best to use an addon and use the _output function. A custom page (additional page you refer to) would allow anyone to get access unless you did session checking and such. Once you know where to output, just get the list of servers with cpanel server modules and use the cpanel API as you mentioned to login and get the list. 0 Quote Link to comment Share on other sites More sharing options...
RisesWayne Posted March 4, 2019 Author Share Posted March 4, 2019 How do we show all users on the custom page? On 'WHMCS' you already have cpanel module. We need to use this. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted March 8, 2019 Share Posted March 8, 2019 I'm not really sure what you are trying to accomplish. Can you elaborate on this a bit with a little bit better english? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted March 8, 2019 Share Posted March 8, 2019 On 3/4/2019 at 5:54 AM, RisesWayne said: How do we show all users on the custom page? On 'WHMCS' you already have cpanel module. We need to use this. You would need to use the cpanel API to get the listing of users. If you wanted to use the built-in cpanel module, you would need to figure out what functions to call in order for it to an api call to the cpanel server. Once you have that, you call it to get the server's users and display on the page. If you are unsure about any of that, would be best to hire a developer to do it. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.