Remitur Posted December 27, 2020 Share Posted December 27, 2020 Problem: I have a registrar module few configuration variables are defined in _getConfigArray (not only username and password, but also other variables required by the Registrar) If I'm using the standard WHMCS functions (RegisterDomain, TransferDomain etc.) I can easily recovere these values as $params But what if I'm going to define into my module a custom function, as i.e. myregistrarmodule_GetCredit() ? How can I recover inside this custom function the values of the array $params? Other "standard" functions are called by WHMCS's functions, and are these function that recover $params and pass it to the functions... but in a custom function, or in a hook? NOTE: it's not possible to recover required values from db, as it's possible for other kind of modules, because there values are stored in the db in an encrypted form... 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted December 27, 2020 Share Posted December 27, 2020 Just change the "grepp" to your registrar modules name. You could get them via the database directly and pass the passwords to the DecryptPassword API to get them unencrypted. 2 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.