403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/admin/includes/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/admin/includes/table_roulette.php
<div class="block roulette">
    <?
    $colors = [
        '#ff9ff3' => 'Jigglypuff',
        '#f368e0' => 'Lian Hong lotus pink',

        '#00d2d3' => 'Jade dust',
        '#01a3a4' => 'Aqua velvet',

        '#feca57' => 'Casandora yellow',
        '#ff9f43' => 'Double dragon skin',

        '#54a0ff' => 'Joust blue',
        '#2e86de' => 'Bleu de france',

        '#ff6b6b' => 'Pastel red',
        '#ee5253' => 'Amour',

        '#5f27cd' => 'Nasu purple',
        '#341f97' => 'Bluebell',

        '#48dbfb' => 'Megaman',
        '#0abde3' => 'Cyanite',

        '#1dd1a1' => 'Wild caribbean green',
        '#10ac84' => 'Dark mountain meadow',

        '#576574' => 'Fuel town',
        '#222f3e' => 'Imperial primer',

    ];
    $tmpBasketRule = [];
    $tmpBasketRule['nothing'] = GetMessage("skyweb24.popuppro_ROULETTE_NOTHING");
    $tmpBasketRule['win'] = GetMessage("skyweb24.popuppro_ROULETTE_WIN");
    $tmpLastBasketRule = 0;
    $tmpFirstBasketRule = 0;
    if (\Bitrix\Main\Loader::IncludeModule('sale')) {
        $tmpBasketRule_ = Skyweb24\Popuppro\Tools::getBasketRules();
        foreach ($tmpBasketRule_ as $key => $rule) {
            if ($tmpFirstBasketRule == 0) $tmpFirstBasketRule = $key;
            $tmpBasketRule[$key] = $rule;
            $tmpLastBasketRule = $key;
        }
    }
    if (empty($editArr['roulett'][1])) {
        $editArr['roulett'] = [
            '1' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_1_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_1_DEFAULT")],
            '2' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_2_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_2_DEFAULT")],
            '3' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_3_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_3_DEFAULT")],
            '4' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_4_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_4_DEFAULT")],
            '5' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_5_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_5_DEFAULT")],
            '6' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_6_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_6_DEFAULT")],
            '7' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_7_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_7_DEFAULT")],
            '8' => ['text' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_TEXT_8_DEFAULT"), 'color' => GetMessage("skyweb24.popuppro_TYPE_ROULETTE_COLOR_8_DEFAULT")]
        ];
        $editArr['roulett']['count'] = 8;
    }
    ?>
    <script>
        var colors_for_roulette = <?=CUtil::PhpToJSObject($colors)?>;
        var basket_rule_for_roulette = <?=CUtil::PhpToJSObject($tmpBasketRule)?>;
        var tmpLastBasketRule = <?=$tmpLastBasketRule?>;
        var tmpFirstBasketRule = <?=$tmpFirstBasketRule?>;
        var basket_rule_basic = '<?=GetMessage("skyweb24.popuppro_ROULETTE_BASIC")?>';
        var basket_rule_rules = '<?=GetMessage("skyweb24.popuppro_ROULETTE_RULES")?>';
        var minimum_message = '<?=GetMessage("skyweb24.popuppro_ROULETTE_MINIMUM")?>';
        var rule_info = '<?=GetMessage("skyweb24.popuppro_ROULETTE_RULE_INFO")?>';
    </script>
    <table class="adm-list-table">
        <thead>
        <tr class="adm-list-table-header">
            <td class="adm-list-table-cell"></td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_SORT") ?></div>
            </td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_TEXT") ?></div>
            </td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_COLOR") ?></div>
            </td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_RULE") ?>
                    <span class="skwb24-item-hint" id="hint_roulette_rule">?</span>
                    <script>
                        new top.BX.CHint({
                            parent: top.BX("hint_roulette_rule"),
                            show_timeout: 10,
                            hide_timeout: 200,
                            dx: 2,
                            preventHide: true,
                            min_width: 400,
                            hint: '<?echo GetMessage("skyweb24.popuppro_ROULETTE_RULE_INFO_BASIC"); echo (\Bitrix\Main\Loader::IncludeModule('sale')) ? GetMessage("skyweb24.popuppro_ROULETTE_RULE_INFO_SALE") : ''?>'
                        });
                    </script>
                </div>
            </td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_CHANCE") ?>
                    <span class="skwb24-item-hint" id="hint_roulette_chance">?</span>
                    <script>
                        new top.BX.CHint({
                            parent: top.BX("hint_roulette_chance"),
                            show_timeout: 10,
                            hide_timeout: 200,
                            dx: 2,
                            preventHide: true,
                            min_width: 400,
                            hint: '<?echo GetMessage("skyweb24.popuppro_ROULETTE_CHANCE_HINT");?>'
                        });
                    </script>
                </div>
            </td>
            <td class="adm-list-table-cell">
                <div class="adm-list-table-cell-inner"><?= GetMessage("skyweb24.popuppro_ROULETTE_CONTROL") ?></div>
            </td>
        </tr>
        </thead>
        <tbody class="drag_container">
            <? for ($i = 1; $i <= $editArr['roulett']['count']; $i++) {?>
                <tr class="adm-list-table-row draggable">
                    <td class="adm-list-table-cell">
                        <div class="adm-list-table-popup drag_key"></div>
                    </td>
                    <td class="adm-list-table-cell"><?= $i ?></td>
                    <td class="adm-list-table-cell">
                        <input type="text"
                               name="roulette_<?= $i ?>_text"
                               size="50"
                               class="roulette_text"
                               value="<?= $editArr['roulett'][$i]['text'] ?>">
                    </td>
                    <td class="adm-list-table-cell">
                        <input type="text"
                               name="roulette_<?=$i;?>_color"
                               class="roulette_color_picker"
                               value="<?=$editArr['roulett'][$i]['color'];?>"
                               style="background: <?=$editArr['roulett'][$i]['color'];?>">
                    </td>
                    <td class="adm-list-table-cell"><select
                            name="roulette_<?= $i ?>_rule"
                            class="rule_selector"><? foreach ($tmpBasketRule as $rule => $name) {
                                echo ($rule == 'nothing') ? '<optgroup label="' . GetMessage("skyweb24.popuppro_ROULETTE_BASIC") . '">' : '';
                                echo ($tmpFirstBasketRule == $rule) ? '<optgroup label="' . GetMessage("skyweb24.popuppro_ROULETTE_RULES") . '">' : ''; ?>
                                <option
                                value="<?= $rule ?>" <?= ($editArr['roulett'][$i]['rule'] == $rule) ? 'selected' : '' ?> ><?= $name ?></option><? echo ($rule == 'win') ? '</optgroup>' : '';
                                echo ($tmpLastBasketRule == $rule) ? '</optgroup>' : '';
                            } ?></select></td>
                    <td class="adm-list-table-cell">
                        <select class="roulette_chance_gravity"
                                name="roulette_<?= $i ?>_gravity">
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '100' || empty($editArr['roulett'][$i]['gravity'])) echo 'selected="selected"' ?>>
                                100
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '90') echo 'selected="selected"' ?>>
                                90
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '80') echo 'selected="selected"' ?>>
                                80
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '70') echo 'selected="selected"' ?>>
                                70
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '60') echo 'selected="selected"' ?>>
                                60
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '50') echo 'selected="selected"' ?>>
                                50
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '40') echo 'selected="selected"' ?>>
                                40
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '30') echo 'selected="selected"' ?>>
                                30
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '20') echo 'selected="selected"' ?>>
                                20
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '10') echo 'selected="selected"' ?>>
                                10
                            </option>
                            <option <? if ($editArr['roulett'][$i]['gravity'] == '0') echo 'selected="selected"' ?>>
                                0
                            </option>
                        </select>
                        <input name="roulette_<?= $i ?>_chance"
                               class="roulette_chance roulette_chance_hidden" type="hidden" step="0.01"
                               value="<?= $editArr['roulett'][$i]['chance'] ?>">
                        <span class="roulette_chance"><?= $editArr['roulett'][$i]['chance'] ?>%</span>
                    </td>
                    <td class="adm-list-table-cell">
                        <a href="javascript:void(0);"
                           onclick="remove_roulette_row(this);">
                            <img width="20px" height='25px' src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAzNzguMzAzIDM3OC4zMDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3OC4zMDMgMzc4LjMwMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSI1MTJweCIgaGVpZ2h0PSI1MTJweCI+Cjxwb2x5Z29uIHN0eWxlPSJmaWxsOiNGRjM1MDE7IiBwb2ludHM9IjM3OC4zMDMsMjguMjg1IDM1MC4wMTgsMCAxODkuMTUxLDE2MC44NjcgMjguMjg1LDAgMCwyOC4yODUgMTYwLjg2NywxODkuMTUxIDAsMzUwLjAxOCAgIDI4LjI4NSwzNzguMzAyIDE4OS4xNTEsMjE3LjQzNiAzNTAuMDE4LDM3OC4zMDIgMzc4LjMwMywzNTAuMDE4IDIxNy40MzYsMTg5LjE1MSAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==">
                        </a>
                    </td>
                </tr>
                <? } ?>

        </tbody>
    </table>
    <input type="hidden"
           value="<?= (!empty($editArr['roulett']['count']) ? $editArr['roulett']['count'] : 8) ?>"
           name="roulette_element_count">
    <a href="javascript:;" class="adm-btn-save adm-btn-add adm-btn add-roulette-row">
        <?= GetMessage("skyweb24.popuppro_ROULETTE_ADD") ?>
    </a>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit