Файл: apit.php
Строк: 27
<?php
$db= file_get_contents('http://naringe.ru/system/connect.php');
$json_string = file_get_contents('http://naringe.ru/api.php?method=getuser&userid=1');
$json = json_decode($json_string, true);
echo 'ID: '.$json['id'].' <br/>';
echo 'ppp: '.$json['password'].' <br/>';
echo 'Ник: '.$json['nick'].' <br/>';
echo 'password: '.$user['password'].' <br/>';
echo 'Уровень: '.$json['level'].' <br/>';
echo 'Здоровье: '.$json['parameters'][0]['health'].' <br/>';
echo 'Сила: '.$json['parameters'][0]['power'].' <br/>';
echo 'Защита: '.$json['parameters'][0]['protection'].' <br/>';
echo 'Ловкость: '.$json['parameters'][0]['agility'].' <br/>';
?>