Advertisement
Guest User

Untitled

a guest
Jul 25th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. function MyAwesomeReseller_CreateAccount($params) {
  2.  
  3. # ** The variables listed below are passed into all module functions **
  4.  
  5. $serviceid = $params["serviceid"]; # Unique ID of the product/service in the WHMCS Database
  6. $pid = $params["pid"]; # Product/Service ID
  7. $producttype = $params["producttype"]; # Product Type: hostingaccount, reselleraccount, server or other
  8. $domain = $params["domain"];
  9. $username = $params["username"];
  10. $password = $params["password"];
  11. $clientsdetails = $params["clientsdetails"]; # Array of clients details - firstname, lastname, email, country, etc...
  12. $customfields = $params["customfields"]; # Array of custom field values for the product
  13. $configoptions = $params["configoptions"]; # Array of configurable option values for the product
  14.  
  15. # Product module option settings from ConfigOptions array above
  16. $configoption1 = $params["configoption1"];
  17. $configoption2 = $params["configoption2"];
  18. $configoption3 = $params["configoption3"];
  19. $configoption4 = $params["configoption4"];
  20.  
  21. # Additional variables if the product/service is linked to a server
  22. $server = $params["server"]; # True if linked to a server
  23. $serverid = $params["serverid"];
  24. $serverip = $params["serverip"];
  25. $serverusername = $params["serverusername"];
  26. $serverpassword = $params["serverpassword"];
  27. $serveraccesshash = $params["serveraccesshash"];
  28. $serversecure = $params["serversecure"]; # If set, SSL Mode is enabled in the server config
  29.  
  30. # Code to perform action goes here...
  31.  
  32.  
  33.  
  34. if ($successful) {
  35. $result = "success";
  36. } else {
  37. $result = "Error";
  38. }
  39. return $result;
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement