The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Passing custom variables

Discussion in 'General Discussion' started by LinuxFreaky, Oct 12, 2010.

  1. LinuxFreaky

    LinuxFreaky Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Anyone know how to pass variables from WHMCS to WHM? I noticed that it isn't allowed, and currently the way I'm making it work is storing custom variables in a database, and then have postwwwacct check the database for custom variables.
     
    #1 LinuxFreaky, Oct 12, 2010
    Last edited: Oct 12, 2010
  2. LinuxFreaky

    LinuxFreaky Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Let me clarify. What I am looking to do is pass custom variables from WHMCS to WHM/Cpanel. So what I'm doing is storing the username in a database, along with its associated variables.

    Then, when the cpanel account creation occurs, I have a postwwwacct hook in there to check the database against this account username. Once it finds it, the script grabs the variables associated with this username, and then does whatever it needs to after that.

    Is this the best way to do this, or is there a better way to do it?
     
    #2 LinuxFreaky, Oct 12, 2010
    Last edited: Oct 12, 2010
Loading...

Share This Page