Advertisement
MrLogin404

[PHP] Mass Bin Identifier

Dec 20th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <form name="data" method="post">
  2. <textarea name="res7ock" style="height:100px;width:250px"></textarea><br><br>
  3. <input type="submit" name='res' value="HAJAR!!!">
  4. </form>
  5. </center>
  6. <?php
  7. #code by res7ock
  8. $ya=$_POST['res'];
  9. $co=$_POST['res7ock'];
  10.  
  11. if($ya){
  12. $e=explode("\r\n",$co);
  13. foreach($e as $ceceh){
  14.  
  15. //JSON di ambil dari binlist.net
  16. $infobank = "http://www.binlist.net/json/".$ceceh;
  17. $hasil = file_get_contents("$infobank");
  18. $cetakhasil = json_decode($hasil);
  19. $bins = $cetakhasil->bin;
  20. $brand = $cetakhasil->brand;
  21. $cardtype = $cetakhasil->card_type;
  22. $subbrand = $cetakhasil->sub_brand;
  23. $bank = $cetakhasil->bank;
  24. $countryn = $cetakhasil->country_name;
  25. $countryc = $cetakhasil->country_code;
  26.  
  27. // tampilan setelah di cetak
  28. echo"<pre>
  29. <font size=4>
  30. =======================================
  31. Bin : $bins
  32. Type: $brand $cardtype
  33. Bank: $bank
  34. Brand: $subbrand
  35. Country:$countryn [ $countryc ]
  36. =======================================
  37. </pre>";
  38.  
  39.  
  40. }}
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement