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.

Create account under existing reseller through accounting module?

Discussion in 'General Discussion' started by qlites, Dec 19, 2003.

  1. qlites

    qlites Member

    Joined:
    Oct 13, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to pass the reseller username using the createacct function? I want to be able to use the createacct function to create an account under a specified reseller.

    Thanks.
     
  2. drunkn_munky

    drunkn_munky Member

    Joined:
    Jan 31, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    it should be pretty easy to do that. If you are using a form to define the values then you would have to define the reseller username use the if statement to define the access code.

    So something like:
    PHP:
    if (($user=="<RESELLER'S USERNAME HERE>")){
    $accesshash "<RESELLER'S REMOTE ACCESS CODE HERE>";}
    elseif ((
    $user=="<ANOTHER RESELLER'S USERNAME HERE>")){
    $accesshash "<OTHER RESELLER'S REMOTE ACCESS CODE HERE>";}
    ...etc. Thats just off the top of my head so it may not be 100% what you need but it will do the job simply but efficiantly. If you need help then just pm or email me:D

    Thanks
    Lewis
     
Loading...

Share This Page