Jump to content

How to recover config array values in a registar module?


Remitur

Recommended Posts

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...

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated