Advertisement
Guest User

Untitled

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