Advertisement
Guest User

Untitled

a guest
May 24th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.80 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. echo '<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.4.3/velocity.min.js"></script>' . "\r\n";
  15. !isLoggedIn() ? redirect(1, 'login') : NULL;
  16.  
  17. if (!canAccessModule($_SESSION['username'], 'wheeloffortune', 'block')) {
  18. return NULL;
  19. }
  20. if (defined(__RESPONSIVE__) && (__RESPONSIVE__ == 'TRUE')) {
  21. $breadcrumb = generateBreadcrumb();
  22. echo "\r\n" . ' <h3>' . "\r\n" . ' ' . lang('wheeloffortune_txt_1', true);
  23. if (check_value($_GET['sub']) && ($_GET['sub'] == 'history')) {
  24. echo '<a href="' . __BASE_URL__ . 'usercp/wheeloffortune" class="btn btn-warning btn-navtop">' . lang('wheeloffortune_txt_12', true) . '</a>';
  25. }
  26. else {
  27. echo '<a href="' . __BASE_URL__ . 'usercp/wheeloffortune?sub=history" class="btn btn-warning btn-navtop">' . lang('wheeloffortune_txt_10', true) . '</a>';
  28. }
  29.  
  30. echo "\r\n" . ' ' . $breadcrumb . "\r\n" . ' </h3>';
  31. if (check_value($_GET['sub']) && ($_GET['sub'] == 'history')) {
  32. echo "\r\n" . ' <div class="rankings-table">' . "\r\n" . ' <table class="table table-hover text-center">' . "\r\n" . ' <tr>' . "\r\n" . ' <th class="headerRow">' . lang('wheeloffortune_txt_20', true) . '</th>' . "\r\n" . ' <th class="headerRow">' . lang('wheeloffortune_txt_24', true) . '</th>' . "\r\n" . ' <th class="headerRow">' . lang('wheeloffortune_txt_21', true) . '</th>' . "\r\n" . ' </tr>';
  33. $history = $dB->query_fetch('SELECT TOP 50 * FROM IMPERIAMUCMS_WHEEL_OF_FORTUNE WHERE AccountID = ? ORDER BY date DESC', [$_SESSION['username']]);
  34.  
  35. if (is_array($history)) {
  36. foreach ($history as $thisRow) {
  37. echo "\r\n" . ' <tr>' . "\r\n" . ' <td>' . date($config['time_date_format'], strtotime($thisRow['date'])) . '</td>' . "\r\n" . ' <td>' . $thisRow['reward_title'] . '</td>' . "\r\n" . ' <td>';
  38.  
  39. if (0 < $thisRow['price']) {
  40. echo number_format($thisRow['price']) . ' ';
  41.  
  42. switch ($thisRow['price_type']) {
  43. case 1:
  44. $currencyName = lang('currency_platinum', true);
  45. break;
  46. case 2:
  47. $currencyName = lang('currency_gold', true);
  48. break;
  49. case 3:
  50. $currencyName = lang('currency_silver', true);
  51. break;
  52. case 4:
  53. $currencyName = lang('currency_wcoinc', true);
  54. break;
  55. case -4:
  56. $currencyName = lang('currency_wcoinp', true);
  57. break;
  58. case 5:
  59. $currencyName = lang('currency_gp', true);
  60. break;
  61. case 6:
  62. $currencyName = '' . lang('currency_zen', true) . '';
  63. break;
  64. case 7:
  65. $currencyName = '' . lang('currency_bless', true) . '';
  66. break;
  67. case 8:
  68. $currencyName = '' . lang('currency_soul', true) . '';
  69. break;
  70. case 9:
  71. $currencyName = '' . lang('currency_life', true) . '';
  72. break;
  73. case 10:
  74. $currencyName = '' . lang('currency_chaos', true) . '';
  75. break;
  76. case 11:
  77. $currencyName = '' . lang('currency_harmony', true) . '';
  78. break;
  79. case 12:
  80. $currencyName = '' . lang('currency_creation', true) . '';
  81. break;
  82. case 13:
  83. $currencyName = '' . lang('currency_guardian', true) . '';
  84. break;
  85. default:
  86. $query = $dB->query_fetch_single('SELECT name FROM IMPERIAMUCMS_WEB_BANK_CUSTOM WHERE ident = ?', [$thisRow['price_type']]);
  87. $currencyName = $query['name'];
  88. break;
  89. }
  90.  
  91. echo $currencyName;
  92. }
  93. else {
  94. echo lang('wheeloffortune_txt_23', true);
  95. }
  96.  
  97. echo "\r\n" . ' </td>' . "\r\n" . ' </tr>';
  98. }
  99. }
  100. else {
  101. echo "\r\n" . ' <tr>' . "\r\n" . ' <td colspan="3" align="center">' . lang('wheeloffortune_txt_22', true) . '</td>' . "\r\n" . ' </tr>';
  102. }
  103.  
  104. echo "\r\n" . ' </table>' . "\r\n" . ' </div>';
  105. }
  106. else {
  107. if (mconfig('active')) {
  108. $General = new IMPERIAMUCMS();
  109. $General->ifn9fJgdGKPP_check_jhd7cBDv_Module_fnub7Hda_License('wheeloffortune');
  110. $General->fjbaYbddafFF_check_jf7bSC_Local_kgfjJG_Module_jGGrOZnf_License('wheeloffortune');
  111. echo "\r\n" . ' <div class="fortune-msg-holder"></div>' . "\r\n" . ' <div class="row desc-row">' . "\r\n" . ' <div class="col-xs-12">';
  112. $intervalInfo = false;
  113. if ((mconfig('enabled_month_day_start') != '-1') && (mconfig('enabled_month_day_end') != '-1')) {
  114. if (mconfig('enabled_month_day_start') == mconfig('enabled_month_day_end')) {
  115. echo sprintf(lang('wheeloffortune_txt_4', true), sprintf(lang('wheeloffortune_txt_5', true), mconfig('enabled_month_day_start')), sprintf(lang('wheeloffortune_txt_9', true), mconfig('enabled_hour_start'), mconfig('enabled_hour_end')));
  116. }
  117. else {
  118. echo sprintf(lang('wheeloffortune_txt_4', true), sprintf(lang('wheeloffortune_txt_6', true), mconfig('enabled_month_day_start'), mconfig('enabled_month_day_end')), sprintf(lang('wheeloffortune_txt_9', true), mconfig('enabled_hour_start'), mconfig('enabled_hour_end')));
  119. }
  120.  
  121. $intervalInfo = true;
  122. }
  123. if ((mconfig('enabled_week_day_start') != '-1') && (mconfig('enabled_week_day_end') != '-1')) {
  124. if (mconfig('enabled_week_day_start') == mconfig('enabled_week_day_end')) {
  125. echo sprintf(lang('wheeloffortune_txt_4', true), sprintf(lang('wheeloffortune_txt_7', true), returnDayName(mconfig('enabled_week_day_start'))), sprintf(lang('wheeloffortune_txt_9', true), mconfig('enabled_hour_start'), mconfig('enabled_hour_end')));
  126. }
  127. else {
  128. echo sprintf(lang('wheeloffortune_txt_4', true), sprintf(lang('wheeloffortune_txt_8', true), returnDayName(mconfig('enabled_week_day_start')), returnDayName(mconfig('enabled_week_day_end'))), sprintf(lang('wheeloffortune_txt_9', true), mconfig('enabled_hour_start'), mconfig('enabled_hour_end')));
  129. }
  130.  
  131. $intervalInfo = true;
  132. }
  133. if ((lang('wheeloffortune_txt_13', true) != NULL) && (lang('wheeloffortune_txt_13', true) != '')) {
  134. if ($intervalInfo) {
  135. echo '<br><br>';
  136. }
  137.  
  138. echo lang('wheeloffortune_txt_13', true);
  139. }
  140.  
  141. $totalCurrency = 0;
  142.  
  143. switch (mconfig('price_type')) {
  144. case 1:
  145. if (config('MEMB_CREDITS_MEMUONLINE', true)) {
  146. $totalCurrency = $dB2->query_fetch_single('SELECT platinum FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  147. }
  148. else {
  149. $totalCurrency = $dB->query_fetch_single('SELECT platinum FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  150. }
  151.  
  152. $totalCurrency = $totalCurrency['platinum'];
  153. $currencyName = lang('currency_platinum', true);
  154. break;
  155. case 2:
  156. if (config('MEMB_CREDITS_MEMUONLINE', true)) {
  157. $totalCurrency = $dB2->query_fetch_single('SELECT gold FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  158. }
  159. else {
  160. $totalCurrency = $dB->query_fetch_single('SELECT gold FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  161. }
  162.  
  163. $totalCurrency = $totalCurrency['gold'];
  164. $currencyName = lang('currency_gold', true);
  165. break;
  166. case 3:
  167. if (config('MEMB_CREDITS_MEMUONLINE', true)) {
  168. $totalCurrency = $dB2->query_fetch_single('SELECT silver FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  169. }
  170. else {
  171. $totalCurrency = $dB->query_fetch_single('SELECT silver FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
  172. }
  173.  
  174. $totalCurrency = $totalCurrency['silver'];
  175. $currencyName = lang('currency_silver', true);
  176. .......................................................................
  177. ......................................
  178. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement