Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- $api = "AQUI LA API DE STEAM"; <!-- Puedes obtener la api de steam en la siguiente url: https://steamcommunity.com/dev-->
- $usuario = $_GET["usuario"];
- $page= file_get_contents("https://steamcommunity.com/id/$usuario");
- $steamID64 = explode ('"Profile_', $page);
- $steamID64 = explode ('"', $steamID64[1]);
- $context = stream_context_create($opts);
- $file = file_get_contents("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=$api&steamids=$steamID64[0]", false, $context);
- $steamID64 = $_GET["steamID64"];
- $file1 = file_get_contents("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=$api&steamids=$steamID64", false, $context);
- $image_data = json_decode($file, true);
- $image_data1 = json_decode($file, true);
- $estado = json_decode($file, true);
- $estado1 = json_decode($file1, true);
- $steamID = json_decode($file, true);
- $steamID1 = json_decode($file1, true);
- $steamCreado = json_decode($file, true);
- $steamCreado1 = json_decode($file1, true);
- $estadoPerfil = json_decode($file, true);
- $estadoPerfil1 = json_decode($file1, true);
- $estaJugando = json_decode($file, true);
- $estaJugando1 = json_decode($file1, true);
- $nombrereal = json_decode($file, true);
- $nombrereal1 = json_decode($file1, true);
- $nombre = json_decode($file, true);
- $nombre1 = json_decode($file1, true);
- $avatarfull = json_decode($file, true);
- $avatarfull1 = json_decode($file1, true);
- {
- }
- ?>
- Estado Steam: <?php
- $texto = $estado['response']['players'][0]['personastate'];
- $texto = preg_replace('(0)', '<font color="red">Desconectado</font>', $texto);
- $texto = preg_replace('(1)', '<font color="green">Conectado</font>', $texto);
- $texto = preg_replace('(3)', '<font color="orange">Ausente</font>', $texto);
- echo $texto;
- $texto1 = $estado1['response']['players'][0]['personastate'];
- $texto1 = preg_replace('(0)', '<font color="red">Desconectado</font>', $texto1);
- $texto1 = preg_replace('(1)', '<font color="green">Conectado</font>', $texto1);
- $texto1 = preg_replace('(3)', '<font color="orange">Ausente</font>', $texto1);
- echo $texto1;
- echo"<br>";
- ?>
- Creado en: <?php
- echo date('m/d/Y H:i:s', $steamCreado['response']['players'][0]['timecreated']. $steamCreado1['response']['players'][0]['timecreated']);
- echo"<br>";
- ?>
- Steam ID: <?php echo $steamID['response']['players'][0]['steamid']. $steamID1['response']['players'][0]['steamid']?>
- <br>
- Estado del perfil: <?php
- $texto = $estadoPerfil['response']['players'][0]['communityvisibilitystate'];
- $texto = preg_replace('(3)', 'Publico', $texto);
- $texto = preg_replace('(2)', 'Privado', $texto);
- echo $texto;
- $texto1 = $estadoPerfil1['response']['players'][0]['communityvisibilitystate'];
- $texto1 = preg_replace('(3)', 'Publico', $texto1);
- $texto1 = preg_replace('(2)', 'Privado', $texto1);
- echo $texto1;
- ?>
- <br>
- Esta Jugando: <?php echo $estaJugando['response']['players'][0]['gameextrainfo']; ?><?php echo $estaJugando1['response']['players'][0]['gameextrainfo']; ?>
- <br>
- Nombre real: <?php echo $nombrereal['response']['players'][0]['realname'];?><?php echo $nombrereal1['response']['players'][0]['realname'];?>
- <br>
- Nombre: <?php echo $nombre['response']['players'][0]['personaname'];?><?php echo $nombre1['response']['players'][0]['personaname'];?>
- <br>
- Avatar: <?php echo $avatarfull['response']['players'][0]['avatarfull'];?><?php echo $nombre1['response']['players'][0]['avatarfull'];?>
Add Comment
Please, Sign In to add comment