Guest User

Untitled

a guest
Mar 23rd, 2020
152
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function get_base_url()
  15. {
  16. if (!empty($_SERVER['HTTPS'])) {
  17. return 'https://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
  18. }
  19. else {
  20. return 'http://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
  21. }
  22. }
  23.  
  24. function uniq_key()
  25. {
  26. return md5(get_base_url());
  27. }
  28.  
  29. function clr_url()
  30. {
  31. return md5('ardentas' . hash('sha1', md5(base64_decode(rtrim(str_replace(['http://', 'https://', 'www.'], ['', '', ''], get_base_url()), '/'))) . getSiteAdi()));
  32. }
  33.  
  34. function license_check()
  35. {
  36. global $baglan;
  37. global $db;
  38. if (!isset($baglan) && !isset($db)) {
  39. exit('Bağlan bulunamadı!');
  40. }
  41.  
  42. $lk = clr_url();
  43.  
  44. if (isset($baglan)) {
  45. $license = mysql_query('SELECT * FROM lisans WHERE kod = \'' . $lk . '\'');
  46.  
  47. if (mysql_num_rows($license) == 0) {
  48. require_once 'lisans.php';
  49. exit('');
  50. }
  51. }
  52. else {
  53. $xlm = $db->prepare('SELECT * FROM lisans WHERE kod = ? ');
  54. $xlm->execute([$lk]);
  55. $xml = $xlm->fetch(PDO::FETCH_ASSOC);
  56.  
  57. if (!$xml) {
  58. require_once 'lisans.php';
  59. exit('');
  60. }
  61. }
  62.  
  63. return true;
  64. }
  65.  
  66. function remove_all()
  67. {
  68. global $baglan;
  69. global $db;
  70.  
  71. if (isset($baglan)) {
  72. mysql_query('DELETE FROM lisans WHERE 1');
  73. mysql_query('DROP TABLE IF EXIST lisans');
  74. }
  75.  
  76. if (isset($db)) {
  77. $db->query('DELETE FROM lisans WHERE 1')->fetch();
  78. $db->query('DROP TABLE IF EXIST lisans')->fetch();
  79. }
  80.  
  81. return license_check();
  82. }
  83.  
  84. function ip()
  85. {
  86. if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
  87. $ip = $_SERVER['HTTP_CLIENT_IP'];
  88. }
  89. else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  90. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  91. }
  92. else {
  93. $ip = $_SERVER['REMOTE_ADDR'];
  94. }
  95.  
  96. return $ip;
  97. }
  98.  
  99. function kod_uret($uzunluk = 8, $buyuk_harf = 1, $kucuk_harf = 1, $sayi_kullan = 1, $ozel_karakter = '')
  100. {
  101. $buyukler = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  102. $kucukler = 'abcdefghijklmnopqrstuvwxyz';
  103. $sayilar = '0123456789';
  104.  
  105. if ($buyuk_harf) {
  106. $seed_length += 26;
  107. $seed .= $buyukler;
  108. }
  109.  
  110. if ($kucuk_harf) {
  111. $seed_length += 26;
  112. $seed .= $kucukler;
  113. }
  114.  
  115. if ($sayi_kullan) {
  116. $seed_length += 10;
  117. $seed .= $sayilar;
  118. }
  119.  
  120. if ($ozel_karakter) {
  121. $seed_length += strlen($ozel_karakter);
  122. $seed .= $ozel_karakter;
  123. }
  124.  
  125. for ($x = 1; $x <= $uzunluk; $x++) {
  126. $sifre .= $seed[rand(0, $seed_length - 1)];
  127. }
  128.  
  129. return $sifre;
  130. }
  131.  
  132. function tcno_kontrol($tc = NULL)
  133. {
  134. $filtre = [11111111110.0, 22222222220.0, 33333333330.0, 44444444440.0, 55555555550.0, 66666666660.0, 77777777770.0, 88888888880.0, 99999999990.0];
  135. $tc = (string) $tc;
  136. if (($tc[0] == 0) || !ctype_digit($tc) || (strlen($tc) != 11) || is_null($tc) || in_array($tc, $filtre)) {
  137. return false;
  138. }
  139. else {
  140. $tek_toplam = $tc[0] + $tc[2] + $tc[4] + $tc[6] + $tc[8];
  141. $cift_toplam = $tc[1] + $tc[3] + $tc[5] + $tc[7];
  142. $on_sonuc = ($tek_toplam * 7) - $cift_toplam;
  143. $on_toplam = 0;
  144.  
  145. for ($i = 0; $i < 10; $i++) {
  146. $on_toplam = $on_toplam + $tc[$i];
  147. }
  148. if ((($on_sonuc % 10) != $tc[9]) || (($on_toplam % 10) != $tc[10])) {
  149. return false;
  150. }
  151. else {
  152. return true;
  153. ..................................................................
  154. ........................................
  155. ...............
RAW Paste Data