Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 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 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. $cookieParams = session_get_cookie_params();
  35. session_set_cookie_params($cookieParams['lifetime'], $cookieParams['path'], $domain, $secure, $httponly);
  36. session_name($session_name);
  37. session_start();
  38. }
  39.  
  40. function yuzde($a, $b)
  41. {
  42. $sonuc = (($a / $b) * 100) - 100;
  43. return ceil($sonuc);
  44. }
  45.  
  46. function kazanc($a, $b)
  47. {
  48. $sonuc = $a - $b;
  49. $temizle = str_replace('-', '', $sonuc);
  50. return $temizle;
  51. }
  52.  
  53. function karistir($arr)
  54. {
  55. $keys = [];
  56.  
  57. foreach ($arr as $key => $value) {
  58. $keys[] = $key;
  59. }
  60.  
  61. for ($i = count($keys) - 1; 1 <= $i; --$i) {
  62. $r = mt_rand(0, $i);
  63.  
  64. if ($r != $i) {
  65. $tmp = $keys[$i];
  66. $keys[$i] = $keys[$r];
  67. $keys[$r] = $tmp;
  68. }
  69. }
  70.  
  71. $result = [];
  72.  
  73. foreach ($keys as $key) {
  74. $result[$key] = $arr[$key];
  75. }
  76.  
  77. return $result;
  78. }
  79.  
  80. function ilanislem($command, $page)
  81. {
  82. global $db;
  83. $explode = explode('**', $command);
  84.  
  85. for ($i = 0; $i <= count($explode) - 1; $i++) {
  86. $sql_query[$i] = $db->customQuery($explode[$i]);
  87.  
  88. if ($sql_query[$i]) {
  89. $sql_response[$i] = 1;
  90. continue;
  91. }
  92.  
  93. $sql_response[$i] = 0;
  94. }
  95. }
  96.  
  97. function esc_url($url)
  98. {
  99. if ('' == $url) {
  100. return $url;
  101. }
  102.  
  103. $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\\|*\'()\\x80-\\xff]|i', '', $url);
  104. $strip = ['%0d', '%0a', '%0D', '%0A'];
  105. ................................................................
  106. ......................................
  107. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement