Zubrag.com
September 16, 2019, 06:41:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: WHM account creator: running from other scripts  (Read 7681 times)
EvilHomeR
Newbie
*
Posts: 3


« on: September 13, 2007, 08:11:55 AM »

Hi first off fantastic script

Can this script be used to auto create accounts using other software?

eg shopping cart software? So customer goes to site, places order and pays via paypal etc. Once paid and transfered back is there a way to get the script to run in background so store admin does not have to fill in form?

If it can how would it be done? what would I need to do

Thank you in advance for any help in this matter

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: September 13, 2007, 10:20:17 AM »

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.
Logged
EvilHomeR
Newbie
*
Posts: 3


« Reply #2 on: September 13, 2007, 02:34:13 PM »

so you mean after returned from gateway? eg confirmed.php page
Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #3 on: September 14, 2007, 03:53:48 AM »

yes, i would place code after payment confirmation.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC