Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. $po_terms = array('00' => 'Credit Card', '30' => 'Net 30', '60' => 'Net 60');
  15. function card_number_fix($ccno, $numeric = true)
  16. {
  17. $ccnew = '';
  18. $len = strlen($ccno);
  19. $c = 0;
  20.  
  21. while ($c < $len) {
  22. $cc = $ccno[$c];
  23. $chr = ord($cc);
  24.  
  25. if (48 <= $chr && $chr <= 57) {
  26. $ccnew .= $cc;
  27. }
  28.  
  29. if (!$numeric) {
  30. if ($chr == 45) {
  31. $ccnew .= $cc;
  32. }
  33.  
  34. if (65 <= $chr && $chr <= 90) {
  35. $ccnew .= $cc;
  36. }
  37.  
  38. if (97 <= $chr && $chr <= 122) {
  39. $ccnew .= strtoupper($cc);
  40. }
  41. }
  42.  
  43. $c++;
  44. }
  45.  
  46. return $ccnew;
  47. }
  48.  
  49. function ccencrypt($ccno, $which = 'T')
  50. {
  51. if (empty($ccno)) {
  52. return '';
  53. }
  54.  
  55. $first = strtoupper(substr($ccno, 0, 1));
  56.  
  57. if ($first == 'C' || $first == 'P') {
  58. return card_number_fix($ccno, false);
  59. }
  60.  
  61. if ($first == 'E' || $first == 'T') {
  62. $ccno = ccdecrypt($ccno);
  63. }
  64.  
  65. $ccno = card_number_fix($ccno);
  66. ......................................................................
  67. ........................................
  68. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement