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.

reseller create

Discussion in 'General Discussion' started by prixone, Mar 4, 2004.

  1. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hi, i want to know if exist an way as root to create an reseller account.

    I know that i can create the account with a perl script, but i don´t found any doc or help about upgrade the account into a reseller.

    Sorry my english.

    Any can help me ?

    urgent.
    thx
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Simple.

    In WHM - Reseller Center - Add Reseller Priviledges, toggle to the correct user and click OK.

    Then, you can edit their priviledges as you like.
     
  3. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    du

    not simple, this i know i want to do this whit a script not into whm ...

    please read the question =/
    I want something like that to upgrade a domain into a reseller domain.
     
  4. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    no 1 know ?

    no 1 know about this ??

    please urgent
     
  5. Michael-MS

    Michael-MS Well-Known Member

    Joined:
    Apr 16, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
  6. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    ty

    sry but dont have what i want in this post that u tell me...

    I dont want to create accout or package i want to upgrade a account into a reseller one.

    Using a script in perl or php, that s what i want to do.

    but im already done it... ty
     
  7. Michael-MS

    Michael-MS Well-Known Member

    Joined:
    Apr 16, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    Re: ty

    The instructions applied to any function in WHM. The create package was only an example. :)

    Michael
     
  8. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    no way

    so if u so sure about this..

    do a code in perl to upgrade a simply account into a reseller account and post it here.

    U cant make =D

    i try it.
     
  9. Michael-MS

    Michael-MS Well-Known Member

    Joined:
    Apr 16, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    i work in php, not perl.. here's the code:

    PHP:
    $request2 "/scripts/addres?res=$username";
    $result2 whmreq($request2,$host,"root",$accesshash,$usessl);

    $request3 "/scripts2/editressv?resnumlimit=1&resnumlimitamt=$maxaccts&resreslimit=1&rslimit-disk=$maxspace&rsolimit-disk=1&rslimit-bw=$maxtransfer&rsolimit-bw=1&acllist=%28none%29&res=$username&acl-edit-pkg=1&acl-create-acct=1&acl-suspend-acct=1&acl-kill-acct=1&acl-upgrade-account=1&acl-create-dns=1&acl-add-pkg=1&acl-allow-parkedcreate=1&acl-kill-dns=1&acl-frontpage=1&acl-mod-subdomains=1&acl-list-accts=1&acl-news=1&acl-park-dns=1&acl-passwd=1&acl-quota=1&acl-show-bandwidth=1&acl-stats=1&acl-status=1&saveacl=&acllistsv=%28none%29&ns1=&ns2=&ns3=&ns4=";
    $result3 whmreq($request3,$host,"root",$accesshash,$usessl);

    $request4 "/scripts/dochangeowner?user=$username&owner=$username";
    $result4 whmreq($request4,$host,"root",$accesshash,$usessl);
    This is customized for my account setup script so you would want to go over the options and stuff. ;)

    Basically, Request2 gives reseller priveleges to the new username, Request3 sets up the reseller's settings, and finally Request4 gives the username ownership of their own account.

    Michael
     
Loading...

Share This Page