SHARE
TWEET

Untitled

a guest Jan 12th, 2017 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_hook('ClientAreaRegister', 1, function($vars) {
  2.     $command = "addcredit";
  3.     $adminuser = "admin";
  4.     $values["clientid"] = $vars['userid];
  5.     $values["description"] = "Adding credits via ClientAreaRegister hook";
  6.     $values["amount"] = "40.00";
  7.  
  8.     $results = localAPI($command,$values,$adminuser);
  9. });
RAW Paste Data
Top