403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.217.84
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/testify/updater/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/testify/updater/updater.php
<?php
/* 
This file contains code from the Easy Digital Downloads Software Licensing addon.
Copyright Easy Digital Downloads; released under the GNU General Public License version 2 or later; used in this project under GNU General Public License version 3 or later (see license.txt ).
Modified by Jonathan Hall 2017-2018, 2019-07-29, 2019-07-30.
*/

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

//define( 'AGS_TESTIFY_STORE_URL', AGS_Divi_Icons::PLUGIN_AUTHOR_URL );
define('AGS_TESTIFY_ITEM_NAME', 'Testify'); // Needs to exactly match the download name in EDD
define('AGS_TESTIFY_PLUGIN_SLUG', 'testify');
define('AGS_TESTIFY_PLUGIN_PAGE', 'edit.php?post_type=testify-testimonial&page=testify-about');

define('AGS_TESTIFY_BRAND_NAME', 'WP Zone');

if (!class_exists('AGS_TESTIFY_Plugin_Updater')) {
    // load our custom updater
    include(dirname(__FILE__) . '/EDD_SL_Plugin_Updater.php');
}

// Load translations
load_plugin_textdomain('aspengrove-updater', false, plugin_basename(dirname(__FILE__) . '/lang'));

function AGS_TESTIFY_updater()
{

    // retrieve our license key from the DB
    $license_key = trim(get_option('AGS_TESTIFY_license_key'));

    // setup the updater
    new AGS_TESTIFY_Plugin_Updater(AGS_TESTIFY_STORE_URL, AGS_TESTIFY_PLUGIN_FILE, array(
            'version' => AGS_TESTIFY_VER, // current version number
            'license' => $license_key,        // license key (used get_option above to retrieve from DB)
            'item_name' => AGS_TESTIFY_ITEM_NAME,    // name of this plugin
            'author' => AGS_TESTIFY_BRAND_NAME,  // author of this plugin
            'beta' => false
        )
    );

    // creates our settings in the options table
    register_setting('AGS_TESTIFY_license', 'AGS_TESTIFY_license_key', 'AGS_TESTIFY_sanitize_license');

    if (isset($_POST['AGS_TESTIFY_license_key_deactivate'])) {
        require_once(dirname(__FILE__) . '/license-key-activation.php');
        $result = AGS_TESTIFY_deactivate_license();
        if ($result !== true) {
            define('AGS_TESTIFY_DEACTIVATE_ERROR', empty($result) ? __('An unknown error has occurred. Please try again.', 'aspengrove-updater') : $result);
        }
        unset($_POST['AGS_TESTIFY_license_key_deactivate']);
    }
}

add_action('admin_init', 'AGS_TESTIFY_updater', 0);


function AGS_TESTIFY_has_license_key()
{
    return (get_option('AGS_TESTIFY_license_status') === 'valid');
}

function AGS_TESTIFY_activate_page()
{
    $license = get_option('AGS_TESTIFY_license_key');
    $status = get_option('AGS_TESTIFY_license_status');
    ?>
    <div class="wrap" id="AGS_TESTIFY_license_key_activation_page">
        <form method="post" action="options.php" id="AGS_TESTIFY_license_form">
            <div id="AGS_TESTIFY_license_form_header">
                <a href="https://wpzone.co/?utm_source=<?php echo(AGS_TESTIFY_PLUGIN_SLUG); ?>&amp;utm_medium=plugin-credit-link&amp;utm_content=license-key-status"
                   target="_blank">
                    <img src="<?php echo(plugins_url('wp_zone_logo.png', __FILE__)); ?>"
                         alt="<?php echo(AGS_TESTIFY_BRAND_NAME); ?>"/>
                </a>
            </div>

            <div id="AGS_TESTIFY_license_form_body">
                <h3>
                    <?php echo(esc_html(AGS_TESTIFY_ITEM_NAME)); ?>
                    <small>v<?php echo(AGS_TESTIFY_VER); ?></small>
                </h3>

                <p>
                    <?php echo sprintf(esc_html__('Thank you for purchasing %s!%s  Please enter your license key below.', 'aspengrove-updater'), htmlspecialchars(AGS_TESTIFY_ITEM_NAME), '<br/>'); ?>
                </p>

                <?php settings_fields('AGS_TESTIFY_license'); ?>

                <label>
                    <span><?php _e('License Key:', 'aspengrove-updater'); ?></span>
                    <input name="AGS_TESTIFY_license_key" type="text"
                           class="regular-text"<?php if (!empty($_GET['license_key'])) { ?> value="<?php echo(esc_attr($_GET['license_key'])); ?>"<?php } else if (!empty($license)) { ?> value="<?php echo(esc_attr($license)); ?>"<?php } ?> />
                </label>

                <?php
                if (isset($_GET['sl_activation']) && $_GET['sl_activation'] == 'false') {
                    echo('<p id="AGS_TESTIFY_license_form_error">' . (empty($_GET['sl_message']) ? esc_html__('An unknown error has occurred. Please try again.', 'aspengrove-updater') : esc_html($_GET['sl_message'])) . '</p>');
                } else if (defined('AGS_TESTIFY_DEACTIVATE_ERROR')) {
                    // AGS_TESTIFY_DEACTIVATE_ERROR is already HTML escaped
                    echo('<p id="AGS_TESTIFY_license_form_error">' . AGS_TESTIFY_DEACTIVATE_ERROR . '</p>');
                }

                submit_button(esc_html__('Continue', 'aspengrove-updater'));
                ?>
            </div>
        </form>
    </div>
    <?php
}

function AGS_TESTIFY_license_key_box()
{
    $status = get_option('AGS_TESTIFY_license_status');

    $accepted_license = get_option('AGS_TESTIFY_license_key');
    $display_license = str_repeat('*', strlen($accepted_license) - 4) . substr($accepted_license, -4);

    ?>
    <div id="AGS_TESTIFY_license_key_box">
        <form method="post" action="<?php echo(esc_url(AGS_TESTIFY_PLUGIN_PAGE)); ?>" id="AGS_TESTIFY_license_form">
            <div id="AGS_TESTIFY_license_form_header">
                <a href="https://wpzone.co/?utm_source=<?php echo(AGS_TESTIFY_PLUGIN_SLUG); ?>&amp;utm_medium=plugin-credit-link&amp;utm_content=license-key-status"
                   target="_blank">
                    <img src="<?php echo(plugins_url('wp_zone_logo.png', __FILE__)); ?>"
                         alt="<?php echo(AGS_TESTIFY_BRAND_NAME); ?>"/>
                </a>
            </div>
            <div id="AGS_TESTIFY_license_form_body">
                <h3>
                    <?php echo(esc_html(AGS_TESTIFY_ITEM_NAME)); ?>
                    <small>v<?php echo(AGS_TESTIFY_VER); ?></small>
                </h3>

                <label>
                    <span><?php esc_html_e('License Key:', 'aspengrove-updater'); ?></span>
                    <input type="text" readonly="readonly" value="<?php echo(esc_html($display_license)); ?>"/>
                </label>

                <?php
                if (defined('AGS_TESTIFY_DEACTIVATE_ERROR')) {
                    echo('<p id="AGS_TESTIFY_license_form_error">' . AGS_TESTIFY_DEACTIVATE_ERROR . '</p>');
                }
                wp_nonce_field('AGS_TESTIFY_license_key_deactivate', 'AGS_TESTIFY_license_key_deactivate');
                submit_button(esc_html__('Deactivate License Key', 'aspengrove-updater'), '');
                ?>
            </div>
        </form>
    </div>
    <?php
}

function AGS_TESTIFY_sanitize_license($new)
{
    if (defined('AGS_TESTIFY_LICENSE_KEY_VALIDATED')) {
        return $new;
    }
    $old = get_option('AGS_TESTIFY_license_key');
    if ($old && $old != $new) {
        delete_option('AGS_TESTIFY_license_status'); // new license has been entered, so must reactivate
    }

    // Need to activate license here, only if submitted
    require_once(dirname(__FILE__) . '/license-key-activation.php');
    AGS_TESTIFY_activate_license($new); // Always redirects
}

Youez - 2016 - github.com/yon3zu
LinuXploit