Advertisement
Guest User

Untitled

a guest
Dec 7th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.70 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function lisans_kontrol()
  15. {
  16. $domain = domain();
  17. $site = getenv('HTTP_HOST');
  18. if (($site != 'localhost') && !strstr($site, 'limontasarim.com') && !strstr($site, 'limontasarim.net')) {
  19. if (file_exists(ROOT_DIR . '/lisans.php')) {
  20. require ROOT_DIR . '/lisans.php';
  21. }
  22.  
  23. if (substr($site, 0, 4) == 'www.') {
  24. $site = substr($site, 4);
  25. }
  26.  
  27. $bol = explode('.', $site);
  28. $say = count($bol);
  29.  
  30. if ($say == '2') {
  31. $uzanti = $bol[1];
  32. }
  33. else if ('2' < $say) {
  34. $son = $bol[$say - 1];
  35. if (($son == 'tr') || ($son == 'uk')) {
  36. $uzanti = $bol[$say - 2] . '.' . $bol[$say - 1];
  37. }
  38. else {
  39. $uzanti = $bol[$say - 1];
  40. }
  41. }
  42. else {
  43. $uzanti = NULL;
  44. }
  45.  
  46. $uzanti_ayir = explode('.' . $uzanti, $site);
  47. $uzanti_haric = $uzanti_ayir[0];
  48. $subdomain_kontrol = substr_count($uzanti_haric, '.');
  49.  
  50. if ($subdomain_kontrol == 0) {
  51. $site = $uzanti_haric . '.' . $uzanti;
  52. }
  53. else {
  54. $subdomain_hazirlik = explode('.', $uzanti_haric);
  55. $site = $subdomain_hazirlik[1] . '.' . $uzanti;
  56. }
  57.  
  58. $date = date('d/m/Y');
  59. $kontrol = wordwrap(strtoupper(sha1(sha1(md5(sha1(md5($site) . crypt($uzanti_haric, 'lt')) . crypt(md5($uzanti), substr($site, 0, 2))) . sha1(md5($date) . md5(substr($site, -1)))) . crypt($date, 'ls') . sha1(md5($subdomain_kontrol)))), 5, '-', true);
  60.  
  61. if (@$lisans != $kontrol) {
  62. $versiyon = ayar('versiyon');
  63. $token = api_token();
  64. @$sorgula = curl_get_contents('https://www.limontasarim.com/api/v1/lisans.php?domain=' . $domain . '&versiyon=' . $versiyon . '&token=' . $token . '&fonksiyon=lisans_kontrol&tip=lisans_sorgu');
  65. $l_array = json_decode($sorgula, true);
  66. $lisans_sonuc = $l_array['lisans'];
  67.  
  68. if (!isset($lisans_sonuc)) {
  69. $lisans_sonuc = 1;
  70. }
  71.  
  72. if ($lisans_sonuc != 1) {
  73. $cevap = $l_array['cevap'];
  74. exit($cevap);
  75. }
  76. else {
  77. $dosya_adi = ROOT_DIR . '/lisans.php';
  78. ($olustur = fopen($dosya_adi, 'w')) || exit('Yazma izni hatasi. Lutfen ana dizinde lisans.php dosyasi olusturun.');
  79. $metin = '<?php' . "\n" . '/*' . "\n" . 'Limon Tasarım - Web Tasarım ve Yazılım Çözümleri' . "\n" . 'info@limontasarim.com' . "\n" . 'http://www.limontasarim.com' . "\n" . '*/' . "\n" . '$lisans="' . $kontrol . '";' . "\n" . '?>';
  80. fwrite($olustur, $metin);
  81. fclose($olustur);
  82. }
  83. if (($lisans_sonuc == 1) && is_object(json_decode($sorgula))) {
  84. $tarih_saat = tarih_saat();
  85. ayar_guncelle('limonsoft', $sorgula);
  86. ayar_guncelle('limonsoft_kontrol', $tarih_saat);
  87. }
  88. }
  89. else {
  90. limonsoft_sorgula();
  91. }
  92. }
  93. else if (!strstr($site, 'limontasarim.com')) {
  94. limonsoft_sorgula();
  95. }
  96. }
  97.  
  98. function limonsoft_sorgula($zorlu = NULL, $tip = NULL)
  99. {
  100. if (!$zorlu) {
  101. $zorlu = false;
  102. }
  103.  
  104. if (!$tip) {
  105. $tip = 'lisans_sorgu';
  106. }
  107.  
  108. $limonsoft_kontrol_dk = 1440;
  109. if ((($limonsoft_kontrol_dk <= kac_dk_gecti(ayar('limonsoft_kontrol'))) || $zorlu) && ayar('site_url')) {
  110. $domain = domain();
  111. $versiyon = ayar('versiyon');
  112. $token = api_token();
  113. $sorgula = curl_get_contents('https://www.limontasarim.com/api/v1/lisans.php?domain=' . $domain . '&versiyon=' . $versiyon . '&token=' . $token . '&fonksiyon=limonsoft_sorgula&tip=' . $tip);
  114. $l_array = json_decode($sorgula, true);
  115. $lisans_sonuc = $l_array['lisans'];
  116.  
  117. if ($lisans_sonuc == 1) {
  118. if (is_object(json_decode($sorgula))) {
  119. $tarih_saat = tarih_saat();
  120. ayar_guncelle('limonsoft', $sorgula);
  121. ayar_guncelle('limonsoft_kontrol', $tarih_saat);
  122. }
  123. }
  124. }
  125. }
  126.  
  127. function limonsoft()
  128. {
  129. global $limonsoft_array;
  130. global $limonsoft_lisans;
  131. global $limonsoft_lisans_bitis_tarih_saat;
  132. global $limonsoft_garanti;
  133. global $limonsoft_garanti_bitis_tarih_saat;
  134. global $limonsoft_bayi;
  135. global $limonsoft_guncel_versiyon;
  136. global $limonsoft_son_guncelleme;
  137. global $limonsoft_remove_copyright;
  138. @$limonsoft_json = ayar(__FUNCTION__);
  139.  
  140. if (is_object(json_decode($limonsoft_json))) {
  141. $limonsoft_array = json_decode($limonsoft_json, true);
  142. $limonsoft_lisans = $limonsoft_array['lisans'];
  143. @$limonsoft_lisans_bitis_tarih_saat = $limonsoft_array['lisans_bitis_tarih_saat'];
  144. @$limonsoft_garanti = $limonsoft_array['garanti'];
  145. @$limonsoft_garanti_bitis_tarih_saat = $limonsoft_array['garanti_bitis_tarih_saat'];
  146. @$limonsoft_bayi = $limonsoft_array['bayi'];
  147. @$limonsoft_guncel_versiyon = $limonsoft_array['versiyon'];
  148. @$limonsoft_son_guncelleme = $limonsoft_array['son_guncelleme'];
  149. @$limonsoft_remove_copyright = $limonsoft_array['remove_copyright'];
  150. }
  151.  
  152. global $admin_dizini;
  153. $api_token = api_token();
  154.  
  155. if (browser_url() == site_url() . ('/?lisans_kontrol&token=' . $api_token)) {
  156. limonsoft_sorgula(true, 'ping');
  157.  
  158. if (ref_url()) {
  159. yonlendir(ref_url());
  160. }
  161. else {
  162. yonlendir(site_url());
  163. }
  164. }
  165.  
  166. if (browser_url() == site_url() . '/?copyright_check') {
  167. exit('Telif Hakkı<br />Limon Tasarım - Web Tasarım ve Yazılım Çözümleri<br />info@limontasarim.com<br /><a href=\'https://www.limontasarim.com\'>https://www.limontasarim.com</a>');
  168. exit();
  169. }
  170.  
  171. if (strstr(browser_url(), '/' . $admin_dizini . '/')) {
  172. if ($limonsoft_lisans_bitis_tarih_saat) {
  173. $lisans_kalan_gun = kac_gun_kaldi($limonsoft_lisans_bitis_tarih_saat);
  174. $lisans_iptal_tarihi = tarih_saat_hesapla('+15 days', $limonsoft_lisans_bitis_tarih_saat);
  175. $api_token = api_token();
  176. $lisans_kontrol = site_url() . ('/?lisans_kontrol&token=' . $api_token);
  177.  
  178. if ($lisans_kalan_gun < 0) {
  179. exit('Yazılım lisans süreniz <strong>' . $lisans_bitis_tarih_saat . '</strong> tarihinde sona ermiştir.<br />' . "\n" . 'Lisans süreniz sona erdiği için yönetim panelinizi kullanamıyorsunuz.<br />' . "\n" . 'Lisans sürenizi uzatmak için <a href=\'https://www.limontasarim.com\' target=\'_blank\'>buraya</a> tıklayarak üye girişi yapınız ve Müşteri Paneli / Lisanslarım sayfasından süre uzatma işlemi gerçekleştiriniz.<br /><br />' . "\n" . 'Uyarı: <strong>' . $lisans_iptal_tarihi . '</strong> tarihine kadar ödeme yapılmaması durumunda lisansınız iptal edilecek ve web sitenize erişim tamamen durdurulacaktır.<br /><br />' . "\n" . 'Not: Ödeme yaptığınız halde bu ekranı görüyorsanız lütfen <a href=\'' . $lisans_kontrol . '\'>buraya</a> tıklayınız.' . "\n");
  180. }
  181. }
  182. }
  183. }
  184.  
  185. function kac_gun_kaldi($tarih_saat)
  186. {
  187. return round((strtotime($tarih_saat) - time()) / 60 / 60 / 24);
  188. .......................................................................
  189. ...........................................
  190. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement