PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 7.4
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v7.4
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | includes/admin/Destination/Google/google-form.php +10 -10 6.107.4 View file →
@@ -15,9 +15,9 @@
15 15 // Validate that the contents of the form request came from the current site and not somewhere else added 21-08-15 V.3.4.
16 16 if ( ! isset( $_POST['wpdbbackup_update_google_setting'] ) ) {
17 17 wp_die( esc_html__('Invalid form data. form request came from the somewhere else not current site!','wpdbbkp') );
18 18 }
19 - if ( ! wp_verify_nonce( $_POST['wpdbbackup_update_google_setting'] , 'wpdbbackup-update-google-setting' ) ) {
19 + if ( ! wp_verify_nonce( wp_unslash( $_POST['wpdbbackup_update_google_setting'] ) , 'wpdbbackup-update-google-setting' ) ) { //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- using as nonce
20 20 wp_die( esc_html__('Invalid form data. form request came from the somewhere else not current site!','wpdbbkp') );
21 21 }
22 22 $client_id = '';
23 23 $client_secret = '';
@@ -69,9 +69,9 @@
69 69 exit;
70 70 }
71 71
72 72 // Put a "settings updated" message on the screen.
73 - $update_msg = '<div class="updated"><p><strong>Your google drive setting has been saved.</strong></p></div>';
73 + $update_msg = '<div class="updated"><p><strong>'.esc_html__('Your google drive setting has been saved.', 'wpdbbkp').'</strong></p></div>';
74 74 }
75 75 if ( isset( $_GET['code'] ) ) {
76 76 update_option( 'wpdb_dest_google_authCode', wp_db_filter_data( sanitize_text_field( wp_unslash( $_GET['code'] ) ) ) , false);
77 77 $wpdbbkp_gdrive_authCode = wp_db_filter_data( sanitize_text_field( wp_unslash( $_GET['code'] ) ) );
@@ -79,13 +79,13 @@
79 79
80 80 $wpdb_dest_google_auth_code = get_option( 'wpdb_dest_google_authCode' );
81 81 $wpdb_dest_google_client_key = get_option( 'wpdb_dest_google_client_key' );
82 82 $wpdb_dest_google_secret_key = get_option( 'wpdb_dest_google_secret_key' );
83 -$wpdbbkp_gdrive_status = '<label><b>Status</b>: Not Configured </label> ';
83 +$wpdbbkp_gdrive_status = '<label><b>'.esc_html__('Status','wpdbbkp').'</b>: '.esc_html__('Not Configured','wpdbbkp').' </label> ';
84 84
85 85 if(!empty($wpdb_dest_google_auth_code) && !empty($wpdb_dest_google_client_key) && !empty($wpdb_dest_google_secret_key))
86 86 {
87 - $wpdbbkp_gdrive_status='<label><b>Status</b>: <span class="dashicons dashicons-yes-alt" style="color:green;font-size:16px" title="Destination enabled"></span><span class="configured">Configured </span> </label> ';
87 + $wpdbbkp_gdrive_status='<label><b>'.esc_html__('Status','wpdbbkp').'</b>: <span class="dashicons dashicons-yes-alt" style="color:green;font-size:16px" title="'.esc_attr__('Destination enabled','wpdbbkp').'"></span><span class="configured">'.esc_html__('Configured','wpdbbkp').' </span> </label> ';
88 88 }
89 89 ?>
90 90 <div class="panel panel-default">
91 91 <div class="panel-heading">
@@ -90,9 +90,9 @@
90 90 <div class="panel panel-default">
91 91 <div class="panel-heading">
92 92 <h4 class="panel-title">
93 93 <a data-toggle="collapse" data-parent="#accordion" href="#collapsegoogle">
94 - <h2>Google drive<?php echo $wpdbbkp_gdrive_status;?> <span class="dashicons dashicons-admin-generic"></span></h2>
94 + <h2><?php echo esc_html__('Google drive', 'wpdbbkp'); ?><?php echo wp_kses_post($wpdbbkp_gdrive_status);?> <span class="dashicons dashicons-admin-generic"></span></h2>
95 95 </a>
96 96 </h4>
97 97 </div>
98 98 <div id="collapsegoogle" class="panel-collapse collapse">
@@ -105,10 +105,10 @@
105 105 wp_nonce_field( 'wp-database-backup' );
106 106 if ( ! empty( $wpdb_dest_google_auth_code ) && ! empty( $wpdb_dest_google_client_key ) && ! empty( $wpdb_dest_google_secret_key ) ) {
107 107 ?>
108 108 <p class="text-success"><?php echo esc_html__('Configuration to Google Drive Access has been done successfully', 'wpdbbkp') ?></p>
109 - <p><?php echo esc_html__('By clicking reset, you can reconfigure Google Account', 'wpdbbkp') ?></p>
110 - <p><?php echo esc_html__('For local backup click on Reset Configure', 'wpdbbkp') ?></p>
109 + <p><?php echo esc_html__('By clicking reset, you can reconfigure Google Account', 'wpdbbkp'); ?></p>
110 + <p><?php echo esc_html__('For local backup click on Reset Configure', 'wpdbbkp'); ?></p>
111 111 <p><input type="submit" name="reset" class="btn btn-primary" value="<?php esc_attr_e( 'Reset Configure' , 'wpdbbkp' ); ?>" />&nbsp;
112 112 </p>
113 113 <?php } else { ?>
114 114
@@ -119,16 +119,16 @@
119 119
120 120 <div class="row form-group">
121 121 <label class="col-sm-2" for="wpdb_dest_google_client_key"><?php echo esc_html__('Client ID', 'wpdbbkp') ?></label>
122 122 <div class="col-sm-6">
123 - <input type="text" id="wpdb_dest_google_client_key" class="form-control" name="wpdb_dest_google_client_key" value="<?php echo esc_html( get_option( 'wpdb_dest_google_client_key' ) ); ?>" size="25" placeholder="your client id">
123 + <input type="text" id="wpdb_dest_google_client_key" class="form-control" name="wpdb_dest_google_client_key" value="<?php echo esc_html( get_option( 'wpdb_dest_google_client_key' ) ); ?>" size="25" placeholder="<?php esc_attr_e('your client id','wpdbbkp');?>">
124 124 </div>
125 125 </div>
126 126
127 127 <div class="row form-group">
128 - <label class="col-sm-2" for="wpdb_dest_google_secret_key"><?php echo esc_html__('Client secret:', 'wpdbbkp') ?></label>
128 + <label class="col-sm-2" for="wpdb_dest_google_secret_key"><?php echo esc_html__('Client secret', 'wpdbbkp') ?></label>
129 129 <div class="col-sm-6">
130 - <input type="text" id="wpdb_dest_google_secret_key" class="form-control" name="wpdb_dest_google_secret_key" value="<?php echo esc_html( get_option( 'wpdb_dest_google_secret_key' ) ); ?>" size="25" placeholder="your client secret key">
130 + <input type="text" id="wpdb_dest_google_secret_key" class="form-control" name="wpdb_dest_google_secret_key" value="<?php echo esc_html( get_option( 'wpdb_dest_google_secret_key' ) ); ?>" size="25" placeholder="<?php esc_attr_e('your client secret key','wpdbbkp');?>">
131 131 </div>
132 132 </div>
133 133
134 134 <p><input type="submit" name="Submit" class="btn btn-primary" value="<?php esc_attr_e( 'Allow Access' , 'wpdbbkp' ); ?>" />&nbsp;