Guest User

Untitled

a guest
Nov 21st, 2020
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ayar($bilgi)
  15. {
  16. global $db;
  17. $sor = $db->table('dbo_siteayar')->select($bilgi)->limit(1)->getRow();
  18. return $sor->{$bilgi};
  19. }
  20.  
  21. function sosyal($bilgi)
  22. {
  23. global $db;
  24. $sor = $db->table('dbo_sosyalmedya')->select($bilgi)->limit(1)->getRow();
  25. return $sor->{$bilgi};
  26. }
  27.  
  28. function sec_session_start()
  29. {
  30. $domain = $site;
  31. $session_name = 'sec_session_id';
  32. $secure = false;
  33. $httponly = true;
  34. ini_set('session.use_only_cookies', 0);
  35. $cookieParams = session_get_cookie_params();
  36. session_set_cookie_params($cookieParams['lifetime'], $cookieParams['path'], $domain, $secure, $httponly);
  37. session_name($session_name);
  38. session_start();
  39. }
  40.  
  41. function yuzde($a, $b)
  42. {
  43. $sonuc = (($a / $b) * 100) - 100;
  44. return ceil($sonuc);
  45. }
  46.  
  47. function kazanc($a, $b)
  48. {
  49. $sonuc = $a - $b;
  50. $temizle = str_replace('-', '', $sonuc);
  51. return $temizle;
  52. }
  53.  
  54. function SSLYonver($session_code)
  55. {
  56. global $login;
  57.  
  58. if (!empty($_SERVER['SERVER_NAME'])) {
  59. $site = $_SERVER['SERVER_NAME'];
  60. }
  61. else if (!empty($_SERVER['HTTP_HOST'])) {
  62. $site = $_SERVER['HTTP_HOST'];
  63. }
  64. else {
  65. $site = (preg_match('~(http|ftp)[s]?:\\/\\/[w\\.]*([a-zA-Z0-9\\.]+)\\/~i', $login, $match) ? $match[2] : '');
  66. }
  67.  
  68. if (empty($site)) {
  69. return NULL;
  70. }
  71.  
  72. if (strpos($site, 'www.') !== false) {
  73. $site = substr($site, 4);
  74. }
  75.  
  76. $sslhash = sha1(sha1(sha1($site . 'karistir')) . 'karistir2');
  77. $sslhash = substr($sslhash, 0, 25);
  78. $sslhash = wordwrap($sslhash, 5, '-', true);
  79. $sslhash = mb_strtoupper($sslhash);
  80. if (($sslhash != $session_code) || ($sslhash !== $session_code)) {
  81. exit();
  82. }
  83. }
  84.  
  85. function karistir($arr)
  86. {
  87. $keys = [];
  88.  
  89. foreach ($arr as $key => $value) {
  90. $keys[] = $key;
  91. }
  92.  
  93. for ($i = count($keys) - 1; 1 <= $i; --$i) {
  94. $r = mt_rand(0, $i);
  95.  
  96. if ($r != $i) {
  97. $tmp = $keys[$i];
  98. $keys[$i] = $keys[$r];
  99. $keys[$r] = $tmp;
  100. }
  101. }
  102.  
  103. $result = [];
  104.  
  105. foreach ($keys as $key) {
  106. $result[$key] = $arr[$key];
  107. }
  108.  
  109. return $result;
  110. }
  111.  
  112. function ilanislem($command, $page)
  113. {
  114. global $db;
  115. $explode = explode('**', $command);
  116.  
  117. for ($i = 0; $i <= count($explode) - 1; $i++) {
  118. $sql_query[$i] = $db->customQuery($explode[$i]);
  119.  
  120. if ($sql_query[$i]) {
  121. $sql_response[$i] = 1;
  122. continue;
  123. }
  124.  
  125. $sql_response[$i] = 0;
  126. }
  127. }
  128.  
  129. function esc_url($url)
  130. {
  131. if ('' == $url) {
  132. return $url;
  133. }
  134.  
  135. $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\\|*\'()\\x80-\\xff]|i', '', $url);
  136. $strip = ['%0d', '%0a', '%0D', '%0A'];
  137. $url = (string) $url;
  138. $count = 1;
  139.  
  140. while ($count) {
  141. $url = str_replace($strip, '', $url, $count);
  142. }
  143.  
  144. $url = str_replace(';//', '://', $url);
  145. $url = htmlentities($url);
  146. $url = str_replace('&amp;', '&#038;', $url);
  147. $url = str_replace('\'', '&#039;', $url);
  148.  
  149. if ($url[0] !== '/') {
  150. return '';
  151. }
  152. else {
  153. return $url;
  154. }
  155. }
  156.  
  157. function getRealIpAddr()
  158. {
  159. if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
  160. $ip = $_SERVER['HTTP_CLIENT_IP'];
  161. }
  162. else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  163. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  164. }
  165. else {
  166. $ip = $_SERVER['REMOTE_ADDR'];
  167. }
  168.  
  169. return $ip;
  170. }
  171.  
  172. function randomsayi()
  173. {
  174. $rand = substr(md5(uniqid(time())), 0, 10);
  175. return $rand;
  176. }
  177.  
  178. function curl($url, $post = false)
  179. {
  180. $user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6';
  181. $ch = curl_init();
  182. curl_setopt($ch, CURLOPT_URL, $url);
  183. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  184. ...................................................................
  185. ............................................
  186. .................
RAW Paste Data