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.

auto acct creation script

Discussion in 'General Discussion' started by thekidscareya, Oct 21, 2004.

  1. thekidscareya

    thekidscareya Member

    Joined:
    Aug 11, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Does anybody know how to create an account using the following variables?

    $user = username
    $pass = password
    $domain = domain
    $email = email address

    ...and then email the account details to $email?

    I want it to create the account with out showing any of the cpanel pages (eg. Accounting.inc)

    How would I do that?

    Thanks for your help in advance.
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    16
    Something like this should work. You'd just need to use the email function to send the variables.
    PHP:
    $result whmreq($request2,$host,$ownername,$reseller_hash,$usessl);

    $display strip_tags($result);
      if (
    strpos($display"creation") !== false && strpos($display"finished") !== false) {
    print 
    "Account $acctuser has been created";
    }
     
    #2 fwwebs, Oct 22, 2004
    Last edited: Oct 22, 2004
Loading...

Share This Page