Guest User

Untitled

a guest
Sep 17th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.09 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. function domain($domain = NULL)
  191. {
  192. if (!$domain) {
  193. $domain = getenv('HTTP_HOST');
  194. }
  195.  
  196. if ($domain != 'localhost') {
  197. if (substr($domain, 0, 4) == 'www.') {
  198. $domain = substr($domain, 4);
  199. }
  200.  
  201. $bol = explode('.', $domain);
  202. $say = count($bol);
  203.  
  204. if ($say == '2') {
  205. $uzanti = $bol[1];
  206. }
  207. else if ('2' < $say) {
  208. $son = $bol[$say - 1];
  209. if (($son == 'tr') || ($son == 'uk')) {
  210. $uzanti = $bol[$say - 2] . '.' . $bol[$say - 1];
  211. }
  212. else {
  213. $uzanti = $bol[$say - 1];
  214. }
  215. }
  216.  
  217. $uzanti_ayir = explode('.' . $uzanti, $domain);
  218. $uzanti_haric = $uzanti_ayir[0];
  219. $subdomain_kontrol = substr_count($uzanti_haric, '.');
  220.  
  221. if ($subdomain_kontrol == 0) {
  222. $domain = $uzanti_haric . '.' . $uzanti;
  223. }
  224. else {
  225. $subdomain_hazirlik = explode('.', $uzanti_haric);
  226. $domain = $subdomain_hazirlik[1] . '.' . $uzanti;
  227. }
  228. }
  229.  
  230. return $domain;
  231. }
  232.  
  233. function kac_dk_gecti($tarih_saat)
  234. {
  235. return (time() - strtotime($tarih_saat)) / 60;
  236. }
  237.  
  238. function tarih_saat_hesapla($deger, $tarih_saat = NULL)
  239. {
  240. if (!$tarih_saat) {
  241. $tarih_saat = tarih_saat();
  242. return $yeni_tarih_saat = date('Y-m-d H:i:s', strtotime((string) $deger));
  243. }
  244. else {
  245. $mktime = mktime_getir($tarih_saat);
  246. return $yeni_tarih_saat = date('Y-m-d H:i:s', strtotime((string) $deger, $mktime));
  247. }
  248. }
  249.  
  250. function bakim_modu_ac()
  251. {
  252. ayar_guncelle('bakim_modu', 1);
  253. }
  254.  
  255. function bakim_modu_kapat()
  256. {
  257. ayar_guncelle('bakim_modu', 0);
  258. }
  259.  
  260. function bilgi_getir($table, $bilgi, $id = NULL)
  261. {
  262. if (!$id) {
  263. @$id = $_GET['id'];
  264. }
  265.  
  266. global $baglan;
  267. @$dizi = mysqli_fetch_array(mysqli_query($baglan, 'select ' . $bilgi . ' from ' . $table . ' where id=' . $id));
  268. return $dizi[(string) $bilgi];
  269. }
  270.  
  271. function getir($table, $bilgi, $id = NULL)
  272. {
  273. if (!$id) {
  274. $id = @$_GET['id'];
  275. }
  276.  
  277. return bilgi_getir($table, $bilgi, $id);
  278. }
  279.  
  280. function guncelle($tablo, $sutun, $yeni_deger, $id = NULL)
  281. {
  282. global $baglan;
  283.  
  284. if (!$id) {
  285. @$id = $_GET['id'];
  286. }
  287.  
  288. @$guncelle = mysqli_fetch_array(mysqli_query($baglan, 'update ' . $tablo . ' set ' . $sutun . '=\'' . $yeni_deger . '\' where id=' . $id));
  289.  
  290. if ($guncelle) {
  291. return true;
  292. }
  293. else {
  294. return false;
  295. }
  296. }
  297.  
  298. function id_getir($tablo, $anahtar, $deger)
  299. {
  300. global $baglan;
  301. $dizi = mysqli_fetch_array(mysqli_query($baglan, 'select id from ' . $tablo . ' where ' . $anahtar . '=\'' . $deger . '\''));
  302. return $id = $dizi['id'];
  303. }
  304.  
  305. function tarih_getir($id = NULL)
  306. {
  307. global $tarih_saat_aylar;
  308.  
  309. if (!$id) {
  310. $id = $_GET['id'];
  311. }
  312.  
  313. $tarih_saat = bilgi_getir('icerik', 'tarih_saat', $id);
  314. $tarih_saat_parcala = explode(' ', $tarih_saat);
  315. $tarih = $tarih_saat_parcala[0];
  316. $tarih_parcala = explode('-', $tarih);
  317. $gun = ltrim($tarih_parcala[2], '0');
  318. $ay = $tarih_parcala[1];
  319. $yil = $tarih_parcala[0];
  320.  
  321. if (!$tarih_saat_aylar) {
  322. $tarih_saat_aylar = 'Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık';
  323. }
  324.  
  325. $aylar_dizi = explode(',', $tarih_saat_aylar);
  326. $ay_new = $aylar_dizi[$ay - 1];
  327. return $birlestir = $gun . ' ' . $ay_new . ' ' . $yil;
  328. }
  329.  
  330. function tarih_bicimlendir($tarih)
  331. {
  332. global $tarih_saat_aylar;
  333. $tarih_parcala = explode('-', $tarih);
  334. @$gun = ltrim($tarih_parcala[2], '0');
  335. @$ay = $tarih_parcala[1];
  336. @$yil = $tarih_parcala[0];
  337.  
  338. if (!$tarih_saat_aylar) {
  339. $tarih_saat_aylar = 'Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık';
  340. }
  341.  
  342. $aylar_dizi = explode(',', $tarih_saat_aylar);
  343. @$ay_new = $aylar_dizi[$ay - 1];
  344. return $birlestir = $gun . ' ' . $ay_new . ' ' . $yil;
  345. }
  346.  
  347. function saat_getir($id = NULL)
  348. {
  349. if (!$id) {
  350. $id = $_GET['id'];
  351. }
  352.  
  353. $tarih_saat = bilgi_getir('icerik', 'tarih_saat', $id);
  354. $tarih_saat_parcala = explode(' ', $tarih_saat);
  355. $saat = $tarih_saat_parcala[1];
  356. $saat_karakter = strlen($saat);
  357. return $saat = substr($saat, 0, $saat_karakter - 3);
  358. }
  359.  
  360. function mktime_getir($tarih_saat)
  361. {
  362. if ($tarih_saat) {
  363. $tarih_saat_parcala = explode(' ', $tarih_saat);
  364. $tarih = $tarih_saat_parcala[0];
  365. $saat = $tarih_saat_parcala[1];
  366. $tarih_parcala = explode('-', $tarih);
  367. $saat_parcala = explode(':', $saat);
  368. $gun = $tarih_parcala[2];
  369. $ay = $tarih_parcala[1];
  370. $yil = $tarih_parcala[0];
  371. $saat = $saat_parcala[0];
  372. $dakika = $saat_parcala[1];
  373. $saniye = $saat_parcala[2];
  374. return $sonuc = mktime($saat, $dakika, $saniye, $ay, $gun, $yil);
  375. }
  376. }
  377.  
  378. function uye_bilgi_getir($anahtar, $uye_id = NULL)
  379. {
  380. if (!$uye_id) {
  381. $uye_id = $_GET['id'];
  382. }
  383.  
  384. global $baglan;
  385. $dizi = mysqli_fetch_array(mysqli_query($baglan, 'select * from ekstra_bilgi where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\''));
  386. return tirnak_ekle($dizi['deger']);
  387. }
  388.  
  389. function uye_bilgi_guncelle($anahtar, $yeni_deger, $uye_id = NULL)
  390. {
  391. if (!$uye_id) {
  392. $uye_id = $_GET['id'];
  393. }
  394.  
  395. global $baglan;
  396. $say = mysqli_num_rows(mysqli_query($baglan, 'select * from ekstra_bilgi where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\''));
  397.  
  398. if ($say == 1) {
  399. mysqli_query($baglan, 'update ekstra_bilgi set deger=\'' . $yeni_deger . '\' where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\'');
  400. }
  401. else {
  402. mysqli_query($baglan, 'insert into ekstra_bilgi set id=' . $uye_id . ', anahtar=\'' . $anahtar . '\', deger=\'' . $yeni_deger . '\', tip=\'uye\'');
  403. }
  404. }
  405.  
  406. function ekstra_bilgi_getir($anahtar, $yazi_id, $tip = 'yazi')
  407. {
  408. global $baglan;
  409. ..........................................................................
  410. .......................................
  411. ................
Add Comment
Please, Sign In to add comment