function xmlrpc_whois($method_name, $params) { $type = $params[0]; if (isset($type) && $type == 'plans') { $who = Planworld::getAllUsersWithPlans(); } else { $who = Planworld::getAllUsers(); } return $who; }