Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- echo '<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.4.3/velocity.min.js"></script>' . "\r\n";
- !isLoggedIn() ? redirect(1, 'login') : NULL;
- if (!canAccessModule($_SESSION['username'], 'wheeloffortune', 'block')) {
- return NULL;
- }
- if (defined(__RESPONSIVE__) && (__RESPONSIVE__ == 'TRUE')) {
- $breadcrumb = generateBreadcrumb();
- echo "\r\n" . ' <h3>' . "\r\n" . ' ' . lang('wheeloffortune_txt_1', true);
- if (check_value($_GET['sub']) && ($_GET['sub'] == 'history')) {
- echo '<a href="' . __BASE_URL__ . 'usercp/wheeloffortune" class="btn btn-warning btn-navtop">' . lang('wheeloffortune_txt_12', true) . '</a>';
- }
- else {
- echo '<a href="' . __BASE_URL__ . 'usercp/wheeloffortune?sub=history" class="btn btn-warning btn-navtop">' . lang('wheeloffortune_txt_10', true) . '</a>';
- }
- echo "\r\n" . ' ' . $breadcrumb . "\r\n" . ' </h3>';
- if (check_value($_GET['sub']) && ($_GET['sub'] == 'history')) {
- 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>';
- $history = $dB->query_fetch('SELECT TOP 50 * FROM IMPERIAMUCMS_WHEEL_OF_FORTUNE WHERE AccountID = ? ORDER BY date DESC', [$_SESSION['username']]);
- if (is_array($history)) {
- foreach ($history as $thisRow) {
- 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>';
- if (0 < $thisRow['price']) {
- echo number_format($thisRow['price']) . ' ';
- switch ($thisRow['price_type']) {
- case 1:
- $currencyName = lang('currency_platinum', true);
- break;
- case 2:
- $currencyName = lang('currency_gold', true);
- break;
- case 3:
- $currencyName = lang('currency_silver', true);
- break;
- case 4:
- $currencyName = lang('currency_wcoinc', true);
- break;
- case -4:
- $currencyName = lang('currency_wcoinp', true);
- break;
- case 5:
- $currencyName = lang('currency_gp', true);
- break;
- case 6:
- $currencyName = '' . lang('currency_zen', true) . '';
- break;
- case 7:
- $currencyName = '' . lang('currency_bless', true) . '';
- break;
- case 8:
- $currencyName = '' . lang('currency_soul', true) . '';
- break;
- case 9:
- $currencyName = '' . lang('currency_life', true) . '';
- break;
- case 10:
- $currencyName = '' . lang('currency_chaos', true) . '';
- break;
- case 11:
- $currencyName = '' . lang('currency_harmony', true) . '';
- break;
- case 12:
- $currencyName = '' . lang('currency_creation', true) . '';
- break;
- case 13:
- $currencyName = '' . lang('currency_guardian', true) . '';
- break;
- default:
- $query = $dB->query_fetch_single('SELECT name FROM IMPERIAMUCMS_WEB_BANK_CUSTOM WHERE ident = ?', [$thisRow['price_type']]);
- $currencyName = $query['name'];
- break;
- }
- echo $currencyName;
- }
- else {
- echo lang('wheeloffortune_txt_23', true);
- }
- echo "\r\n" . ' </td>' . "\r\n" . ' </tr>';
- }
- }
- else {
- echo "\r\n" . ' <tr>' . "\r\n" . ' <td colspan="3" align="center">' . lang('wheeloffortune_txt_22', true) . '</td>' . "\r\n" . ' </tr>';
- }
- echo "\r\n" . ' </table>' . "\r\n" . ' </div>';
- }
- else {
- if (mconfig('active')) {
- $General = new IMPERIAMUCMS();
- $General->ifn9fJgdGKPP_check_jhd7cBDv_Module_fnub7Hda_License('wheeloffortune');
- $General->fjbaYbddafFF_check_jf7bSC_Local_kgfjJG_Module_jGGrOZnf_License('wheeloffortune');
- echo "\r\n" . ' <div class="fortune-msg-holder"></div>' . "\r\n" . ' <div class="row desc-row">' . "\r\n" . ' <div class="col-xs-12">';
- $intervalInfo = false;
- if ((mconfig('enabled_month_day_start') != '-1') && (mconfig('enabled_month_day_end') != '-1')) {
- if (mconfig('enabled_month_day_start') == mconfig('enabled_month_day_end')) {
- 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')));
- }
- else {
- 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')));
- }
- $intervalInfo = true;
- }
- if ((mconfig('enabled_week_day_start') != '-1') && (mconfig('enabled_week_day_end') != '-1')) {
- if (mconfig('enabled_week_day_start') == mconfig('enabled_week_day_end')) {
- 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')));
- }
- else {
- 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')));
- }
- $intervalInfo = true;
- }
- if ((lang('wheeloffortune_txt_13', true) != NULL) && (lang('wheeloffortune_txt_13', true) != '')) {
- if ($intervalInfo) {
- echo '<br><br>';
- }
- echo lang('wheeloffortune_txt_13', true);
- }
- $totalCurrency = 0;
- switch (mconfig('price_type')) {
- case 1:
- if (config('MEMB_CREDITS_MEMUONLINE', true)) {
- $totalCurrency = $dB2->query_fetch_single('SELECT platinum FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- else {
- $totalCurrency = $dB->query_fetch_single('SELECT platinum FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- $totalCurrency = $totalCurrency['platinum'];
- $currencyName = lang('currency_platinum', true);
- break;
- case 2:
- if (config('MEMB_CREDITS_MEMUONLINE', true)) {
- $totalCurrency = $dB2->query_fetch_single('SELECT gold FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- else {
- $totalCurrency = $dB->query_fetch_single('SELECT gold FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- $totalCurrency = $totalCurrency['gold'];
- $currencyName = lang('currency_gold', true);
- break;
- case 3:
- if (config('MEMB_CREDITS_MEMUONLINE', true)) {
- $totalCurrency = $dB2->query_fetch_single('SELECT silver FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- else {
- $totalCurrency = $dB->query_fetch_single('SELECT silver FROM MEMB_CREDITS WHERE memb___id = ?', [$_SESSION['username']]);
- }
- $totalCurrency = $totalCurrency['silver'];
- $currencyName = lang('currency_silver', true);
- .......................................................................
- ......................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement