Advertisement
irokemr

api skin minecraft php

Dec 21st, 2019
2,719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. $context = stream_context_create($opts);
  5.  
  6.  
  7. $skin = $_GET['skin'];
  8. $file = file_get_contents("https://todocodigos.000webhostapp.com/mc/minecraft.php?skin=$skin", false, $context);
  9.  
  10.  
  11.  
  12.  
  13. $image_data = json_decode($file, true);
  14. $twitch = json_decode($file, true);
  15.  
  16.  
  17. $news = json_decode($news, true);
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ?>  
  26.  
  27.  
  28.  
  29. <?php  for ($i = 0; $i < count($image_data['SkinMinecraft']); $i ++) {
  30.    
  31.  
  32.  
  33. ?>
  34.  
  35.    
  36.  
  37.  
  38.  
  39.    
  40.  
  41.  
  42.  
  43.  
  44.  
  45.    
  46.  
  47.        <br>
  48.      <b>Skin Minecraft</b> =>  <?php echo $twitch['SkinMinecraft'];  ?>
  49.      <br>
  50.    
  51.      
  52. <?php }?>
  53. <br>
  54.  <br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement