Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://www.cardbinlist.com/search.html?bin=
- $ccno = str_replace(' ', '', $ccno);
- $binq = str_replace(' ', '', $_POST['ccno']);
- $binq = substr($binq, 0, 6);
- $bins = file_get_contents("https://www.cardbinlist.com/search.html?bin=$binq");
- $bin = preg_match_all("/headline\":\"(.*)\",\"datePublished/xs", $bins, $binn) ? $binn[1][0] : null;
- $bin2 = preg_match_all("/caption\":\"BIN(.*)\",\"width\":\"600\",\"height\":\"400\"}}<\/script>/xs", $bins, $binn2) ? $binn2[1][0] : null;
- $bin3 = explode(" ",$bin);
- $bin4 = explode(" ",$bin2);
- $ccbrand = strtoupper($bin3[2]);
- $ccbank = $bin3[5].' '.$bin3[6].' '.$bin3[7];
- $cctype = strtoupper($bin4[3]);
- $ccklas = strtoupper($bin3[3]);
Add Comment
Please, Sign In to add comment