WHM Account Creator script can also be run from another PHP script. This may be helpful if you have some user interface already in place and want to automatically create WHM accounts from there.
In this case you have to setup following variables instead of passing them as parameters:
- $user_domain - new account domain
- $user_name - new account username
- $user_pass - new account password
- $user_plan - new account hosting package (plan)
- $user_email - contact email
For example you add following php code to your shopping cart software, after payment made:
$user_domain =
domain;
$user_name =
username;
$user_pass =
password;
$user_plan =
package;
$user_email =
contact email;
include('create-whm-account.php');
Values in bold have to taken from your shopping cart software.