Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>CSGO</title>
- </head>
- <body>
- <form method="post" action="csgo.php">
- <input type="text" placeholder="id" name="id">
- <input type="submit" value="Envoyer" name="send">
- </form>
- <?php
- if (isset($_POST['send']))
- {
- if (isset($_POST['id']))
- {
- $destUrl = 'http://steamcommunity.com/profiles/' . $_POST['id'] . '/inventory/json/730/2/';
- $context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
- $data = file_get_contents($destUrl, false, $context);
- $data = json_decode($data, true);
- foreach ($data['rgInventory'] as $item) {
- echo $item['id'];
- }
- }
- else
- {
- echo 'Please enter your SteamID';
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement