Guest User

Untitled

a guest
Nov 30th, 2019
181
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.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function appLang($lang)
  15. {
  16. global $mysqli;
  17. global $sm;
  18. $result = [];
  19. $lang = secureEncode($lang);
  20. $query = $mysqli->query('SELECT * FROM app_lang where lang_id = \'' . $lang . '\' ORDER BY id ASC');
  21.  
  22. while ($row = $query->fetch_assoc()) {
  23. $result[$row['id']] = ['id' => $row['id'], 'text' => $row['text']];
  24. }
  25.  
  26. return $result;
  27. }
  28.  
  29. function themeSetting($theme)
  30. {
  31. global $mysqli;
  32. global $sm;
  33. $result = [];
  34. $query = $mysqli->query('SELECT * FROM theme_settings where theme = \'' . $theme . '\'');
  35.  
  36. while ($row = $query->fetch_assoc()) {
  37. $result[$row['setting']] = ['val' => $row['setting_val']];
  38. }
  39.  
  40. return $result;
  41. }
  42.  
  43. function sitePlugins()
  44. {
  45. global $mysqli;
  46. global $sm;
  47. $result = [];
  48. $query = $mysqli->query('SELECT * FROM plugins_settings');
  49.  
  50. while ($row = $query->fetch_assoc()) {
  51. $filter = 'where setting = "' . $row['setting'] . '" and plugin = "' . $row['plugin'] . '"';
  52. $clientSetting = getData('plugins_settings_values', 'setting_val', $filter);
  53.  
  54. if ($clientSetting == 'noData') {
  55. $row['setting_val'] = $row['setting_val'];
  56. }
  57. else {
  58. $row['setting_val'] = $clientSetting;
  59. }
  60.  
  61. if (isset($result[$row['plugin']])) {
  62. $result[$row['plugin']][$row['setting']] = $row['setting_val'];
  63. continue;
  64. }
  65.  
  66. $result[$row['plugin']] = [$row['setting'] => $row['setting_val']];
  67. }
  68.  
  69. return $result;
  70. }
  71.  
  72. function sitePlugin()
  73. {
  74. global $mysqli;
  75. global $sm;
  76. $result = [];
  77. $query = $mysqli->query('SELECT * FROM plugins');
  78.  
  79. while ($row = $query->fetch_assoc()) {
  80. $result[] = $row;
  81. }
  82.  
  83. return $result;
  84. }
  85.  
  86. function siteSettings()
  87. {
  88. global $mysqli;
  89. global $sm;
  90. $result = [];
  91. $query = $mysqli->query('SELECT * FROM settings');
  92.  
  93. while ($row = $query->fetch_assoc()) {
  94. $result[$row['setting']] = $row['setting_val'];
  95. }
  96.  
  97. return $result;
  98. }
  99.  
  100. function emailLang($lang)
  101. {
  102. global $mysqli;
  103. global $sm;
  104. $result = [];
  105. $lang = secureEncode($lang);
  106. $query = $mysqli->query('SELECT * FROM email_lang where lang_id = \'' . $lang . '\' ORDER BY id ASC');
  107.  
  108. while ($row = $query->fetch_assoc()) {
  109. $result[$row['id']] = ['id' => $row['id'], 'text' => $row['text']];
  110. }
  111.  
  112. return $result;
  113. }
  114.  
  115. function seoLang($lang)
  116. {
  117. global $mysqli;
  118. global $sm;
  119. $result = [];
  120. $lang = secureEncode($lang);
  121. $query = $mysqli->query('SELECT * FROM seo_lang where lang_id = \'' . $lang . '\' ORDER BY page ASC');
  122.  
  123. while ($row = $query->fetch_assoc()) {
  124. $result[$row['page']][$row['id']] = ['text' => $row['text']];
  125. }
  126.  
  127. return $result;
  128. }
  129.  
  130. function landingLang($lang, $theme, $preset)
  131. {
  132. global $mysqli;
  133. global $sm;
  134. $result = [];
  135. $lang = secureEncode($lang);
  136. $query = $mysqli->query('SELECT * FROM landing_lang where lang_id = \'' . $lang . '\' and theme = \'' . $theme . '\' and preset = \'' . $preset . '\' ORDER BY id ASC');
  137.  
  138. while ($row = $query->fetch_assoc()) {
  139. $result[$row['id']] = ['id' => $row['id'], 'text' => $row['text']];
  140. }
  141.  
  142. return $result;
  143. }
  144.  
  145. function siteConfig($val)
  146. {
  147. global $mysqli;
  148. global $sm;
  149. $config = $mysqli->query('SELECT * FROM config');
  150. ...........................................................................
  151. ...........................................
  152. .............
RAW Paste Data