I am working on a custom plugin for cPanel and need to retrieve the doc root based on the domain selected in a dropdown list.
After looking through the source of the cPanel core files, I found out how it is done in the File Manager popup:
I have got it to work using javascript, but I would like to use the same call using <?cp ?> tags for better compatibility.Code:cpanel_api2(docrootcallback,'DomainLookup','getdocroot','domain',domain);
I tried the following to no avail:
I can't find this module or function in the API docs so I don't really know the name of the return variable.Code:<?cp DomainLookup::getdocroot(%,domain) domain='mydomain' ?>
Does anyone have a clue how to accomplish this? Also, I find the API docs very limited. Seems like a lot of functions are missing?!



LinkBack URL
About LinkBacks
Reply With Quote




