Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function lisans_kontrol()
- {
- $domain = domain();
- $site = getenv('HTTP_HOST');
- if (($site != 'localhost') && !strstr($site, 'limontasarim.com') && !strstr($site, 'limontasarim.net')) {
- if (file_exists(ROOT_DIR . '/lisans.php')) {
- require ROOT_DIR . '/lisans.php';
- }
- if (substr($site, 0, 4) == 'www.') {
- $site = substr($site, 4);
- }
- $bol = explode('.', $site);
- $say = count($bol);
- if ($say == '2') {
- $uzanti = $bol[1];
- }
- else if ('2' < $say) {
- $son = $bol[$say - 1];
- if (($son == 'tr') || ($son == 'uk')) {
- $uzanti = $bol[$say - 2] . '.' . $bol[$say - 1];
- }
- else {
- $uzanti = $bol[$say - 1];
- }
- }
- else {
- $uzanti = NULL;
- }
- $uzanti_ayir = explode('.' . $uzanti, $site);
- $uzanti_haric = $uzanti_ayir[0];
- $subdomain_kontrol = substr_count($uzanti_haric, '.');
- if ($subdomain_kontrol == 0) {
- $site = $uzanti_haric . '.' . $uzanti;
- }
- else {
- $subdomain_hazirlik = explode('.', $uzanti_haric);
- $site = $subdomain_hazirlik[1] . '.' . $uzanti;
- }
- $date = date('d/m/Y');
- $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);
- if (@$lisans != $kontrol) {
- $versiyon = ayar('versiyon');
- $token = api_token();
- @$sorgula = curl_get_contents('https://www.limontasarim.com/api/v1/lisans.php?domain=' . $domain . '&versiyon=' . $versiyon . '&token=' . $token . '&fonksiyon=lisans_kontrol&tip=lisans_sorgu');
- $l_array = json_decode($sorgula, true);
- $lisans_sonuc = $l_array['lisans'];
- if (!isset($lisans_sonuc)) {
- $lisans_sonuc = 1;
- }
- if ($lisans_sonuc != 1) {
- $cevap = $l_array['cevap'];
- exit($cevap);
- }
- else {
- $dosya_adi = ROOT_DIR . '/lisans.php';
- ($olustur = fopen($dosya_adi, 'w')) || exit('Yazma izni hatasi. Lutfen ana dizinde lisans.php dosyasi olusturun.');
- $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" . '?>';
- fwrite($olustur, $metin);
- fclose($olustur);
- }
- if (($lisans_sonuc == 1) && is_object(json_decode($sorgula))) {
- $tarih_saat = tarih_saat();
- ayar_guncelle('limonsoft', $sorgula);
- ayar_guncelle('limonsoft_kontrol', $tarih_saat);
- }
- }
- else {
- limonsoft_sorgula();
- }
- }
- else if (!strstr($site, 'limontasarim.com')) {
- limonsoft_sorgula();
- }
- }
- function limonsoft_sorgula($zorlu = NULL, $tip = NULL)
- {
- if (!$zorlu) {
- $zorlu = false;
- }
- if (!$tip) {
- $tip = 'lisans_sorgu';
- }
- $limonsoft_kontrol_dk = 1440;
- if ((($limonsoft_kontrol_dk <= kac_dk_gecti(ayar('limonsoft_kontrol'))) || $zorlu) && ayar('site_url')) {
- $domain = domain();
- $versiyon = ayar('versiyon');
- $token = api_token();
- $sorgula = curl_get_contents('https://www.limontasarim.com/api/v1/lisans.php?domain=' . $domain . '&versiyon=' . $versiyon . '&token=' . $token . '&fonksiyon=limonsoft_sorgula&tip=' . $tip);
- $l_array = json_decode($sorgula, true);
- $lisans_sonuc = $l_array['lisans'];
- if ($lisans_sonuc == 1) {
- if (is_object(json_decode($sorgula))) {
- $tarih_saat = tarih_saat();
- ayar_guncelle('limonsoft', $sorgula);
- ayar_guncelle('limonsoft_kontrol', $tarih_saat);
- }
- }
- }
- }
- function limonsoft()
- {
- global $limonsoft_array;
- global $limonsoft_lisans;
- global $limonsoft_lisans_bitis_tarih_saat;
- global $limonsoft_garanti;
- global $limonsoft_garanti_bitis_tarih_saat;
- global $limonsoft_bayi;
- global $limonsoft_guncel_versiyon;
- global $limonsoft_son_guncelleme;
- global $limonsoft_remove_copyright;
- @$limonsoft_json = ayar(__FUNCTION__);
- if (is_object(json_decode($limonsoft_json))) {
- $limonsoft_array = json_decode($limonsoft_json, true);
- $limonsoft_lisans = $limonsoft_array['lisans'];
- @$limonsoft_lisans_bitis_tarih_saat = $limonsoft_array['lisans_bitis_tarih_saat'];
- @$limonsoft_garanti = $limonsoft_array['garanti'];
- @$limonsoft_garanti_bitis_tarih_saat = $limonsoft_array['garanti_bitis_tarih_saat'];
- @$limonsoft_bayi = $limonsoft_array['bayi'];
- @$limonsoft_guncel_versiyon = $limonsoft_array['versiyon'];
- @$limonsoft_son_guncelleme = $limonsoft_array['son_guncelleme'];
- @$limonsoft_remove_copyright = $limonsoft_array['remove_copyright'];
- }
- global $admin_dizini;
- $api_token = api_token();
- if (browser_url() == site_url() . ('/?lisans_kontrol&token=' . $api_token)) {
- limonsoft_sorgula(true, 'ping');
- if (ref_url()) {
- yonlendir(ref_url());
- }
- else {
- yonlendir(site_url());
- }
- }
- if (browser_url() == site_url() . '/?copyright_check') {
- 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>');
- exit();
- }
- if (strstr(browser_url(), '/' . $admin_dizini . '/')) {
- if ($limonsoft_lisans_bitis_tarih_saat) {
- $lisans_kalan_gun = kac_gun_kaldi($limonsoft_lisans_bitis_tarih_saat);
- $lisans_iptal_tarihi = tarih_saat_hesapla('+15 days', $limonsoft_lisans_bitis_tarih_saat);
- $api_token = api_token();
- $lisans_kontrol = site_url() . ('/?lisans_kontrol&token=' . $api_token);
- if ($lisans_kalan_gun < 0) {
- 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");
- }
- }
- }
- }
- function kac_gun_kaldi($tarih_saat)
- {
- return round((strtotime($tarih_saat) - time()) / 60 / 60 / 24);
- .......................................................................
- ...........................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement