Advertisement
Sha6h

Bin Check

Apr 28th, 2015 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.75 KB | None | 0 0
  1. <html>
  2. <!-- This Script Made by
  3.      _ ____  
  4.   __| |  _ \
  5.  / _` | |_) |
  6. | (_| |  _ <
  7.  \__,_|_| \_\
  8.              
  9.  -->
  10. <!-- Facebook  ( https://www.Facebook.com/Dr.5HA6H )  Like Me :)  -->
  11. <!-- Twitter   (  https://www.twitter.com/DrSHA67  ) Follow Me :) -->
  12.  
  13.     <head>
  14.         <title>Bin Check</title>
  15.         <style>
  16.  
  17.         table {
  18.         border-collapse:collapse;
  19.         }
  20.         table,th, td
  21.         {
  22.         border: 1px solid black;
  23.         }
  24.         input {
  25.         border: 1px solid black;
  26.         }
  27.         body {
  28.             background-color: #000000;
  29.         }
  30.  
  31.         h1 {
  32.             color: orange;
  33.             text-align: center;
  34.         }
  35.  
  36.         p {
  37.             font-family: "Times New Roman";
  38.             font-size: 20px;
  39.         }
  40.         input:required {
  41.             background-color: #C0C0C0;
  42.         }
  43. </style>
  44.     </head>
  45. <body>
  46. <pre>
  47. <center>
  48. <body bgcolor="black">
  49. <font color='Red'>
  50. d8888b. d888888b d8b   db         .o88b. db   db d88888b  .o88b. db   dD
  51. 88  `8D   `88'   888o  88        d8P  Y8 88   88 88'     d8P  Y8 88 ,8P'
  52. 88oooY'    88    88V8o 88        8P      88ooo88 88ooooo 8P      88,8P  
  53. 88~~~b.    88    88 V8o88 C8888D 8b      88~~~88 88~~~~~ 8b      88`8b  
  54. 88   8D   .88.   88  V888        Y8b  d8 88   88 88.     Y8b  d8 88 `88.
  55. Y8888P' Y888888P VP   V8P         `Y88P' YP   YP Y88888P  `Y88P' YP   YD
  56.                                                    
  57. </pre>
  58. <br />
  59. </font>
  60. </center>
  61.  
  62. <form method="POST" action="#">
  63.  
  64.     <p align="center">
  65.     <input type="text" name="bin" maxlength="6" size="49" required>
  66.     <input type="submit" value="Search" name="submit">
  67.     </p>
  68.    
  69. </form>
  70.  
  71. <?php
  72.  
  73. if($_POST['submit']){
  74.    
  75.    
  76.        
  77.         $bin=$_POST['bin'];
  78.         $bin=strtolower($bin);
  79.         if ($bin == null) {
  80.         echo " <p align=\"center\"><font face=\"Trebuchet MS\" size=\"4\" color=\"#800000\"><b>BIN Not Found !!!!</b></font></p>\n";
  81. }
  82.  
  83. else{
  84.  
  85.     if ($bin == 000000) {
  86.     echo " <p align=\"center\"><font face=\"Trebuchet MS\" size=\"4\" color=\"#800000\"><b>BIN Not Found !!!!</b></font></p>\n";
  87.     }
  88.     else {
  89.  
  90. $url = "http://www.binlist.net/json/";
  91. $json = file_get_contents($url.$bin);
  92. $json_data = json_decode($json, true);
  93.  
  94. }
  95. }
  96. ?>
  97.  
  98. <div align="center">
  99.     <table border="0" width="19%">
  100.     <tr>
  101.         <td width="117">
  102.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Pin Number </font></b></td>
  103.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["bin"]; ?></b></font></td>
  104.     </tr>
  105.     <tr>
  106.         <td width="117">
  107.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Brand</font></b></td>
  108.         <td><font  face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["brand"]; ?></b></font></td>
  109.     </tr>
  110.     <tr>
  111.         <td width="117">
  112.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Sub Brand</font></b></td>
  113.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["sub_brand"]; ?></b></font></td>
  114.     </tr>
  115.     <tr>
  116.         <td width="117">
  117.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Country Code</font></b></td>
  118.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["country_code"]; ?></b></font></td>
  119.     </tr>
  120.     <tr>
  121.         <td width="117">
  122.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Country Name</font></b></td>
  123.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["country_name"]; ?></b></font></td>
  124.     </tr>
  125.     <tr>
  126.         <td width="117">
  127.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Bank Name</font></b></td>
  128.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["bank"]; ?></b></font></td>
  129.     </tr>
  130.     <tr>
  131.         <td width="117">
  132.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Card Type</font></b></td>
  133.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["card_type"]; ?></b></font></td>
  134.     </tr>
  135.     <tr>
  136.         <td width="117">
  137.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Card Category</font></b></td>
  138.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["card_category"]; ?></b></font></td>
  139.     </tr>
  140.     <tr>
  141.         <td width="117">
  142.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Latitude</font></b></td>
  143.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["latitude"]; ?></b></font></td>
  144.     </tr>
  145.     <tr>
  146.         <td width="117">
  147.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Longitude</font></b></td>
  148.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["longitude"]; ?></b></font></td>
  149.     </tr>
  150.     <tr>
  151.         <td width="117">
  152.         <p><b><font color="#FF0000" face="Trebuchet MS" size="2">Query Time</font></b></td>
  153.         <td><font face="Trebuchet MS" color="#008000" size="2"><b><?php echo $json_data["query_time"]; ?></b></font></td>
  154.     </tr>
  155. </table>
  156. <?php } ?>
  157. </div>
  158.  
  159. </body>
  160. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement