thekidscareya

Member
Aug 11, 2004
13
0
151
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.
 

fwwebs

Well-Known Member
Feb 16, 2004
328
0
166
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";
}
 
Last edited: