$profile = $modx->user->getOne('Profile');

$link = "http://78.47.124.109/get_balance.php?login=" . $profile->get('fullname') . "&pass={$_SESSION['pass']}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = json_decode(curl_exec($ch),1);
curl_close($ch);
if($result)
echo $result['amount'] . ' ' . $result['currency'];
else
echo 'Нет данных';