getagentdata.php 399 B

123456789101112131415
  1. <?php
  2. //associated agent data
  3. if (ubRouting::get('action') == 'getagentdata') {
  4. if (ubRouting::checkGet('param')) {
  5. $userLogin = ubRouting::get('param');
  6. $gr=new GRes();
  7. $agentData=$gr->getUserAssignedAgentData($userLogin);
  8. header('Content-Type: application/json');
  9. die(json_encode($agentData));
  10. } else {
  11. die('ERROR:NO_LOGIN_PARAM');
  12. }
  13. }