__( 'Disabled', 'wardpair' ), 'daily' => __( 'Daily', 'wardpair' ), 'weekly' => __( 'Weekly', 'wardpair' ), ); $swp_enc_on = Sentinel_Backup_Crypt::is_enabled(); $swp_enc_avail = Sentinel_Backup_Crypt::is_available(); $swp_enc_plain = $swp_enc_avail ? Sentinel_Backup_Crypt::plaintext_summary() : array( 'convertible' => 0, 'clone_files' => 0 ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only display of a page name or status flag; nothing is changed. $swp_enc_flag = isset( $_GET['swp_enc'] ) ? sanitize_key( wp_unslash( $_GET['swp_enc'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only display of a page name or status flag; nothing is changed. $swp_enc_msg = isset( $_GET['swp_enc_msg'] ) ? sanitize_text_field( wp_unslash( $_GET['swp_enc_msg'] ) ) : ''; $swp_dir_state = get_option( Sentinel_Backup::OPT_EXPOSURE, array() ); $swp_dir_outside = is_array( $swp_dir_state ) && ! empty( $swp_dir_state['outside'] ); $swp_unlisted = Sentinel_Backup::unlisted_files(); $swp_rollback = Sentinel_Backup::rollback_copies(); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only display of a result count; nothing is changed. $swp_rolled = isset( $_GET['swp_rollback'] ) ? absint( wp_unslash( $_GET['swp_rollback'] ) ) : -1; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only display of a result count; nothing is changed. $swp_adopted = isset( $_GET['swp_adopt'] ) ? absint( wp_unslash( $_GET['swp_adopt'] ) ) : -1; $type_labels = array( 'manual' => __( 'Manual', 'wardpair' ), 'scheduled' => __( 'Scheduled', 'wardpair' ), 'pre_failover' => __( 'Pre-failover', 'wardpair' ), 'pre_restore' => __( 'Pre-restore', 'wardpair' ), 'pre_clone' => __( 'Pre-clone (secondary snapshot)', 'wardpair' ), 'upload' => __( 'Uploaded', 'wardpair' ), 'adopted' => __( 'Recovered', 'wardpair' ), ); ?>

__( 'Thanks. The recovery key reminder is turned off.', 'wardpair' ), 'imported' => __( 'Recovery key added. Backups made with it can now be restored and downloaded here.', 'wardpair' ), 'on' => __( 'Encryption turned on for new backups.', 'wardpair' ), 'off' => __( 'Encryption turned off for new backups.', 'wardpair' ), 'slack_sent' => __( 'The recovery key was sent to Slack. The recovery key reminder is turned off.', 'wardpair' ), 'slack_off' => __( 'Sending the recovery key to Slack is turned off. Messages already in Slack stay there; delete them there if you no longer want them.', 'wardpair' ), ); echo esc_html( $swp_enc_msg ?: ( $swp_flag_text[ $swp_enc_flag ] ?? '' ) ); ?>

0 || (int) $swp_enc_plain['clone_files'] > 0 ) : ?>

0 ) : ?>

0 ) : ?>

/

= 0 ) : ?>

= 0 ) : ?>