Advertisement
Guest User

Untitled

a guest
Dec 18th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 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 Temizle($y)
  15. {
  16. $g = ['www.', ':8880', ':8443', ':443', ':2086', ':2082', 'mail.', '/cpanel', ':80'];
  17. $d = ['', '', '', '', '', '', '', '', ''];
  18. $yd = str_replace($g, $d, $y);
  19. return $yd;
  20. }
  21.  
  22. function getBrowser()
  23. {
  24. $u_agent = $_SERVER['HTTP_USER_AGENT'];
  25. $bname = 'Bilinmiyor';
  26. $platform = 'Bilinmiyor';
  27.  
  28. if (preg_match('/linux/i', $u_agent)) {
  29. $platform = 'linux';
  30. }
  31. else if (preg_match('/macintosh|mac os x/i', $u_agent)) {
  32. $platform = 'mac';
  33. }
  34. else if (preg_match('/windows|win32/i', $u_agent)) {
  35. $platform = 'windows';
  36. }
  37. if (preg_match('/MSIE/i', $u_agent) && !preg_match('/Opera/i', $u_agent)) {
  38. $bname = 'Internet Explorer';
  39. $ub = 'MSIE';
  40. }
  41. else if (preg_match('/Firefox/i', $u_agent)) {
  42. $bname = 'Mozilla Firefox';
  43. $ub = 'Firefox';
  44. }
  45. else if (preg_match('/Chrome/i', $u_agent)) {
  46. $bname = 'Google Chrome';
  47. $ub = 'Chrome';
  48. }
  49. else if (preg_match('/Safari/i', $u_agent)) {
  50. $bname = 'Apple Safari';
  51. $ub = 'Safari';
  52. }
  53. else if (preg_match('/Opera/i', $u_agent)) {
  54. $bname = 'Opera';
  55. $ub = 'Opera';
  56. }
  57. else if (preg_match('/Netscape/i', $u_agent)) {
  58. $bname = 'Netscape';
  59. $ub = 'Netscape';
  60. }
  61.  
  62. return ['userAgent' => $u_agent, 'name' => $bname, 'platform' => $platform];
  63. }
  64.  
  65. function gercekip()
  66. {
  67. if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
  68. $ip = $_SERVER['HTTP_CLIENT_IP'];
  69. }
  70. else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  71. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  72. }
  73. else {
  74. $ip = $_SERVER['REMOTE_ADDR'];
  75. }
  76.  
  77. return $ip;
  78. }
  79.  
  80. function httpPost($url, $params)
  81. {
  82. $postData = '';
  83.  
  84. foreach ($params as $k => $v) {
  85. $postData .= $k . '=' . $v . '&';
  86. }
  87.  
  88. rtrim($postData, '&');
  89. $ch = curl_init();
  90. curl_setopt($ch, CURLOPT_URL, $url);
  91. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  92. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  93. curl_setopt($ch, CURLOPT_HEADER, false);
  94. curl_setopt($ch, CURLOPT_POST, count($postData));
  95. curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
  96. $output = curl_exec($ch);
  97. curl_close($ch);
  98. return $output;
  99. }
  100.  
  101. function ipAl()
  102. {
  103. if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
  104. $ip = $_SERVER['HTTP_CLIENT_IP'];
  105. }
  106. else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  107. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  108. }
  109. else {
  110. $ip = $_SERVER['REMOTE_ADDR'];
  111. }
  112.  
  113. return $ip;
  114. }
  115.  
  116. $bas = 'ART-';
  117. $son = '-2019';
  118. $m = 'md5';
  119. $s = 'sha1';
  120. $kurulualanadi = 'http://lisans.receteartdemo.com/';
  121. $dosya_adi = 'lisans.php';
  122.  
  123. if (!file_exists($dosya_adi)) {
  124. touch($dosya_adi);
  125. }
  126.  
  127. require_once 'lisans.php';
  128. $lisans['site'] = getenv('HTTP_HOST');
  129. $lisans['site'] = strtolower($lisans['site']);
  130. $lisans['site'] = rtrim($lisans['site'], '.');
  131. $lisans['site'] = temizle($lisans['site']);
  132. $lisans['hash'] = wordwrap(strtoupper($s($s($s($s($m($s($s($m($lisans['site'] . date('d')))))))))), 5, '-', true);
  133. $sipadres = $_SERVER['SERVER_ADDR'];
  134. $ua = getbrowser();
  135. $tarayici = $ua['name'];
  136. $platform = $ua['platform'];
  137. $kipadres = gercekip();
  138. $site = $_SERVER['HTTP_HOST'];
  139. $hata = $kurulualanadi . 'get.php';
  140. $liskod = $lisans['hash'];
  141. $cevir = strrev($liskod);
  142. $bcs = $bas . $cevir . $son;
  143.  
  144. if ($bcs !== @$lisanskodu) {
  145. $ch = curl_init($kurulualanadi . 'kontrol.php?site=' . $lisans['site']);
  146. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  147. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  148. $lisans_cevap = curl_exec($ch);
  149.  
  150. if ($lisans_cevap !== 'LISANSLI') {
  151. $params = ['sipadres' => $sipadres, 'kipadres' => $kipadres, 'tarayici' => $tarayici, 'platform' => $platform, 'site' => $site, 'bugun' => date('d.m.Y')];
  152. httppost($kurulualanadi . 'get.php', $params);
  153. header('location:' . $kurulualanadi . 'uyari.php');
  154. exit();
  155. }
  156.  
  157. $lyaz = fopen('lisans.php', 'w+');
  158. @fwrite($lyaz, '<?php' . "\r\n" . '/**receteart.com Lisans Sistemi' . "\r\n" . 'Copyright (C) 2019' . "\r\n" . '05352125331' . "\r\n" . 'hello@receteart.com' . "\r\n" . 'Satış Linki: https://www.receteart.com' . "\r\n" . 'Bu dosyaya herhangi bir lisans kodu yazmanız gerekmez, almış olduğunuz ürünün lisansı aktif olduğunda, sitenizde anahtar otomatik oluşturulur.' . "\r\n" . 'Yeni lisans almak için sitenisevsinler.com adresini ziyaret edebilirsiniz.*/' . "\r\n" . '$lisanskodu="' . $bcs . '";' . "\r\n" . '?>');
  159. fclose($lyaz);
  160. }
  161.  
  162. ob_start();
  163.  
  164. if ($modul['smsbildirim'] == '1') {
  165. if ($modul['smsapi'] == '1') {
  166. function sendRequest($site_name, $send_xml, $header_type = ['Content-Type: text/xml'])
  167. {
  168. $ch = curl_init();
  169. curl_setopt($ch, CURLOPT_URL, $site_name);
  170. curl_setopt($ch, CURLOPT_POST, 1);
  171. curl_setopt($ch, CURLOPT_POSTFIELDS, $send_xml);
  172. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  173. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  174. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  175. curl_setopt($ch, CURLOPT_HTTPHEADER, $header_type);
  176. curl_setopt($ch, CURLOPT_HEADER, 0);
  177. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  178. curl_setopt($ch, CURLOPT_TIMEOUT, 120);
  179. $result = curl_exec($ch);
  180. return $result;
  181. }
  182.  
  183. set_time_limit(0);
  184. date_default_timezone_set('Europe/Istanbul');
  185. }
  186. else {
  187. function sendsms($msg, $telno, $header)
  188. {
  189. global $modul;
  190. $username = $modul['netkadi'];
  191. $pass = $modul['netsifre'];
  192. $startdate = date('d.m.Y H:i');
  193. $startdate = str_replace('.', '', $startdate);
  194. $startdate = str_replace(':', '', $startdate);
  195. $startdate = str_replace(' ', '', $startdate);
  196. $stopdate = date('d.m.Y H:i', strtotime('+1 day'));
  197. $stopdate = str_replace('.', '', $stopdate);
  198. $stopdate = str_replace(':', '', $stopdate);
  199. $stopdate = str_replace(' ', '', $stopdate);
  200. $url = 'http://api.netgsm.com.tr/bulkhttppost.asp?usercode=' . $username . '&password=' . $pass . '&gsmno=' . $telno . '&message=' . $msg . '&msgheader=' . $header . '&startdate=' . $startdate . '&stopdate=' . $stopdate;
  201. $ch = curl_init();
  202. curl_setopt($ch, CURLOPT_URL, $url);
  203. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  204. $output = curl_exec($ch);
  205. curl_close($ch);
  206. return $output;
  207. }
  208. }
  209. }
  210.  
  211. echo "\r\n\r\n\r\n";
  212. $sepid = htmlspecialchars(trim($_GET['sepetID']));
  213. $sil = $DB->prepare('DELETE FROM sepet WHERE sepetId=?');
  214. $sil->execute([$sepid]);
  215.  
  216. if (0 < $sepid) {
  217. }
  218.  
  219. echo "\r\n";
  220. $sepx = htmlspecialchars(trim($_GET['kuponid']));
  221. $sonuccc = $DB->exec('UPDATE sepet SET kupon=\'0\',kuponid=\'0\' WHERE sepetId=\'' . $sepx . '\' limit 1');
  222.  
  223. if (0 < $sonuccc) {
  224. echo '<div class=\'alert alert-green\'>' . "\t\t" . '<span class=\'alert-close\' data-close=\'alert\' title=\'Close\'>&times;</span>' . "\t\t" . '<strong>Başarılı</strong> - Kupon başarıyla kaldırıldı.</div>';
  225. }
  226.  
  227. echo "\r\n\r\n";
  228.  
  229. if (isset($_POST['uyegiris'])) {
  230. $email = htmlspecialchars(trim($_POST['email']));
  231. $sifre = htmlspecialchars(trim($_POST['sifre']));
  232. $giris = $DB->prepare('select * from uyeler where durum=\'1\' and email=? and sifre=?');
  233. $giris->execute([$email, $sifre]);
  234. $parcala = $giris->fetch(PDO::FETCH_ASSOC);
  235. $kontrol = $giris->rowCount();
  236.  
  237. if ($parcala['durum'] = 0) {
  238. echo ' <div class=\'alert alert-red\'>' . "\t\t" . '<span class=\'alert-close\' data-close=\'alert\' title=\'Close\'>&times;</span>' . "\t\t" . '<strong>Hata !</strong> - Üyeliğiniz hala onay sürecinde beklemektedir.</div>' . "\r\n\t\t";
  239. }
  240. else if ($kontrol) {
  241. $_SESSION['uyegiris'] = 'true';
  242. $_SESSION['uyeId'] = $parcala['uyeId'];
  243. $_SESSION['isim'] = $parcala['isim'];
  244. $_SESSION['email'] = $parcala['email'];
  245. $_SESSION['sifre'] = $parcala['sifre'];
  246. $_SESSION['telefon'] = $parcala['telefon'];
  247. $_SESSION['ip'] = $parcala['ip'];
  248. $_SESSION['tc'] = $parcala['tc'];
  249. $_SESSION['ne'] = $parcala['ne'];
  250. $_SESSION['indirim'] = $parcala['indirim'];
  251. $_SESSION['vd'] = $parcala['vd'];
  252. $_SESSION['vno'] = $parcala['vno'];
  253. $_SESSION['nedir'] = $parcala['nedir'];
  254. echo ' ' . "\r\n\t\t" . '<div class=\'alert alert-green\'>' . "\t\t" . '<span class=\'alert-close\' data-close=\'alert\' title=\'Close\'>&times;</span>' . "\t\t" . '<strong>Başarılı</strong> - Sisteme başarıyla giriş yaptınız.</div>' . "\t\r\n\t\t\t";
  255. setcookie('giris', 'satinal');
  256. echo '<meta http-equiv="refresh" content="0; url=index">';
  257. .....................................................................
  258. ..........................................
  259. ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement