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);
- }
- function domain($domain = NULL)
- {
- if (!$domain) {
- $domain = getenv('HTTP_HOST');
- }
- if ($domain != 'localhost') {
- if (substr($domain, 0, 4) == 'www.') {
- $domain = substr($domain, 4);
- }
- $bol = explode('.', $domain);
- $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];
- }
- }
- $uzanti_ayir = explode('.' . $uzanti, $domain);
- $uzanti_haric = $uzanti_ayir[0];
- $subdomain_kontrol = substr_count($uzanti_haric, '.');
- if ($subdomain_kontrol == 0) {
- $domain = $uzanti_haric . '.' . $uzanti;
- }
- else {
- $subdomain_hazirlik = explode('.', $uzanti_haric);
- $domain = $subdomain_hazirlik[1] . '.' . $uzanti;
- }
- }
- return $domain;
- }
- function kac_dk_gecti($tarih_saat)
- {
- return (time() - strtotime($tarih_saat)) / 60;
- }
- function tarih_saat_hesapla($deger, $tarih_saat = NULL)
- {
- if (!$tarih_saat) {
- $tarih_saat = tarih_saat();
- return $yeni_tarih_saat = date('Y-m-d H:i:s', strtotime((string) $deger));
- }
- else {
- $mktime = mktime_getir($tarih_saat);
- return $yeni_tarih_saat = date('Y-m-d H:i:s', strtotime((string) $deger, $mktime));
- }
- }
- function bakim_modu_ac()
- {
- ayar_guncelle('bakim_modu', 1);
- }
- function bakim_modu_kapat()
- {
- ayar_guncelle('bakim_modu', 0);
- }
- function bilgi_getir($table, $bilgi, $id = NULL)
- {
- if (!$id) {
- @$id = $_GET['id'];
- }
- global $baglan;
- @$dizi = mysqli_fetch_array(mysqli_query($baglan, 'select ' . $bilgi . ' from ' . $table . ' where id=' . $id));
- return $dizi[(string) $bilgi];
- }
- function getir($table, $bilgi, $id = NULL)
- {
- if (!$id) {
- $id = @$_GET['id'];
- }
- return bilgi_getir($table, $bilgi, $id);
- }
- function guncelle($tablo, $sutun, $yeni_deger, $id = NULL)
- {
- global $baglan;
- if (!$id) {
- @$id = $_GET['id'];
- }
- @$guncelle = mysqli_fetch_array(mysqli_query($baglan, 'update ' . $tablo . ' set ' . $sutun . '=\'' . $yeni_deger . '\' where id=' . $id));
- if ($guncelle) {
- return true;
- }
- else {
- return false;
- }
- }
- function id_getir($tablo, $anahtar, $deger)
- {
- global $baglan;
- $dizi = mysqli_fetch_array(mysqli_query($baglan, 'select id from ' . $tablo . ' where ' . $anahtar . '=\'' . $deger . '\''));
- return $id = $dizi['id'];
- }
- function tarih_getir($id = NULL)
- {
- global $tarih_saat_aylar;
- if (!$id) {
- $id = $_GET['id'];
- }
- $tarih_saat = bilgi_getir('icerik', 'tarih_saat', $id);
- $tarih_saat_parcala = explode(' ', $tarih_saat);
- $tarih = $tarih_saat_parcala[0];
- $tarih_parcala = explode('-', $tarih);
- $gun = ltrim($tarih_parcala[2], '0');
- $ay = $tarih_parcala[1];
- $yil = $tarih_parcala[0];
- if (!$tarih_saat_aylar) {
- $tarih_saat_aylar = 'Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık';
- }
- $aylar_dizi = explode(',', $tarih_saat_aylar);
- $ay_new = $aylar_dizi[$ay - 1];
- return $birlestir = $gun . ' ' . $ay_new . ' ' . $yil;
- }
- function tarih_bicimlendir($tarih)
- {
- global $tarih_saat_aylar;
- $tarih_parcala = explode('-', $tarih);
- @$gun = ltrim($tarih_parcala[2], '0');
- @$ay = $tarih_parcala[1];
- @$yil = $tarih_parcala[0];
- if (!$tarih_saat_aylar) {
- $tarih_saat_aylar = 'Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık';
- }
- $aylar_dizi = explode(',', $tarih_saat_aylar);
- @$ay_new = $aylar_dizi[$ay - 1];
- return $birlestir = $gun . ' ' . $ay_new . ' ' . $yil;
- }
- function saat_getir($id = NULL)
- {
- if (!$id) {
- $id = $_GET['id'];
- }
- $tarih_saat = bilgi_getir('icerik', 'tarih_saat', $id);
- $tarih_saat_parcala = explode(' ', $tarih_saat);
- $saat = $tarih_saat_parcala[1];
- $saat_karakter = strlen($saat);
- return $saat = substr($saat, 0, $saat_karakter - 3);
- }
- function mktime_getir($tarih_saat)
- {
- if ($tarih_saat) {
- $tarih_saat_parcala = explode(' ', $tarih_saat);
- $tarih = $tarih_saat_parcala[0];
- $saat = $tarih_saat_parcala[1];
- $tarih_parcala = explode('-', $tarih);
- $saat_parcala = explode(':', $saat);
- $gun = $tarih_parcala[2];
- $ay = $tarih_parcala[1];
- $yil = $tarih_parcala[0];
- $saat = $saat_parcala[0];
- $dakika = $saat_parcala[1];
- $saniye = $saat_parcala[2];
- return $sonuc = mktime($saat, $dakika, $saniye, $ay, $gun, $yil);
- }
- }
- function uye_bilgi_getir($anahtar, $uye_id = NULL)
- {
- if (!$uye_id) {
- $uye_id = $_GET['id'];
- }
- global $baglan;
- $dizi = mysqli_fetch_array(mysqli_query($baglan, 'select * from ekstra_bilgi where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\''));
- return tirnak_ekle($dizi['deger']);
- }
- function uye_bilgi_guncelle($anahtar, $yeni_deger, $uye_id = NULL)
- {
- if (!$uye_id) {
- $uye_id = $_GET['id'];
- }
- global $baglan;
- $say = mysqli_num_rows(mysqli_query($baglan, 'select * from ekstra_bilgi where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\''));
- if ($say == 1) {
- mysqli_query($baglan, 'update ekstra_bilgi set deger=\'' . $yeni_deger . '\' where anahtar=\'' . $anahtar . '\' and id=' . $uye_id . ' and tip=\'uye\'');
- }
- else {
- mysqli_query($baglan, 'insert into ekstra_bilgi set id=' . $uye_id . ', anahtar=\'' . $anahtar . '\', deger=\'' . $yeni_deger . '\', tip=\'uye\'');
- }
- }
- function ekstra_bilgi_getir($anahtar, $yazi_id, $tip = 'yazi')
- {
- global $baglan;
- ..........................................................................
- .......................................
- ................
Add Comment
Please, Sign In to add comment