@@ -11,10 +11,10 @@ discard block |
||
11 | 11 | |
12 | 12 | ?> |
13 | 13 | |
14 | -<h1><?= esc_html( get_admin_page_title() ); ?></h1> |
|
14 | +<h1><?= esc_html(get_admin_page_title()); ?></h1> |
|
15 | 15 | |
16 | 16 | <script> |
17 | - var xcloner_auth_key = '<?php echo md5( AUTH_KEY )?>'; |
|
17 | + var xcloner_auth_key = '<?php echo md5(AUTH_KEY)?>'; |
|
18 | 18 | </script> |
19 | 19 | |
20 | 20 | <div class="row xcloner-restore"> |
@@ -22,36 +22,36 @@ discard block |
||
22 | 22 | <ul class="collapsible xcloner-restore " data-collapsible="accordion"> |
23 | 23 | <li data-step="1" class="restore-script-upload-step steps active show"> |
24 | 24 | <div class="collapsible-header active"><i |
25 | - class="material-icons">settings_remote</i><?php echo __( "Restore Script Upload", 'xcloner-backup-and-restore' ) ?> |
|
25 | + class="material-icons">settings_remote</i><?php echo __("Restore Script Upload", 'xcloner-backup-and-restore') ?> |
|
26 | 26 | </div> |
27 | 27 | <div class="collapsible-body row"> |
28 | 28 | |
29 | 29 | <ul class="text-steps"> |
30 | - <li><?php echo __( "If you want to do a <strong>Local Target System Restore</strong>, leave Url field below empty and click 'Check Connection', you can skip the next steps.", 'xcloner-backup-and-restore' ) ?> |
|
30 | + <li><?php echo __("If you want to do a <strong>Local Target System Restore</strong>, leave Url field below empty and click 'Check Connection', you can skip the next steps.", 'xcloner-backup-and-restore') ?> |
|
31 | 31 | </li> |
32 | - <li><?php echo __( "If you want to do a <strong>Remote Target System Restore</strong>, please download the restore script from", 'xcloner-backup-and-restore' ) ?> |
|
32 | + <li><?php echo __("If you want to do a <strong>Remote Target System Restore</strong>, please download the restore script from", 'xcloner-backup-and-restore') ?> |
|
33 | 33 | <a href='#' |
34 | - onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __( "here", 'xcloner-backup-and-restore' ) ?></strong></a> |
|
34 | + onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __("here", 'xcloner-backup-and-restore') ?></strong></a> |
|
35 | 35 | </li> |
36 | 36 | <li> |
37 | - <?php echo __( "Extract the restore script archive files on your new host", 'xcloner-backup-and-restore' ) ?> |
|
37 | + <?php echo __("Extract the restore script archive files on your new host", 'xcloner-backup-and-restore') ?> |
|
38 | 38 | </li> |
39 | 39 | <li> |
40 | - <?php echo __( "Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php", 'xcloner-backup-and-restore' ) ?> |
|
40 | + <?php echo __("Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php", 'xcloner-backup-and-restore') ?> |
|
41 | 41 | </li> |
42 | 42 | <li> |
43 | - <?php echo __( "If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.", 'xcloner-backup-and-restore' ) ?> |
|
43 | + <?php echo __("If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.", 'xcloner-backup-and-restore') ?> |
|
44 | 44 | </li> |
45 | - <?php if ( is_ssl() ): ?> |
|
45 | + <?php if (is_ssl()): ?> |
|
46 | 46 | <li class="warning"> |
47 | - <?php echo __( "We have detected your connection to the site as being secure, so your restore script address must start with https://." ) ?> |
|
47 | + <?php echo __("We have detected your connection to the site as being secure, so your restore script address must start with https://.") ?> |
|
48 | 48 | </li> |
49 | 49 | <?php endif ?> |
50 | 50 | |
51 | 51 | </ul> |
52 | 52 | |
53 | 53 | <div class="input-field col l9 s12"> |
54 | - <input value="<?php echo ( is_ssl() ) ? "https://" : "" ?>" id="restore_script_url" type="text" |
|
54 | + <input value="<?php echo (is_ssl()) ? "https://" : "" ?>" id="restore_script_url" type="text" |
|
55 | 55 | class="validate" |
56 | 56 | placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php"> |
57 | 57 | <label for="restore_script_url"></label> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | </div> |
60 | 60 | <div class="col l3 s12 right-align"> |
61 | 61 | <button class="btn waves-effect waves-light" type="submit" id="validate_url" |
62 | - name="action"><?php echo __( "Check Connection", 'xcloner-backup-and-restore' ) ?> |
|
62 | + name="action"><?php echo __("Check Connection", 'xcloner-backup-and-restore') ?> |
|
63 | 63 | <i class="material-icons right">send</i> |
64 | 64 | </button> |
65 | 65 | </div> |
@@ -68,18 +68,18 @@ discard block |
||
68 | 68 | |
69 | 69 | <li data-step="2" class="backup-upload-step steps"> |
70 | 70 | <div class="collapsible-header active"><i |
71 | - class="material-icons">file_upload</i><?php echo __( "Upload Local Backup Archive To Target Host", 'xcloner-backup-and-restore' ) ?> |
|
71 | + class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Target Host", 'xcloner-backup-and-restore') ?> |
|
72 | 72 | </div> |
73 | 73 | <div class="collapsible-body row"> |
74 | - <p><?php echo __( "You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.", 'xcloner-backup-and-restore' ) ?></p> |
|
74 | + <p><?php echo __("You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.", 'xcloner-backup-and-restore') ?></p> |
|
75 | 75 | <div class="input-field col s12 l7"> |
76 | 76 | <select id="backup_file" name="backup_file" class="browser-default"> |
77 | 77 | <option value="" disabled |
78 | - selected><?php echo __( "Please select a local backup archive to upload to target host", 'xcloner-backup-and-restore' ) ?></option> |
|
79 | - <?php if ( is_array( $backup_list ) ): ?> |
|
80 | - <?php foreach ( $backup_list as $file ): ?> |
|
78 | + selected><?php echo __("Please select a local backup archive to upload to target host", 'xcloner-backup-and-restore') ?></option> |
|
79 | + <?php if (is_array($backup_list)): ?> |
|
80 | + <?php foreach ($backup_list as $file): ?> |
|
81 | 81 | <option value="<?php echo $file['basename'] ?>"> |
82 | - <?php echo $file['basename'] ?> (<?php echo size_format( $file['size'] ) ?>) |
|
82 | + <?php echo $file['basename'] ?> (<?php echo size_format($file['size']) ?>) |
|
83 | 83 | </option> |
84 | 84 | <?php endforeach ?> |
85 | 85 | <?php endif ?> |
@@ -94,18 +94,18 @@ discard block |
||
94 | 94 | <div class="col s12 l5 right-align"> |
95 | 95 | <div class="toggler"> |
96 | 96 | <button class="btn waves-effect waves-light upload-backup normal" type="submit" id="" |
97 | - name="action"><?php echo __( "Upload", 'xcloner-backup-and-restore' ) ?> |
|
97 | + name="action"><?php echo __("Upload", 'xcloner-backup-and-restore') ?> |
|
98 | 98 | <i class="material-icons left">navigate_before</i> |
99 | 99 | </button> |
100 | 100 | <button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id="" |
101 | - name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?> |
|
101 | + name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?> |
|
102 | 102 | <i class="material-icons right">close</i> |
103 | 103 | </button> |
104 | 104 | </div> |
105 | 105 | <button class="btn waves-effect waves-light grey" type="submit" |
106 | - title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>" |
|
106 | + title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>" |
|
107 | 107 | id="skip_upload_backup" |
108 | - name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?> |
|
108 | + name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?> |
|
109 | 109 | <i class="material-icons right">navigate_next</i> |
110 | 110 | </button> |
111 | 111 | </div> |
@@ -114,13 +114,13 @@ discard block |
||
114 | 114 | |
115 | 115 | <li data-step="3" class="restore-remote-backup-step steps active"> |
116 | 116 | <div class="collapsible-header"><i |
117 | - class="material-icons">folder_open</i><?php echo __( "Restore Files Backup Available On Target Location", 'xcloner-backup-and-restore' ) ?> |
|
117 | + class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Target Location", 'xcloner-backup-and-restore') ?> |
|
118 | 118 | <i class="material-icons right" title="Refresh Target Backup Files List" |
119 | 119 | id="refresh_remote_backup_file">cached</i> |
120 | 120 | |
121 | 121 | <div class="switch right"> |
122 | 122 | <label> |
123 | - <?php echo __( 'Verbose Output', 'xcloner-backup-and-restore' ) ?> |
|
123 | + <?php echo __('Verbose Output', 'xcloner-backup-and-restore') ?> |
|
124 | 124 | <input type="checkbox" id="toggle_file_restore_display" name="toggle_file_restore_display" |
125 | 125 | class="" checked value="1"> |
126 | 126 | <span class="lever"></span> |
@@ -135,11 +135,11 @@ discard block |
||
135 | 135 | <div class="col s12"> |
136 | 136 | <a class="btn-floating tooltipped btn-small right" data-html="true" data-position="left" |
137 | 137 | data-delay="50" |
138 | - data-tooltip="<?php echo __( "This is the directory where you would like to restore the backup archive files.<br /> |
|
139 | - Please use this with caution when restoring to a live site.", 'xcloner-backup-and-restore' ) ?>"><i |
|
138 | + data-tooltip="<?php echo __("This is the directory where you would like to restore the backup archive files.<br /> |
|
139 | + Please use this with caution when restoring to a live site.", 'xcloner-backup-and-restore') ?>"><i |
|
140 | 140 | class="material-icons">help_outline</i> |
141 | 141 | </a> |
142 | - <h5><?php echo __( "Restore Target Path:", 'xcloner-backup-and-restore' ) ?></h5> |
|
142 | + <h5><?php echo __("Restore Target Path:", 'xcloner-backup-and-restore') ?></h5> |
|
143 | 143 | <input type="text" name="remote_restore_path" id="remote_restore_path" class="validate" |
144 | 144 | placeholder="Restore Target Path"> |
145 | 145 | <label></label> |
@@ -151,13 +151,13 @@ discard block |
||
151 | 151 | <div class="col s12"> |
152 | 152 | <a href="#backup_localhost-2017-04-03_10-58-sql-diff2017-03-22_00-00-5b6c4.tgz" |
153 | 153 | class="list-backup-content btn-floating tooltipped btn-small right" |
154 | - data-tooltip="<?php echo __( 'Click To List The Selected Backup Content', 'xcloner-backup-and-restore' ) ?>"> |
|
154 | + data-tooltip="<?php echo __('Click To List The Selected Backup Content', 'xcloner-backup-and-restore') ?>"> |
|
155 | 155 | <i class="material-icons">folder_open</i> |
156 | 156 | </a> |
157 | - <h5><?php echo __( "Restore Backup Archive:", 'xcloner-backup-and-restore' ) ?></h5> |
|
157 | + <h5><?php echo __("Restore Backup Archive:", 'xcloner-backup-and-restore') ?></h5> |
|
158 | 158 | <select id="remote_backup_file" name="remote_backup_file" class="browser-default"> |
159 | 159 | <option value="" disabled |
160 | - selected><?php echo __( "Please select the target backup file to restore", 'xcloner-backup-and-restore' ) ?></option> |
|
160 | + selected><?php echo __("Please select the target backup file to restore", 'xcloner-backup-and-restore') ?></option> |
|
161 | 161 | </select> |
162 | 162 | <label></label> |
163 | 163 | </div> |
@@ -166,41 +166,41 @@ discard block |
||
166 | 166 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_all" checked |
167 | 167 | value="" disabled/> |
168 | 168 | <label for="filter_files_all" class="tooltipped" data-position="right" |
169 | - data-tooltip="<?php echo __( "Restore all backup files. Available only when doing a Remote Target System Restore", 'xcloner-backup-and-restore' ) ?>"><?php echo __( "Restore All Files", "xcloner-backup-and-restore" ) ?></label> |
|
169 | + data-tooltip="<?php echo __("Restore all backup files. Available only when doing a Remote Target System Restore", 'xcloner-backup-and-restore') ?>"><?php echo __("Restore All Files", "xcloner-backup-and-restore") ?></label> |
|
170 | 170 | |
171 | 171 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_wp_content" |
172 | 172 | value="/^wp-content\/(.*)/"/> |
173 | 173 | <label for="filter_files_wp_content" class="tooltipped" |
174 | - data-tooltip="<?php echo __( 'Restore the files only of the wp-content/ folder', 'xcloner-backup-and-restore' ) ?>"> |
|
175 | - <?php echo __( "Only wp-content", "xcloner-backup-and-restore" ) ?> |
|
174 | + data-tooltip="<?php echo __('Restore the files only of the wp-content/ folder', 'xcloner-backup-and-restore') ?>"> |
|
175 | + <?php echo __("Only wp-content", "xcloner-backup-and-restore") ?> |
|
176 | 176 | </label> |
177 | 177 | |
178 | 178 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_plugins" |
179 | 179 | value="/^wp-content\/plugins(.*)/"/> |
180 | 180 | <label for="filter_files_plugins" class="tooltipped" |
181 | - data-tooltip="<?php echo __( 'Restore the files only of the wp-content/plugins/ folder', 'xcloner-backup-and-restore' ) ?>"> |
|
182 | - <?php echo __( "Only Plugins", "xcloner-backup-and-restore" ) ?> |
|
181 | + data-tooltip="<?php echo __('Restore the files only of the wp-content/plugins/ folder', 'xcloner-backup-and-restore') ?>"> |
|
182 | + <?php echo __("Only Plugins", "xcloner-backup-and-restore") ?> |
|
183 | 183 | </label> |
184 | 184 | |
185 | 185 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_uploads" |
186 | 186 | value="/^wp-content\/uploads(.*)/"/> |
187 | 187 | <label for="filter_files_uploads" class="tooltipped" |
188 | - data-tooltip="<?php echo __( 'Restore the files only of the wp-content/uploads/ folder only', 'xcloner-backup-and-restore' ) ?>"> |
|
189 | - <?php echo __( "Only Uploads", "xcloner-backup-and-restore" ) ?> |
|
188 | + data-tooltip="<?php echo __('Restore the files only of the wp-content/uploads/ folder only', 'xcloner-backup-and-restore') ?>"> |
|
189 | + <?php echo __("Only Uploads", "xcloner-backup-and-restore") ?> |
|
190 | 190 | </label> |
191 | 191 | |
192 | 192 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_themes" |
193 | 193 | value="/^wp-content\/themes(.*)/"/> |
194 | 194 | <label for="filter_files_themes" class="tooltipped" |
195 | - data-tooltip="<?php echo __( 'Restore the files only of the wp-content/themes/ folder', 'xcloner-backup-and-restore' ) ?>"> |
|
196 | - <?php echo __( "Only Themes", "xcloner-backup-and-restore" ) ?> |
|
195 | + data-tooltip="<?php echo __('Restore the files only of the wp-content/themes/ folder', 'xcloner-backup-and-restore') ?>"> |
|
196 | + <?php echo __("Only Themes", "xcloner-backup-and-restore") ?> |
|
197 | 197 | </label> |
198 | 198 | |
199 | 199 | <input class="with-gap" name="filter_files" type="radio" id="filter_files_database" |
200 | 200 | value="/^xcloner-(.*)\/(.*)\.sql/"/> |
201 | 201 | <label for="filter_files_database" class="tooltipped" |
202 | - data-tooltip="<?php echo __( 'Restore the database-sql.sql mysql backup from the xcloner-xxxxx/ folder', 'xcloner-backup-and-restore' ) ?>"> |
|
203 | - <?php echo __( "Only Database Backup", "xcloner-backup-and-restore" ) ?> |
|
202 | + data-tooltip="<?php echo __('Restore the database-sql.sql mysql backup from the xcloner-xxxxx/ folder', 'xcloner-backup-and-restore') ?>"> |
|
203 | + <?php echo __("Only Database Backup", "xcloner-backup-and-restore") ?> |
|
204 | 204 | </label> |
205 | 205 | </div> |
206 | 206 | </div> |
@@ -216,18 +216,18 @@ discard block |
||
216 | 216 | <div class="col s12 l5 right-align"> |
217 | 217 | <div class="toggler"> |
218 | 218 | <button class="btn waves-effect waves-light restore_remote_backup normal " type="submit" |
219 | - id="" name="action"><?php echo __( "Restore", 'xcloner-backup-and-restore' ) ?> |
|
219 | + id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore') ?> |
|
220 | 220 | <i class="material-icons left">navigate_before</i> |
221 | 221 | </button> |
222 | 222 | <button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit" |
223 | - id="" name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?> |
|
223 | + id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?> |
|
224 | 224 | <i class="material-icons right">close</i> |
225 | 225 | </button> |
226 | 226 | </div> |
227 | 227 | <button class="btn waves-effect waves-light grey" type="submit" |
228 | - title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>" |
|
228 | + title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>" |
|
229 | 229 | id="skip_remote_backup_step" |
230 | - name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?> |
|
230 | + name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?> |
|
231 | 231 | <i class="material-icons right">navigate_next</i> |
232 | 232 | </button> |
233 | 233 | </div> |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | <li data-step="4" class="restore-remote-database-step steps active"> |
238 | 238 | <div class="collapsible-header"><i |
239 | - class="material-icons">list</i><?php echo __( "Restore Target Database - Search and Replace", 'xcloner-backup-and-restore' ) ?> |
|
239 | + class="material-icons">list</i><?php echo __("Restore Target Database - Search and Replace", 'xcloner-backup-and-restore') ?> |
|
240 | 240 | <i class="material-icons right" title="Refresh Database Backup Files List" |
241 | 241 | id="refresh_database_file">cached</i> |
242 | 242 | </div> |
@@ -246,68 +246,68 @@ discard block |
||
246 | 246 | <div class="col s12"> |
247 | 247 | <a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" |
248 | 248 | data-html="true" |
249 | - data-tooltip="<?php echo __( 'Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.', 'xcloner-backup-and-restore' ) ?>" |
|
249 | + data-tooltip="<?php echo __('Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.', 'xcloner-backup-and-restore') ?>" |
|
250 | 250 | data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a> |
251 | - <h5><?php echo __( 'Target Mysql Details', 'xcloner-backup-and-restore' ) ?></h5> |
|
251 | + <h5><?php echo __('Target Mysql Details', 'xcloner-backup-and-restore') ?></h5> |
|
252 | 252 | </div> |
253 | 253 | <div class=" col s12"> |
254 | 254 | <div class="input-field col s12 m6"> |
255 | 255 | <input type="text" name="remote_mysql_host" id="remote_mysql_host" class="validate" |
256 | 256 | placeholder="Target Mysql Hostname"> |
257 | - <label><?php echo __( "Target Mysql Hostname", 'xcloner-backup-and-restore' ) ?></label> |
|
257 | + <label><?php echo __("Target Mysql Hostname", 'xcloner-backup-and-restore') ?></label> |
|
258 | 258 | </div> |
259 | 259 | |
260 | 260 | <div class="input-field col s12 m6"> |
261 | 261 | <input type="text" name="remote_mysql_db" id="remote_mysql_db" class="validate" |
262 | 262 | placeholder="Target Mysql Database"> |
263 | - <label><?php echo __( "Target Mysql Database", 'xcloner-backup-and-restore' ) ?></label> |
|
263 | + <label><?php echo __("Target Mysql Database", 'xcloner-backup-and-restore') ?></label> |
|
264 | 264 | </div> |
265 | 265 | |
266 | 266 | <div class="input-field col s12 m6"> |
267 | 267 | <input type="text" name="remote_mysql_user" id="remote_mysql_user" class="validate" |
268 | 268 | placeholder="Target Mysql Username"> |
269 | - <label><?php echo __( "Target Mysql Username", 'xcloner-backup-and-restore' ) ?></label> |
|
269 | + <label><?php echo __("Target Mysql Username", 'xcloner-backup-and-restore') ?></label> |
|
270 | 270 | </div> |
271 | 271 | |
272 | 272 | |
273 | 273 | <div class="input-field col s12 m6"> |
274 | 274 | <input type="text" name="remote_mysql_pass" id="remote_mysql_pass" class="validate" |
275 | 275 | placeholder="Target Mysql Password"> |
276 | - <label><?php echo __( "Target Mysql Password", 'xcloner-backup-and-restore' ) ?></label> |
|
276 | + <label><?php echo __("Target Mysql Password", 'xcloner-backup-and-restore') ?></label> |
|
277 | 277 | </div> |
278 | 278 | |
279 | 279 | </div> |
280 | 280 | <div class="col s12"> |
281 | 281 | <a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" |
282 | 282 | data-html="true" |
283 | - data-tooltip="<?php echo __( 'I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.', 'xcloner-backup-and-restore' ) ?>" |
|
283 | + data-tooltip="<?php echo __('I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.', 'xcloner-backup-and-restore') ?>" |
|
284 | 284 | data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a> |
285 | - <h5><?php echo __( 'Target Mysql Search and Replace', 'xcloner-backup-and-restore' ) ?></h5> |
|
285 | + <h5><?php echo __('Target Mysql Search and Replace', 'xcloner-backup-and-restore') ?></h5> |
|
286 | 286 | </div> |
287 | 287 | <div class="col s12"> |
288 | 288 | <div class="input-field col s12 m6 "> |
289 | 289 | <input type="text" name="wp_home_url" id="wp_home_url" class="validate" |
290 | 290 | placeholder="WP Home Url" value="<?php echo home_url(); ?>"> |
291 | - <label><?php echo __( "Source Home Url", 'xcloner-backup-and-restore' ) ?></label> |
|
291 | + <label><?php echo __("Source Home Url", 'xcloner-backup-and-restore') ?></label> |
|
292 | 292 | </div> |
293 | 293 | |
294 | 294 | <div class="input-field col s12 m6 "> |
295 | 295 | <input type="text" name="remote_restore_url" id="remote_restore_url" class="validate" |
296 | 296 | placeholder="Restore Target Url"> |
297 | - <label><?php echo __( "With Target Home Url", 'xcloner-backup-and-restore' ) ?></label> |
|
297 | + <label><?php echo __("With Target Home Url", 'xcloner-backup-and-restore') ?></label> |
|
298 | 298 | </div> |
299 | 299 | |
300 | - <?php if ( site_url() != home_url() ) : ?> |
|
300 | + <?php if (site_url() != home_url()) : ?> |
|
301 | 301 | <div class="input-field col s12 m6 "> |
302 | 302 | <input type="text" name="wp_site_url" id="wp_site_url" class="validate" |
303 | 303 | placeholder="WP Site Url" value="<?php echo site_url(); ?>"> |
304 | - <label><?php echo __( "Source Site Url", 'xcloner-backup-and-restore' ) ?></label> |
|
304 | + <label><?php echo __("Source Site Url", 'xcloner-backup-and-restore') ?></label> |
|
305 | 305 | </div> |
306 | 306 | |
307 | 307 | <div class="input-field col s12 m6 "> |
308 | 308 | <input type="text" name="remote_restore_site_url" id="remote_restore_site_url" |
309 | 309 | class="validate" placeholder="Restore Target Url"> |
310 | - <label><?php echo __( "With Target Site Url", 'xcloner-backup-and-restore' ) ?></label> |
|
310 | + <label><?php echo __("With Target Site Url", 'xcloner-backup-and-restore') ?></label> |
|
311 | 311 | </div> |
312 | 312 | |
313 | 313 | <?php endif; ?> |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | <div class="input-field row"> |
320 | 320 | <select id="remote_database_file" name="remote_database_file" class="browser-default"> |
321 | 321 | <option value="" disabled |
322 | - selected><?php echo __( "Please select the target database backup file to restore", 'xcloner-backup-and-restore' ) ?></option> |
|
322 | + selected><?php echo __("Please select the target database backup file to restore", 'xcloner-backup-and-restore') ?></option> |
|
323 | 323 | </select> |
324 | 324 | |
325 | 325 | <label></label> |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | |
332 | 332 | <div class="status"></div> |
333 | 333 | <div class="query-box"> |
334 | - <h6><?php echo __( 'Use the field below to fix your mysql query and Retry again the Restore, or replace with # to Skip next', 'xcloner-backup-and-restore' ) ?></h6> |
|
334 | + <h6><?php echo __('Use the field below to fix your mysql query and Retry again the Restore, or replace with # to Skip next', 'xcloner-backup-and-restore') ?></h6> |
|
335 | 335 | <textarea class="query-list" cols="5"></textarea> |
336 | 336 | </div> |
337 | 337 | </div> |
@@ -339,20 +339,20 @@ discard block |
||
339 | 339 | <div class="col s12 l5 right-align"> |
340 | 340 | <div class="toggler"> |
341 | 341 | <button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit" |
342 | - id="" name="action"><?php echo __( "Restore", 'xcloner-backup-and-restore' ) ?> |
|
342 | + id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore') ?> |
|
343 | 343 | <i class="material-icons left">navigate_before</i> |
344 | 344 | </button> |
345 | 345 | <button class="btn waves-effect waves-light red restore_remote_mysqldump cancel" |
346 | 346 | type="submit" id="" |
347 | - name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?> |
|
347 | + name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?> |
|
348 | 348 | <i class="material-icons right">close</i> |
349 | 349 | </button> |
350 | 350 | </div> |
351 | 351 | |
352 | 352 | <button class="btn waves-effect waves-light grey" type="submit" |
353 | - title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>" |
|
353 | + title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>" |
|
354 | 354 | id="skip_restore_remote_database_step" |
355 | - name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?> |
|
355 | + name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?> |
|
356 | 356 | <i class="material-icons right">navigate_next</i> |
357 | 357 | </button> |
358 | 358 | |
@@ -363,13 +363,13 @@ discard block |
||
363 | 363 | |
364 | 364 | <li data-step="5" class="restore-finish-step steps active"> |
365 | 365 | <div class="collapsible-header"><i |
366 | - class="material-icons">folder_open</i><?php echo __( "Finishing up...", 'xcloner-backup-and-restore' ) ?> |
|
366 | + class="material-icons">folder_open</i><?php echo __("Finishing up...", 'xcloner-backup-and-restore') ?> |
|
367 | 367 | </div> |
368 | 368 | <div class="collapsible-body row"> |
369 | 369 | |
370 | 370 | <div class="row"> |
371 | 371 | <div class="col s4"> |
372 | - <label><?php echo __( "Update wp-config.php mysql details and update the Target Site Url", 'xcloner-backup-and-restore' ) ?></label> |
|
372 | + <label><?php echo __("Update wp-config.php mysql details and update the Target Site Url", 'xcloner-backup-and-restore') ?></label> |
|
373 | 373 | </div> |
374 | 374 | |
375 | 375 | <div class="col s8"> |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | <div class="row"> |
389 | 389 | <div class="col s4"> |
390 | - <label><?php echo __( "Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore' ) ?></label> |
|
390 | + <label><?php echo __("Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore') ?></label> |
|
391 | 391 | </div> |
392 | 392 | <div class="col s8"> |
393 | 393 | <div class="switch"> |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | |
405 | 405 | <div class="row"> |
406 | 406 | <div class="col s4"> |
407 | - <label><?php echo __( "Delete Restore Script", 'xcloner-backup-and-restore' ) ?></label> |
|
407 | + <label><?php echo __("Delete Restore Script", 'xcloner-backup-and-restore') ?></label> |
|
408 | 408 | </div> |
409 | 409 | <div class="col s8"> |
410 | 410 | <div class="switch"> |
@@ -424,8 +424,8 @@ discard block |
||
424 | 424 | </div> |
425 | 425 | |
426 | 426 | <div class=" row col s12 center-align" id="xcloner_restore_finish"> |
427 | - <h5><?php echo __( "Thank you for using XCloner.", 'xcloner-backup-and-restore' ) ?></h5> |
|
428 | - <h6><?php echo sprintf( __( "We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore' ), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>' ) ?></h6> |
|
427 | + <h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore') ?></h5> |
|
428 | + <h6><?php echo sprintf(__("We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore'), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>') ?></h6> |
|
429 | 429 | <a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow |
430 | 430 | @thinkovi</a> |
431 | 431 | <script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script> |
@@ -435,14 +435,14 @@ discard block |
||
435 | 435 | <div class="row"> |
436 | 436 | <div class="col s6 right-align"> |
437 | 437 | <button class="btn waves-effect waves-light teal" type="submit" id="restore_finish" |
438 | - name="action"><?php echo __( "Finish", 'xcloner-backup-and-restore' ) ?> |
|
438 | + name="action"><?php echo __("Finish", 'xcloner-backup-and-restore') ?> |
|
439 | 439 | <i class="material-icons right">navigate_next</i> |
440 | 440 | </button> |
441 | 441 | </div> |
442 | 442 | |
443 | 443 | <div id="open_target_site" class="col s6 left-align"> |
444 | 444 | <a disabled="disabled" href="#" class="btn waves-effect waves-light teal" type="button" |
445 | - target="_blank"><?php echo __( "Open Target Site", 'xcloner-backup-and-restore' ) ?> |
|
445 | + target="_blank"><?php echo __("Open Target Site", 'xcloner-backup-and-restore') ?> |
|
446 | 446 | <i class="material-icons right">navigate_next</i> |
447 | 447 | </a> |
448 | 448 | </div> |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | <!-- List Backup Content Modal--> |
460 | 460 | <div id="backup_cotent_modal" class="modal"> |
461 | 461 | <div class="modal-content"> |
462 | - <h4><?php echo sprintf( __( "Listing Backup Content ", 'xcloner-backup-and-restore' ), "" ) ?></h4> |
|
462 | + <h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "") ?></h4> |
|
463 | 463 | <h5 class="backup-name"></h5> |
464 | 464 | |
465 | 465 | <div class="progress"> |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | |
21 | 21 | $logger_content = $logger->getLastDebugLines(); |
22 | 22 | |
23 | -$date_format = get_option( 'date_format' ); |
|
24 | -$time_format = get_option( 'time_format' ); |
|
23 | +$date_format = get_option('date_format'); |
|
24 | +$time_format = get_option('time_format'); |
|
25 | 25 | |
26 | 26 | //$xcloner_file_system->cleanup_tmp_directories(); |
27 | 27 | |
28 | -if ( $requirements->check_backup_ready_status() ) { |
|
28 | +if ($requirements->check_backup_ready_status()) { |
|
29 | 29 | $latest_backup = $xcloner_file_system->get_latest_backup(); |
30 | 30 | $xcloner_file_system->backup_storage_cleanup(); |
31 | 31 | } |
@@ -34,15 +34,15 @@ discard block |
||
34 | 34 | <div class="row"> |
35 | 35 | <div class="col s12"> |
36 | 36 | <h5 class="left-align"> |
37 | - <?php echo __( 'Backup Dashboard', 'xcloner-backup-and-restore' ) ?> |
|
37 | + <?php echo __('Backup Dashboard', 'xcloner-backup-and-restore') ?> |
|
38 | 38 | </h5> |
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 | |
42 | -<?php if ( isset( $latest_backup['timestamp'] ) and $latest_backup['timestamp'] < strtotime( "-1 day" ) ): ?> |
|
42 | +<?php if (isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?> |
|
43 | 43 | <div id="setting-error-" class="error settings-error notice is-dismissible"> |
44 | 44 | <p><strong> |
45 | - <?php echo __( 'Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore' ) ?> |
|
45 | + <?php echo __('Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?> |
|
46 | 46 | </strong> |
47 | 47 | </p> |
48 | 48 | <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span> |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | </div> |
51 | 51 | <?php endif ?> |
52 | 52 | |
53 | -<?php if ( ! isset( $latest_backup['timestamp'] ) ): ?> |
|
53 | +<?php if (!isset($latest_backup['timestamp'])): ?> |
|
54 | 54 | <div id="setting-error-" class="error settings-error notice is-dismissible"> |
55 | 55 | <p><strong> |
56 | - <?php echo __( 'You have no backup that I could find, please generate a new backup to keep your site protected.', 'xcloner-backup-and-restore' ) ?> |
|
56 | + <?php echo __('You have no backup that I could find, please generate a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?> |
|
57 | 57 | </strong> |
58 | 58 | </p> |
59 | 59 | <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span> |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | </div> |
62 | 62 | <?php endif ?> |
63 | 63 | |
64 | -<?php if ( ! $requirements->check_backup_ready_status() ): ?> |
|
64 | +<?php if (!$requirements->check_backup_ready_status()): ?> |
|
65 | 65 | <div id="setting-error-" class="error settings-error notice is-dismissible"> |
66 | 66 | <p><strong> |
67 | - <?php echo __( 'Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore' ) ?> |
|
67 | + <?php echo __('Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore') ?> |
|
68 | 68 | </strong> |
69 | 69 | </p> |
70 | 70 | <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span> |
@@ -87,74 +87,74 @@ discard block |
||
87 | 87 | <div class="collapsible-body"> |
88 | 88 | <div class="" id="backup-status"> |
89 | 89 | <div class="row"> |
90 | - <h5><?php echo __( "Latest Backup", 'xcloner-backup-and-restore' ) ?></h5> |
|
90 | + <h5><?php echo __("Latest Backup", 'xcloner-backup-and-restore') ?></h5> |
|
91 | 91 | <blockquote> |
92 | - <?php if ( $latest_backup ): ?> |
|
92 | + <?php if ($latest_backup): ?> |
|
93 | 93 | <div class="item"> |
94 | - <div class="title"><?php echo __( "Backup Name", 'xcloner-backup-and-restore' ) ?> |
|
94 | + <div class="title"><?php echo __("Backup Name", 'xcloner-backup-and-restore') ?> |
|
95 | 95 | : |
96 | 96 | </div> |
97 | 97 | <?php echo $latest_backup['basename'] ?> |
98 | 98 | </div> |
99 | 99 | <div class="item"> |
100 | 100 | <div class="title"> |
101 | - <?php echo __( "Backup Size", 'xcloner-backup-and-restore' ) ?>: |
|
101 | + <?php echo __("Backup Size", 'xcloner-backup-and-restore') ?>: |
|
102 | 102 | </div> |
103 | - <?php echo size_format( $latest_backup['size'] ) ?> |
|
103 | + <?php echo size_format($latest_backup['size']) ?> |
|
104 | 104 | </div> |
105 | 105 | <div class="item"> |
106 | - <div class="title"><?php echo __( "Backup Date", 'xcloner-backup-and-restore' ) ?> |
|
106 | + <div class="title"><?php echo __("Backup Date", 'xcloner-backup-and-restore') ?> |
|
107 | 107 | : |
108 | 108 | </div> |
109 | 109 | <?php |
110 | - echo date( $date_format . " " . $time_format, $latest_backup['timestamp'] + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ) |
|
110 | + echo date($date_format." ".$time_format, $latest_backup['timestamp'] + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
111 | 111 | ?> |
112 | 112 | </div> |
113 | 113 | <?php else: ?> |
114 | 114 | <div class="item"> |
115 | - <div class="title"><?php echo __( "No Backup Yet", 'xcloner-backup-and-restore' ) ?></div> |
|
115 | + <div class="title"><?php echo __("No Backup Yet", 'xcloner-backup-and-restore') ?></div> |
|
116 | 116 | </div> |
117 | 117 | <?php endif ?> |
118 | 118 | </blockquote> |
119 | 119 | <div> |
120 | - <h5><?php echo __( "Backup Storage Usage", 'xcloner-backup-and-restore' ) ?></h5> |
|
120 | + <h5><?php echo __("Backup Storage Usage", 'xcloner-backup-and-restore') ?></h5> |
|
121 | 121 | <blockquote> |
122 | 122 | <div class="item"> |
123 | - <div class="title"><?php echo __( "Total Size", 'xcloner-backup-and-restore' ) ?> |
|
123 | + <div class="title"><?php echo __("Total Size", 'xcloner-backup-and-restore') ?> |
|
124 | 124 | : |
125 | 125 | </div> |
126 | - <?php echo size_format( $xcloner_file_system->get_storage_usage() ); ?> |
|
126 | + <?php echo size_format($xcloner_file_system->get_storage_usage()); ?> |
|
127 | 127 | </div> |
128 | 128 | </blockquote> |
129 | - <h5><?php echo __( "Next Scheduled Backup", 'xcloner-backup-and-restore' ) ?></h5> |
|
129 | + <h5><?php echo __("Next Scheduled Backup", 'xcloner-backup-and-restore') ?></h5> |
|
130 | 130 | <blockquote> |
131 | 131 | <div class="item"> |
132 | 132 | <?php |
133 | - $list = ( $xcloner_scheduler->get_next_run_schedule() ); |
|
133 | + $list = ($xcloner_scheduler->get_next_run_schedule()); |
|
134 | 134 | |
135 | - if ( is_array( $list ) ) { |
|
136 | - $xcloner_file_system->sort_by( $list, "next_run_time", "asc" ); |
|
135 | + if (is_array($list)) { |
|
136 | + $xcloner_file_system->sort_by($list, "next_run_time", "asc"); |
|
137 | 137 | } |
138 | 138 | |
139 | - if ( isset( $list[0] ) ) { |
|
139 | + if (isset($list[0])) { |
|
140 | 140 | $latest_schedule = $list[0]; |
141 | 141 | } |
142 | 142 | ?> |
143 | - <?php if ( isset( $latest_schedule->name ) ): ?> |
|
144 | - <div class="title"><?php echo __( "Schedule Name", 'xcloner-backup-and-restore' ) ?> |
|
143 | + <?php if (isset($latest_schedule->name)): ?> |
|
144 | + <div class="title"><?php echo __("Schedule Name", 'xcloner-backup-and-restore') ?> |
|
145 | 145 | : |
146 | 146 | </div> |
147 | 147 | <?php echo $latest_schedule->name; ?> |
148 | 148 | <?php endif; ?> |
149 | 149 | </div> |
150 | 150 | <div class="item"> |
151 | - <div class="title"><?php echo __( "Next Call", 'xcloner-backup-and-restore' ) ?> |
|
151 | + <div class="title"><?php echo __("Next Call", 'xcloner-backup-and-restore') ?> |
|
152 | 152 | : |
153 | 153 | </div> |
154 | - <?php if ( isset( $latest_schedule->next_run_time ) ) { |
|
155 | - echo date( $date_format . " " . $time_format, $latest_schedule->next_run_time ); |
|
154 | + <?php if (isset($latest_schedule->next_run_time)) { |
|
155 | + echo date($date_format." ".$time_format, $latest_schedule->next_run_time); |
|
156 | 156 | } else { |
157 | - echo __( "Unscheduled", 'xcloner-backup-and-restore' ); |
|
157 | + echo __("Unscheduled", 'xcloner-backup-and-restore'); |
|
158 | 158 | } |
159 | 159 | ?> |
160 | 160 | </div> |
@@ -163,20 +163,20 @@ discard block |
||
163 | 163 | </div> |
164 | 164 | </li> |
165 | 165 | |
166 | - <?php if ( $xcloner_settings->get_xcloner_option( 'xcloner_enable_log' ) ) : ?> |
|
166 | + <?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) : ?> |
|
167 | 167 | <li class="active"> |
168 | 168 | <div class="collapsible-header active"> |
169 | - <i class="material-icons">bug_report</i><?php echo __( 'XCloner Debugger', 'xcloner-backup-and-restore' ) ?> |
|
169 | + <i class="material-icons">bug_report</i><?php echo __('XCloner Debugger', 'xcloner-backup-and-restore') ?> |
|
170 | 170 | <div class="right"> |
171 | - <a href="#<?php echo $logger_basename = basename( $logger->get_main_logger_url() ) ?>" |
|
171 | + <a href="#<?php echo $logger_basename = basename($logger->get_main_logger_url()) ?>" |
|
172 | 172 | class="download-logger" title="<?php echo $logger_basename ?>"> |
173 | 173 | <span class="shorten_string"><?php echo $logger_basename ?> </span> |
174 | 174 | </a> |
175 | 175 | </div> |
176 | 176 | </div> |
177 | 177 | <div class="collapsible-body"> |
178 | - <div class="console" id="xcloner-console"><?php if ( $logger_content ) { |
|
179 | - echo implode( "<br />\n", array_reverse( $logger_content ) ); |
|
178 | + <div class="console" id="xcloner-console"><?php if ($logger_content) { |
|
179 | + echo implode("<br />\n", array_reverse($logger_content)); |
|
180 | 180 | } ?></div> |
181 | 181 | </div> |
182 | 182 | </li> |
@@ -201,71 +201,71 @@ discard block |
||
201 | 201 | |
202 | 202 | <div class="card blue-grey darken-1 z-depth-4 backup-ready"> |
203 | 203 | <div class="card-content white-text"> |
204 | - <span class="card-title"><?php echo __( "System Check", 'xcloner-backup-and-restore' ) ?></span> |
|
204 | + <span class="card-title"><?php echo __("System Check", 'xcloner-backup-and-restore') ?></span> |
|
205 | 205 | <ul> |
206 | - <li class="card-panel <?php echo( $requirements->check_xcloner_start_path( 1 ) ? "teal" : "red" ) ?> lighten-2"> |
|
207 | - <?php echo __( 'Backup Start Location', 'xcloner-backup-and-restore' ) ?>: <span |
|
206 | + <li class="card-panel <?php echo($requirements->check_xcloner_start_path(1) ? "teal" : "red") ?> lighten-2"> |
|
207 | + <?php echo __('Backup Start Location', 'xcloner-backup-and-restore') ?>: <span |
|
208 | 208 | class="shorten_string "><?php echo $requirements->check_xcloner_start_path(); ?></span> |
209 | 209 | </li> |
210 | - <li class="card-panel <?php echo( $requirements->check_xcloner_store_path( 1 ) ? "teal" : "red" ) ?> lighten-2"> |
|
211 | - <?php echo __( 'Backup Storage Location', 'xcloner-backup-and-restore' ) ?>: <span |
|
210 | + <li class="card-panel <?php echo($requirements->check_xcloner_store_path(1) ? "teal" : "red") ?> lighten-2"> |
|
211 | + <?php echo __('Backup Storage Location', 'xcloner-backup-and-restore') ?>: <span |
|
212 | 212 | class="shorten_string"><?php echo $requirements->check_xcloner_store_path(); ?></span> |
213 | 213 | </li> |
214 | - <li class="card-panel <?php echo( $requirements->check_xcloner_tmp_path( 1 ) ? "teal" : "red" ) ?> lighten-2"> |
|
215 | - <?php echo __( 'Temporary Location', 'xcloner-backup-and-restore' ) ?>: <span |
|
214 | + <li class="card-panel <?php echo($requirements->check_xcloner_tmp_path(1) ? "teal" : "red") ?> lighten-2"> |
|
215 | + <?php echo __('Temporary Location', 'xcloner-backup-and-restore') ?>: <span |
|
216 | 216 | class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path(); ?></span> |
217 | 217 | </li> |
218 | 218 | |
219 | - <li class="card-panel <?php echo( $requirements->check_min_php_version( 1 ) ? "teal" : "red" ) ?> lighten-2"> |
|
220 | - <?php echo __( 'PHP Version Check', 'xcloner-backup-and-restore' ) ?> |
|
219 | + <li class="card-panel <?php echo($requirements->check_min_php_version(1) ? "teal" : "red") ?> lighten-2"> |
|
220 | + <?php echo __('PHP Version Check', 'xcloner-backup-and-restore') ?> |
|
221 | 221 | : <?php echo $requirements->check_min_php_version(); ?> |
222 | - ( >= <?php echo $requirements->get_constant( 'min_php_version' ) ?>) |
|
222 | + ( >= <?php echo $requirements->get_constant('min_php_version') ?>) |
|
223 | 223 | </li> |
224 | - <li class="card-panel <?php echo( $requirements->check_safe_mode( 1 ) ? "teal" : "orange" ) ?> lighten-2"> |
|
225 | - <?php echo __( 'PHP Safe Mode', 'xcloner-backup-and-restore' ) ?> |
|
224 | + <li class="card-panel <?php echo($requirements->check_safe_mode(1) ? "teal" : "orange") ?> lighten-2"> |
|
225 | + <?php echo __('PHP Safe Mode', 'xcloner-backup-and-restore') ?> |
|
226 | 226 | : <?php echo $requirements->check_safe_mode(); ?> |
227 | - ( <?php echo $requirements->get_constant( 'safe_mode' ) ?>) |
|
227 | + ( <?php echo $requirements->get_constant('safe_mode') ?>) |
|
228 | 228 | </li> |
229 | - <li class="card-panel <?php echo( $requirements->check_backup_ready_status() ? "teal" : "red" ) ?> lighten-2"> |
|
230 | - <?php echo( $requirements->check_backup_ready_status() ? __( 'BACKUP READY', 'xcloner-backup-and-restore' ) : __( 'Backup not ready, please check above requirements', 'xcloner-backup-and-restore' ) ) ?> |
|
231 | - <i class="material-icons right tiny"><?php echo( $requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down' ) ?></i> |
|
229 | + <li class="card-panel <?php echo($requirements->check_backup_ready_status() ? "teal" : "red") ?> lighten-2"> |
|
230 | + <?php echo($requirements->check_backup_ready_status() ? __('BACKUP READY', 'xcloner-backup-and-restore') : __('Backup not ready, please check above requirements', 'xcloner-backup-and-restore')) ?> |
|
231 | + <i class="material-icons right tiny"><?php echo($requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down') ?></i> |
|
232 | 232 | </li> |
233 | 233 | </ul> |
234 | 234 | <ul class="additional_system_info"> |
235 | 235 | <li class="card-panel grey darken-1"> |
236 | - <?php echo __( 'PHP max_execution_time', 'xcloner-backup-and-restore' ) ?> |
|
236 | + <?php echo __('PHP max_execution_time', 'xcloner-backup-and-restore') ?> |
|
237 | 237 | : <?php echo $requirements->get_max_execution_time(); ?> |
238 | 238 | </li> |
239 | 239 | <li class="card-panel grey darken-1"> |
240 | - <?php echo __( 'PHP memory_limit', 'xcloner-backup-and-restore' ) ?> |
|
240 | + <?php echo __('PHP memory_limit', 'xcloner-backup-and-restore') ?> |
|
241 | 241 | : <?php echo $requirements->get_memory_limit(); ?> |
242 | 242 | </li> |
243 | 243 | <li class="card-panel grey darken-1"> |
244 | - <?php echo __( 'PHP open_basedir', 'xcloner-backup-and-restore' ) ?> |
|
244 | + <?php echo __('PHP open_basedir', 'xcloner-backup-and-restore') ?> |
|
245 | 245 | : <?php echo $requirements->get_open_basedir(); ?> |
246 | 246 | </li> |
247 | 247 | <?php |
248 | 248 | $data = array(); |
249 | - if ( $requirements->check_backup_ready_status() ) { |
|
249 | + if ($requirements->check_backup_ready_status()) { |
|
250 | 250 | $data = $xcloner_file_system->estimate_read_write_time(); |
251 | 251 | } |
252 | 252 | ?> |
253 | 253 | <li class="card-panel grey darken-1"> |
254 | - <?php echo __( 'Reading Time 1MB Block', 'xcloner-backup-and-restore' ) ?> |
|
255 | - : <?php echo( isset( $data['reading_time'] ) ? $data['reading_time'] : __( "unknown" ) ); ?> |
|
254 | + <?php echo __('Reading Time 1MB Block', 'xcloner-backup-and-restore') ?> |
|
255 | + : <?php echo(isset($data['reading_time']) ? $data['reading_time'] : __("unknown")); ?> |
|
256 | 256 | </li> |
257 | 257 | <li class="card-panel grey darken-1"> |
258 | - <?php echo __( 'Writing Time 1MB Block', 'xcloner-backup-and-restore' ) ?> |
|
259 | - : <?php echo( isset( $data['writing_time'] ) ? $data['writing_time'] : __( "unknown" ) ); ?> |
|
258 | + <?php echo __('Writing Time 1MB Block', 'xcloner-backup-and-restore') ?> |
|
259 | + : <?php echo(isset($data['writing_time']) ? $data['writing_time'] : __("unknown")); ?> |
|
260 | 260 | </li> |
261 | 261 | <li class="card-panel grey darken-1"> |
262 | - <?php echo __( 'Free Disk Space', 'xcloner-backup-and-restore' ) ?> |
|
263 | - : <?php echo $requirements->get_free_disk_space();; ?> |
|
262 | + <?php echo __('Free Disk Space', 'xcloner-backup-and-restore') ?> |
|
263 | + : <?php echo $requirements->get_free_disk_space(); ; ?> |
|
264 | 264 | </li> |
265 | 265 | </ul> |
266 | 266 | </div> |
267 | 267 | <div class="card-action"> |
268 | - <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __( 'Toggle Additional System Info', 'xcloner-backup-and-restore' ) ?> |
|
268 | + <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __('Toggle Additional System Info', 'xcloner-backup-and-restore') ?> |
|
269 | 269 | </a> |
270 | 270 | </div> |
271 | 271 | </div> |
@@ -110,7 +110,8 @@ discard block |
||
110 | 110 | echo date( $date_format . " " . $time_format, $latest_backup['timestamp'] + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ) |
111 | 111 | ?> |
112 | 112 | </div> |
113 | - <?php else: ?> |
|
113 | + <?php else { |
|
114 | + : ?> |
|
114 | 115 | <div class="item"> |
115 | 116 | <div class="title"><?php echo __( "No Backup Yet", 'xcloner-backup-and-restore' ) ?></div> |
116 | 117 | </div> |
@@ -123,7 +124,9 @@ discard block |
||
123 | 124 | <div class="title"><?php echo __( "Total Size", 'xcloner-backup-and-restore' ) ?> |
124 | 125 | : |
125 | 126 | </div> |
126 | - <?php echo size_format( $xcloner_file_system->get_storage_usage() ); ?> |
|
127 | + <?php echo size_format( $xcloner_file_system->get_storage_usage() ); |
|
128 | +} |
|
129 | +?> |
|
127 | 130 | </div> |
128 | 131 | </blockquote> |
129 | 132 | <h5><?php echo __( "Next Scheduled Backup", 'xcloner-backup-and-restore' ) ?></h5> |
@@ -3,13 +3,13 @@ discard block |
||
3 | 3 | |
4 | 4 | $gdrive_auth_url = ""; |
5 | 5 | |
6 | -if ( method_exists( $remote_storage, "get_gdrive_auth_url" ) ) { |
|
6 | +if (method_exists($remote_storage, "get_gdrive_auth_url")) { |
|
7 | 7 | $gdrive_auth_url = $remote_storage->get_gdrive_auth_url(); |
8 | 8 | } |
9 | 9 | |
10 | 10 | $gdrive_construct = $remote_storage->gdrive_construct(); |
11 | 11 | ?> |
12 | -<h1><?= esc_html( get_admin_page_title() ); ?></h1> |
|
12 | +<h1><?= esc_html(get_admin_page_title()); ?></h1> |
|
13 | 13 | |
14 | 14 | <form class="remote-storage-form" method="POST"> |
15 | 15 | |
@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | <!-- FTP STORAGE--> |
22 | 22 | <li id="ftp"> |
23 | 23 | <div class="collapsible-header"> |
24 | - <i class="material-icons">computer</i><?php echo __( "FTP Storage", 'xcloner-backup-and-restore' ) ?> |
|
24 | + <i class="material-icons">computer</i><?php echo __("FTP Storage", 'xcloner-backup-and-restore') ?> |
|
25 | 25 | <div class="switch right"> |
26 | 26 | <label> |
27 | 27 | Off |
28 | 28 | <input type="checkbox" name="xcloner_ftp_enable" class="status" |
29 | - value="1" <?php if ( get_option( "xcloner_ftp_enable" ) ) |
|
29 | + value="1" <?php if (get_option("xcloner_ftp_enable")) |
|
30 | 30 | echo "checked" ?> \> |
31 | 31 | <span class="lever"></span> |
32 | 32 | On |
@@ -36,121 +36,121 @@ discard block |
||
36 | 36 | <div class="collapsible-body"> |
37 | 37 | <div class="row"> |
38 | 38 | <div class="col s12 m3 label"> |
39 | - <label for="ftp_host"><?php echo __( "Ftp Hostname", 'xcloner-backup-and-restore' ) ?></label> |
|
39 | + <label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore') ?></label> |
|
40 | 40 | </div> |
41 | 41 | <div class="col s12 m6"> |
42 | - <input placeholder="<?php echo __( "Ftp Hostname", 'xcloner-backup-and-restore' ) ?>" |
|
42 | + <input placeholder="<?php echo __("Ftp Hostname", 'xcloner-backup-and-restore') ?>" |
|
43 | 43 | id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" |
44 | - value="<?php echo get_option( "xcloner_ftp_hostname" ) ?>"> |
|
44 | + value="<?php echo get_option("xcloner_ftp_hostname") ?>"> |
|
45 | 45 | </div> |
46 | 46 | <div class=" col s12 m2"> |
47 | - <input placeholder="<?php echo __( "Ftp Port", 'xcloner-backup-and-restore' ) ?>" |
|
47 | + <input placeholder="<?php echo __("Ftp Port", 'xcloner-backup-and-restore') ?>" |
|
48 | 48 | id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" |
49 | - value="<?php echo get_option( "xcloner_ftp_port", 21 ) ?>"> |
|
49 | + value="<?php echo get_option("xcloner_ftp_port", 21) ?>"> |
|
50 | 50 | </div> |
51 | 51 | </div> |
52 | 52 | |
53 | 53 | <div class="row"> |
54 | 54 | <div class="col s12 m3 label"> |
55 | - <label for="ftp_username"><?php echo __( "Ftp Username", 'xcloner-backup-and-restore' ) ?></label> |
|
55 | + <label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore') ?></label> |
|
56 | 56 | </div> |
57 | 57 | <div class=" col s12 m6"> |
58 | - <input placeholder="<?php echo __( "Ftp Username", 'xcloner-backup-and-restore' ) ?>" |
|
58 | + <input placeholder="<?php echo __("Ftp Username", 'xcloner-backup-and-restore') ?>" |
|
59 | 59 | id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" |
60 | - value="<?php echo get_option( "xcloner_ftp_username" ) ?>" autocomplete="off"> |
|
60 | + value="<?php echo get_option("xcloner_ftp_username") ?>" autocomplete="off"> |
|
61 | 61 | </div> |
62 | 62 | </div> |
63 | 63 | |
64 | 64 | |
65 | 65 | <div class="row"> |
66 | 66 | <div class="col s12 m3 label"> |
67 | - <label for="ftp_password"><?php echo __( "Ftp Password", 'xcloner-backup-and-restore' ) ?></label> |
|
67 | + <label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore') ?></label> |
|
68 | 68 | </div> |
69 | 69 | <div class=" col s12 m6"> |
70 | - <input placeholder="<?php echo __( "Ftp Password", 'xcloner-backup-and-restore' ) ?>" |
|
70 | + <input placeholder="<?php echo __("Ftp Password", 'xcloner-backup-and-restore') ?>" |
|
71 | 71 | id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" |
72 | - value="<?php echo get_option( "xcloner_ftp_password" ) ?>" autocomplete="off"> |
|
72 | + value="<?php echo get_option("xcloner_ftp_password") ?>" autocomplete="off"> |
|
73 | 73 | </div> |
74 | 74 | </div> |
75 | 75 | |
76 | 76 | <div class="row"> |
77 | 77 | <div class="col s12 m3 label"> |
78 | - <label for="ftp_root"><?php echo __( "Ftp Storage Folder", 'xcloner-backup-and-restore' ) ?></label> |
|
78 | + <label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore') ?></label> |
|
79 | 79 | </div> |
80 | 80 | <div class=" col s12 m6"> |
81 | - <input placeholder="<?php echo __( "Ftp Storage Folder", 'xcloner-backup-and-restore' ) ?>" |
|
81 | + <input placeholder="<?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore') ?>" |
|
82 | 82 | id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" |
83 | - value="<?php echo get_option( "xcloner_ftp_path" ) ?>"> |
|
83 | + value="<?php echo get_option("xcloner_ftp_path") ?>"> |
|
84 | 84 | </div> |
85 | 85 | </div> |
86 | 86 | |
87 | 87 | <div class="row"> |
88 | 88 | <div class="col s12 m3 label"> |
89 | - <label for="ftp_root"><?php echo __( "Ftp Transfer Mode", 'xcloner-backup-and-restore' ) ?></label> |
|
89 | + <label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore') ?></label> |
|
90 | 90 | </div> |
91 | 91 | <div class=" col s12 m6 input-field inline"> |
92 | 92 | <input name="xcloner_ftp_transfer_mode" type="radio" id="passive" |
93 | - value="1" <?php if ( get_option( "xcloner_ftp_transfer_mode", 1 ) ) |
|
93 | + value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1)) |
|
94 | 94 | echo "checked" ?> /> |
95 | - <label for="passive"><?php echo __( "Passive", 'xcloner-backup-and-restore' ) ?></label> |
|
95 | + <label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore') ?></label> |
|
96 | 96 | |
97 | 97 | <input name="xcloner_ftp_transfer_mode" type="radio" id="active" |
98 | - value="0" <?php if ( ! get_option( "xcloner_ftp_transfer_mode", 1 ) ) |
|
98 | + value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1)) |
|
99 | 99 | echo "checked" ?> /> |
100 | - <label for="active"><?php echo __( "Active", 'xcloner-backup-and-restore' ) ?></label> |
|
100 | + <label for="active"><?php echo __("Active", 'xcloner-backup-and-restore') ?></label> |
|
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | |
104 | 104 | <div class="row"> |
105 | 105 | <div class="col s12 m3 label"> |
106 | - <label for="ftp_ssl_mode"><?php echo __( "Ftp Secure Connection", 'xcloner-backup-and-restore' ) ?></label> |
|
106 | + <label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore') ?></label> |
|
107 | 107 | </div> |
108 | 108 | <div class=" col s12 m6 input-field inline"> |
109 | 109 | <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" |
110 | - value="0" <?php if ( ! get_option( "xcloner_ftp_ssl_mode" ) ) |
|
110 | + value="0" <?php if (!get_option("xcloner_ftp_ssl_mode")) |
|
111 | 111 | echo "checked" ?> /> |
112 | - <label for="ftp_ssl_mode_inactive"><?php echo __( "Disable", 'xcloner-backup-and-restore' ) ?></label> |
|
112 | + <label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore') ?></label> |
|
113 | 113 | |
114 | 114 | <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" |
115 | - value="1" <?php if ( get_option( "xcloner_ftp_ssl_mode" ) ) |
|
115 | + value="1" <?php if (get_option("xcloner_ftp_ssl_mode")) |
|
116 | 116 | echo "checked" ?> /> |
117 | - <label for="ftp_ssl_mode_active"><?php echo __( "Enable", 'xcloner-backup-and-restore' ) ?></label> |
|
117 | + <label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore') ?></label> |
|
118 | 118 | </div> |
119 | 119 | </div> |
120 | 120 | |
121 | 121 | <div class="row"> |
122 | 122 | <div class="col s12 m3 label"> |
123 | - <label for="ftp_timeout"><?php echo __( "Ftp Timeout", 'xcloner-backup-and-restore' ) ?></label> |
|
123 | + <label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore') ?></label> |
|
124 | 124 | </div> |
125 | 125 | <div class=" col s12 m2"> |
126 | - <input placeholder="<?php echo __( "Ftp Timeout", 'xcloner-backup-and-restore' ) ?>" |
|
126 | + <input placeholder="<?php echo __("Ftp Timeout", 'xcloner-backup-and-restore') ?>" |
|
127 | 127 | id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" |
128 | - value="<?php echo get_option( "xcloner_ftp_timeout", 30 ) ?>"> |
|
128 | + value="<?php echo get_option("xcloner_ftp_timeout", 30) ?>"> |
|
129 | 129 | </div> |
130 | 130 | </div> |
131 | 131 | |
132 | 132 | <div class="row"> |
133 | 133 | <div class="col s12 m3 label"> |
134 | - <label for="ftp_cleanup_days"><?php echo __( "Ftp Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
134 | + <label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
135 | 135 | </div> |
136 | 136 | <div class=" col s12 m6"> |
137 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
137 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
138 | 138 | id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" |
139 | - class="validate" value="<?php echo get_option( "xcloner_ftp_cleanup_days" ) ?>"> |
|
139 | + class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days") ?>"> |
|
140 | 140 | </div> |
141 | 141 | </div> |
142 | 142 | |
143 | 143 | <div class="row"> |
144 | 144 | <div class="col s6 m4"> |
145 | 145 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
146 | - value="ftp"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
146 | + value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
147 | 147 | <i class="material-icons right">save</i> |
148 | 148 | </button> |
149 | 149 | </div> |
150 | 150 | <div class="col s6 m4"> |
151 | 151 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
152 | 152 | id="action" value="ftp" |
153 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
153 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
154 | 154 | <i class="material-icons right">import_export</i> |
155 | 155 | </button> |
156 | 156 | </div> |
@@ -161,12 +161,12 @@ discard block |
||
161 | 161 | <!-- SFTP STORAGE--> |
162 | 162 | <li id="sftp"> |
163 | 163 | <div class="collapsible-header"> |
164 | - <i class="material-icons">computer</i><?php echo __( "SFTP Storage", 'xcloner-backup-and-restore' ) ?> |
|
164 | + <i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore') ?> |
|
165 | 165 | <div class="switch right"> |
166 | 166 | <label> |
167 | 167 | Off |
168 | 168 | <input type="checkbox" name="xcloner_sftp_enable" class="status" |
169 | - value="1" <?php if ( get_option( "xcloner_sftp_enable" ) ) |
|
169 | + value="1" <?php if (get_option("xcloner_sftp_enable")) |
|
170 | 170 | echo "checked" ?> \> |
171 | 171 | <span class="lever"></span> |
172 | 172 | On |
@@ -176,100 +176,100 @@ discard block |
||
176 | 176 | <div class="collapsible-body"> |
177 | 177 | <div class="row"> |
178 | 178 | <div class="col s12 m3 label"> |
179 | - <label for="sftp_host"><?php echo __( "SFTP Hostname", 'xcloner-backup-and-restore' ) ?></label> |
|
179 | + <label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore') ?></label> |
|
180 | 180 | </div> |
181 | 181 | <div class="col s12 m6"> |
182 | - <input placeholder="<?php echo __( "SFTP Hostname", 'xcloner-backup-and-restore' ) ?>" |
|
182 | + <input placeholder="<?php echo __("SFTP Hostname", 'xcloner-backup-and-restore') ?>" |
|
183 | 183 | id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" |
184 | - value="<?php echo get_option( "xcloner_sftp_hostname" ) ?>"> |
|
184 | + value="<?php echo get_option("xcloner_sftp_hostname") ?>"> |
|
185 | 185 | </div> |
186 | 186 | <div class=" col s12 m2"> |
187 | - <input placeholder="<?php echo __( "SFTP Port", 'xcloner-backup-and-restore' ) ?>" |
|
187 | + <input placeholder="<?php echo __("SFTP Port", 'xcloner-backup-and-restore') ?>" |
|
188 | 188 | id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" |
189 | - value="<?php echo get_option( "xcloner_sftp_port", 22 ) ?>"> |
|
189 | + value="<?php echo get_option("xcloner_sftp_port", 22) ?>"> |
|
190 | 190 | </div> |
191 | 191 | </div> |
192 | 192 | |
193 | 193 | <div class="row"> |
194 | 194 | <div class="col s12 m3 label"> |
195 | - <label for="sftp_username"><?php echo __( "SFTP Username", 'xcloner-backup-and-restore' ) ?></label> |
|
195 | + <label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore') ?></label> |
|
196 | 196 | </div> |
197 | 197 | <div class=" col s12 m6"> |
198 | - <input placeholder="<?php echo __( "SFTP Username", 'xcloner-backup-and-restore' ) ?>" |
|
198 | + <input placeholder="<?php echo __("SFTP Username", 'xcloner-backup-and-restore') ?>" |
|
199 | 199 | id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" |
200 | - value="<?php echo get_option( "xcloner_sftp_username" ) ?>" autocomplete="off"> |
|
200 | + value="<?php echo get_option("xcloner_sftp_username") ?>" autocomplete="off"> |
|
201 | 201 | </div> |
202 | 202 | </div> |
203 | 203 | |
204 | 204 | |
205 | 205 | <div class="row"> |
206 | 206 | <div class="col s12 m3 label"> |
207 | - <label for="sftp_password"><?php echo __( "SFTP or Private Key Password", 'xcloner-backup-and-restore' ) ?></label> |
|
207 | + <label for="sftp_password"><?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore') ?></label> |
|
208 | 208 | </div> |
209 | 209 | <div class=" col s12 m6"> |
210 | - <input placeholder="<?php echo __( "SFTP or Private Key Password", 'xcloner-backup-and-restore' ) ?>" |
|
210 | + <input placeholder="<?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore') ?>" |
|
211 | 211 | id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" |
212 | - value="<?php echo get_option( "xcloner_sftp_password" ) ?>" autocomplete="off"> |
|
212 | + value="<?php echo get_option("xcloner_sftp_password") ?>" autocomplete="off"> |
|
213 | 213 | </div> |
214 | 214 | </div> |
215 | 215 | |
216 | 216 | <div class="row"> |
217 | 217 | <div class="col s12 m3 label"> |
218 | - <label for="sftp_private_key"><?php echo __( "SFTP Private Key(RSA)", 'xcloner-backup-and-restore' ) ?></label> |
|
218 | + <label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)", 'xcloner-backup-and-restore') ?></label> |
|
219 | 219 | </div> |
220 | 220 | <div class=" col s12 m6"> |
221 | 221 | <textarea rows="5" |
222 | - placeholder="<?php echo __( "Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore' ) ?>" |
|
222 | + placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore') ?>" |
|
223 | 223 | id="sftp_private_key" type="text" name="xcloner_sftp_private_key" |
224 | 224 | class="validate" |
225 | - value=""><?php echo get_option( "xcloner_sftp_private_key" ) ?></textarea> |
|
225 | + value=""><?php echo get_option("xcloner_sftp_private_key") ?></textarea> |
|
226 | 226 | </div> |
227 | 227 | </div> |
228 | 228 | |
229 | 229 | <div class="row"> |
230 | 230 | <div class="col s12 m3 label"> |
231 | - <label for="sftp_root"><?php echo __( "SFTP Storage Folder", 'xcloner-backup-and-restore' ) ?></label> |
|
231 | + <label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore') ?></label> |
|
232 | 232 | </div> |
233 | 233 | <div class=" col s12 m6"> |
234 | - <input placeholder="<?php echo __( "SFTP Storage Folder", 'xcloner-backup-and-restore' ) ?>" |
|
234 | + <input placeholder="<?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore') ?>" |
|
235 | 235 | id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" |
236 | - value="<?php echo get_option( "xcloner_sftp_path" ) ?>"> |
|
236 | + value="<?php echo get_option("xcloner_sftp_path") ?>"> |
|
237 | 237 | </div> |
238 | 238 | </div> |
239 | 239 | |
240 | 240 | <div class="row"> |
241 | 241 | <div class="col s12 m3 label"> |
242 | - <label for="sftp_timeout"><?php echo __( "SFTP Timeout", 'xcloner-backup-and-restore' ) ?></label> |
|
242 | + <label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore') ?></label> |
|
243 | 243 | </div> |
244 | 244 | <div class=" col s12 m2"> |
245 | - <input placeholder="<?php echo __( "SFTP Timeout", 'xcloner-backup-and-restore' ) ?>" |
|
245 | + <input placeholder="<?php echo __("SFTP Timeout", 'xcloner-backup-and-restore') ?>" |
|
246 | 246 | id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" |
247 | - value="<?php echo get_option( "xcloner_sftp_timeout", 30 ) ?>"> |
|
247 | + value="<?php echo get_option("xcloner_sftp_timeout", 30) ?>"> |
|
248 | 248 | </div> |
249 | 249 | </div> |
250 | 250 | |
251 | 251 | <div class="row"> |
252 | 252 | <div class="col s12 m3 label"> |
253 | - <label for="sftp_cleanup_days"><?php echo __( "SFTP Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
253 | + <label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
254 | 254 | </div> |
255 | 255 | <div class=" col s12 m6"> |
256 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
256 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
257 | 257 | id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" |
258 | - class="validate" value="<?php echo get_option( "xcloner_sftp_cleanup_days" ) ?>"> |
|
258 | + class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days") ?>"> |
|
259 | 259 | </div> |
260 | 260 | </div> |
261 | 261 | |
262 | 262 | <div class="row"> |
263 | 263 | <div class="col s6 m4"> |
264 | 264 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
265 | - value="sftp"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
265 | + value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
266 | 266 | <i class="material-icons right">save</i> |
267 | 267 | </button> |
268 | 268 | </div> |
269 | 269 | <div class="col s6 m4"> |
270 | 270 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
271 | 271 | id="action" value="sftp" |
272 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
272 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
273 | 273 | <i class="material-icons right">import_export</i> |
274 | 274 | </button> |
275 | 275 | </div> |
@@ -281,12 +281,12 @@ discard block |
||
281 | 281 | <!-- AWS STORAGE--> |
282 | 282 | <li id="aws"> |
283 | 283 | <div class="collapsible-header"> |
284 | - <i class="material-icons">computer</i><?php echo __( "S3 Storage", 'xcloner-backup-and-restore' ) ?> |
|
284 | + <i class="material-icons">computer</i><?php echo __("S3 Storage", 'xcloner-backup-and-restore') ?> |
|
285 | 285 | <div class="switch right"> |
286 | 286 | <label> |
287 | 287 | Off |
288 | 288 | <input type="checkbox" name="xcloner_aws_enable" class="status" |
289 | - value="1" <?php if ( get_option( "xcloner_aws_enable" ) ) |
|
289 | + value="1" <?php if (get_option("xcloner_aws_enable")) |
|
290 | 290 | echo "checked" ?> \> |
291 | 291 | <span class="lever"></span> |
292 | 292 | On |
@@ -301,49 +301,49 @@ discard block |
||
301 | 301 | </div> |
302 | 302 | <div class=" col s12 m6"> |
303 | 303 | <p> |
304 | - <?php echo sprintf( __( 'Visit %s and get your "Key" and "Secret <br />Visit %s to install your own S3 like service.' ), "<a href='https://aws.amazon.com/s3/' target='_blank'>https://aws.amazon.com/s3/</a>", "<a href='https://minio.io/' target='_blank'>https://minio.io/</a>" ) ?> |
|
304 | + <?php echo sprintf(__('Visit %s and get your "Key" and "Secret <br />Visit %s to install your own S3 like service.'), "<a href='https://aws.amazon.com/s3/' target='_blank'>https://aws.amazon.com/s3/</a>", "<a href='https://minio.io/' target='_blank'>https://minio.io/</a>") ?> |
|
305 | 305 | </p> |
306 | 306 | </div> |
307 | 307 | </div> |
308 | 308 | |
309 | 309 | <div class="row"> |
310 | 310 | <div class="col s12 m3 label"> |
311 | - <label for="aws_key"><?php echo __( "S3 Key", 'xcloner-backup-and-restore' ) ?></label> |
|
311 | + <label for="aws_key"><?php echo __("S3 Key", 'xcloner-backup-and-restore') ?></label> |
|
312 | 312 | </div> |
313 | 313 | <div class=" col s12 m6"> |
314 | - <input placeholder="<?php echo __( "S3 Key", 'xcloner-backup-and-restore' ) ?>" |
|
314 | + <input placeholder="<?php echo __("S3 Key", 'xcloner-backup-and-restore') ?>" |
|
315 | 315 | id="aws_key" type="text" name="xcloner_aws_key" class="validate" |
316 | - value="<?php echo get_option( "xcloner_aws_key" ) ?>" autocomplete="off"> |
|
316 | + value="<?php echo get_option("xcloner_aws_key") ?>" autocomplete="off"> |
|
317 | 317 | </div> |
318 | 318 | </div> |
319 | 319 | |
320 | 320 | <div class="row"> |
321 | 321 | <div class="col s12 m3 label"> |
322 | - <label for="aws_secret"><?php echo __( "S3 Secret", 'xcloner-backup-and-restore' ) ?></label> |
|
322 | + <label for="aws_secret"><?php echo __("S3 Secret", 'xcloner-backup-and-restore') ?></label> |
|
323 | 323 | </div> |
324 | 324 | <div class=" col s12 m6"> |
325 | - <input placeholder="<?php echo __( "S3 Secret", 'xcloner-backup-and-restore' ) ?>" |
|
325 | + <input placeholder="<?php echo __("S3 Secret", 'xcloner-backup-and-restore') ?>" |
|
326 | 326 | id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" |
327 | - value="<?php echo get_option( "xcloner_aws_secret" ) ?>" autocomplete="off"> |
|
327 | + value="<?php echo get_option("xcloner_aws_secret") ?>" autocomplete="off"> |
|
328 | 328 | </div> |
329 | 329 | </div> |
330 | 330 | |
331 | 331 | <div class="row"> |
332 | 332 | <div class="col s12 m3 label"> |
333 | - <label for="aws_region"><?php echo __( "S3 Region", 'xcloner-backup-and-restore' ) ?></label> |
|
333 | + <label for="aws_region"><?php echo __("S3 Region", 'xcloner-backup-and-restore') ?></label> |
|
334 | 334 | </div> |
335 | 335 | <div class=" col s12 m6"> |
336 | - <select placeholder="<?php echo __( "example: us-east-1", 'xcloner-backup-and-restore' ) ?>" |
|
336 | + <select placeholder="<?php echo __("example: us-east-1", 'xcloner-backup-and-restore') ?>" |
|
337 | 337 | id="aws_region" type="text" name="xcloner_aws_region" class="validate" |
338 | - value="<?php echo get_option( "xcloner_aws_region" ) ?>" autocomplete="off"> |
|
338 | + value="<?php echo get_option("xcloner_aws_region") ?>" autocomplete="off"> |
|
339 | 339 | <option readonly |
340 | - value=""><?php echo __( "Please Select AWS S3 Region or Leave Unselected for Custom Endpoint" ) ?></option> |
|
340 | + value=""><?php echo __("Please Select AWS S3 Region or Leave Unselected for Custom Endpoint") ?></option> |
|
341 | 341 | <?php |
342 | 342 | $aws_regions = $remote_storage->get_aws_regions(); |
343 | 343 | |
344 | - foreach ( $aws_regions as $key => $region ) { |
|
344 | + foreach ($aws_regions as $key => $region) { |
|
345 | 345 | ?> |
346 | - <option value="<?php echo $key ?>" <?php echo( $key == get_option( 'xcloner_aws_region' ) ? "selected" : "" ) ?>><?php echo $region ?> |
|
346 | + <option value="<?php echo $key ?>" <?php echo($key == get_option('xcloner_aws_region') ? "selected" : "") ?>><?php echo $region ?> |
|
347 | 347 | = <?php echo $key ?></option> |
348 | 348 | <?php |
349 | 349 | } |
@@ -354,59 +354,59 @@ discard block |
||
354 | 354 | |
355 | 355 | <div class="row"> |
356 | 356 | <div class="col s12 m3 label"> |
357 | - <label for="aws_endpoint"><?php echo __( "S3 EndPoint", 'xcloner-backup-and-restore' ) ?></label> |
|
357 | + <label for="aws_endpoint"><?php echo __("S3 EndPoint", 'xcloner-backup-and-restore') ?></label> |
|
358 | 358 | </div> |
359 | 359 | <div class=" col s12 m6"> |
360 | - <input placeholder="<?php echo __( "S3 EndPoint, leave blank if you want to use the default Amazon AWS Service", 'xcloner-backup-and-restore' ) ?>" |
|
360 | + <input placeholder="<?php echo __("S3 EndPoint, leave blank if you want to use the default Amazon AWS Service", 'xcloner-backup-and-restore') ?>" |
|
361 | 361 | id="aws_endpoint" type="text" name="xcloner_aws_endpoint" class="validate" |
362 | - value="<?php echo get_option( "xcloner_aws_endpoint" ) ?>" autocomplete="off"> |
|
362 | + value="<?php echo get_option("xcloner_aws_endpoint") ?>" autocomplete="off"> |
|
363 | 363 | </div> |
364 | 364 | </div> |
365 | 365 | |
366 | 366 | <div class="row"> |
367 | 367 | <div class="col s12 m3 label"> |
368 | - <label for="aws_bucket_name"><?php echo __( "S3 Bucket Name", 'xcloner-backup-and-restore' ) ?></label> |
|
368 | + <label for="aws_bucket_name"><?php echo __("S3 Bucket Name", 'xcloner-backup-and-restore') ?></label> |
|
369 | 369 | </div> |
370 | 370 | <div class=" col s12 m6"> |
371 | - <input placeholder="<?php echo __( "S3 Bucket Name", 'xcloner-backup-and-restore' ) ?>" |
|
371 | + <input placeholder="<?php echo __("S3 Bucket Name", 'xcloner-backup-and-restore') ?>" |
|
372 | 372 | id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" |
373 | - value="<?php echo get_option( "xcloner_aws_bucket_name" ) ?>" autocomplete="off"> |
|
373 | + value="<?php echo get_option("xcloner_aws_bucket_name") ?>" autocomplete="off"> |
|
374 | 374 | </div> |
375 | 375 | </div> |
376 | 376 | |
377 | 377 | <div class="row"> |
378 | 378 | <div class="col s12 m3 label"> |
379 | - <label for="aws_prefix"><?php echo __( "S3 Prefix", 'xcloner-backup-and-restore' ) ?></label> |
|
379 | + <label for="aws_prefix"><?php echo __("S3 Prefix", 'xcloner-backup-and-restore') ?></label> |
|
380 | 380 | </div> |
381 | 381 | <div class=" col s12 m6"> |
382 | - <input placeholder="<?php echo __( "S3 Prefix, use / ending to define a folder", 'xcloner-backup-and-restore' ) ?>" |
|
382 | + <input placeholder="<?php echo __("S3 Prefix, use / ending to define a folder", 'xcloner-backup-and-restore') ?>" |
|
383 | 383 | id="aws_prefix" type="text" name="xcloner_aws_prefix" class="validate" |
384 | - value="<?php echo get_option( "xcloner_aws_prefix" ) ?>" autocomplete="off"> |
|
384 | + value="<?php echo get_option("xcloner_aws_prefix") ?>" autocomplete="off"> |
|
385 | 385 | </div> |
386 | 386 | </div> |
387 | 387 | |
388 | 388 | <div class="row"> |
389 | 389 | <div class="col s12 m3 label"> |
390 | - <label for="aws_cleanup_days"><?php echo __( "S3 Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
390 | + <label for="aws_cleanup_days"><?php echo __("S3 Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
391 | 391 | </div> |
392 | 392 | <div class=" col s12 m6"> |
393 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
393 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
394 | 394 | id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" |
395 | - class="validate" value="<?php echo get_option( "xcloner_aws_cleanup_days" ) ?>"> |
|
395 | + class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days") ?>"> |
|
396 | 396 | </div> |
397 | 397 | </div> |
398 | 398 | |
399 | 399 | <div class="row"> |
400 | 400 | <div class="col s6 m4"> |
401 | 401 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
402 | - value="aws"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
402 | + value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
403 | 403 | <i class="material-icons right">save</i> |
404 | 404 | </button> |
405 | 405 | </div> |
406 | 406 | <div class="col s6 m4"> |
407 | 407 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
408 | 408 | id="action" value="aws" |
409 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
409 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
410 | 410 | <i class="material-icons right">import_export</i> |
411 | 411 | </button> |
412 | 412 | </div> |
@@ -418,12 +418,12 @@ discard block |
||
418 | 418 | <!-- DROPBOX STORAGE--> |
419 | 419 | <li id="dropbox"> |
420 | 420 | <div class="collapsible-header"> |
421 | - <i class="material-icons">computer</i><?php echo __( "Dropbox Storage", 'xcloner-backup-and-restore' ) ?> |
|
421 | + <i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore') ?> |
|
422 | 422 | <div class="switch right"> |
423 | 423 | <label> |
424 | 424 | Off |
425 | 425 | <input type="checkbox" name="xcloner_dropbox_enable" class="status" |
426 | - value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) ) |
|
426 | + value="1" <?php if (get_option("xcloner_dropbox_enable")) |
|
427 | 427 | echo "checked" ?> \> |
428 | 428 | <span class="lever"></span> |
429 | 429 | On |
@@ -438,20 +438,20 @@ discard block |
||
438 | 438 | </div> |
439 | 439 | <div class=" col s12 m6"> |
440 | 440 | <p> |
441 | - <?php echo sprintf( __( 'Visit %s and get your "App secret".' ), "<a href='https://www.dropbox.com/developers/apps' target='_blank'>https://www.dropbox.com/developers/apps</a>" ) ?> |
|
441 | + <?php echo sprintf(__('Visit %s and get your "App secret".'), "<a href='https://www.dropbox.com/developers/apps' target='_blank'>https://www.dropbox.com/developers/apps</a>") ?> |
|
442 | 442 | </p> |
443 | 443 | </div> |
444 | 444 | </div> |
445 | 445 | |
446 | 446 | <div class="row"> |
447 | 447 | <div class="col s12 m3 label"> |
448 | - <label for="dropbox_access_token"><?php echo __( "Dropbox Access Token", 'xcloner-backup-and-restore' ) ?></label> |
|
448 | + <label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore') ?></label> |
|
449 | 449 | </div> |
450 | 450 | <div class=" col s12 m6"> |
451 | - <input placeholder="<?php echo __( "Dropbox Access Token", 'xcloner-backup-and-restore' ) ?>" |
|
451 | + <input placeholder="<?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore') ?>" |
|
452 | 452 | id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" |
453 | 453 | class="validate" |
454 | - value="<?php echo get_option( "xcloner_dropbox_access_token" ) ?>" |
|
454 | + value="<?php echo get_option("xcloner_dropbox_access_token") ?>" |
|
455 | 455 | autocomplete="off"> |
456 | 456 | </div> |
457 | 457 | </div> |
@@ -459,50 +459,50 @@ discard block |
||
459 | 459 | |
460 | 460 | <div class="row"> |
461 | 461 | <div class="col s12 m3 label"> |
462 | - <label for="dropbox_app_secret"><?php echo __( "Dropbox App Secret", 'xcloner-backup-and-restore' ) ?></label> |
|
462 | + <label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore') ?></label> |
|
463 | 463 | </div> |
464 | 464 | <div class=" col s12 m6"> |
465 | - <input placeholder="<?php echo __( "Dropbox App Secret", 'xcloner-backup-and-restore' ) ?>" |
|
465 | + <input placeholder="<?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore') ?>" |
|
466 | 466 | id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" |
467 | - class="validate" value="<?php echo get_option( "xcloner_dropbox_app_secret" ) ?>" |
|
467 | + class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret") ?>" |
|
468 | 468 | autocomplete="off"> |
469 | 469 | </div> |
470 | 470 | </div> |
471 | 471 | |
472 | 472 | <div class="row"> |
473 | 473 | <div class="col s12 m3 label"> |
474 | - <label for="dropbox_prefix"><?php echo __( "Dropbox Prefix", 'xcloner-backup-and-restore' ) ?></label> |
|
474 | + <label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore') ?></label> |
|
475 | 475 | </div> |
476 | 476 | <div class=" col s12 m6"> |
477 | - <input placeholder="<?php echo __( "Dropbox Prefix", 'xcloner-backup-and-restore' ) ?>" |
|
477 | + <input placeholder="<?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore') ?>" |
|
478 | 478 | id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" |
479 | - value="<?php echo get_option( "xcloner_dropbox_prefix" ) ?>"> |
|
479 | + value="<?php echo get_option("xcloner_dropbox_prefix") ?>"> |
|
480 | 480 | </div> |
481 | 481 | </div> |
482 | 482 | |
483 | 483 | <div class="row"> |
484 | 484 | <div class="col s12 m3 label"> |
485 | - <label for="dropbox_cleanup_days"><?php echo __( "Dropbox Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
485 | + <label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
486 | 486 | </div> |
487 | 487 | <div class=" col s12 m6"> |
488 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
488 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
489 | 489 | id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" |
490 | 490 | class="validate" |
491 | - value="<?php echo get_option( "xcloner_dropbox_cleanup_days" ) ?>"> |
|
491 | + value="<?php echo get_option("xcloner_dropbox_cleanup_days") ?>"> |
|
492 | 492 | </div> |
493 | 493 | </div> |
494 | 494 | |
495 | 495 | <div class="row"> |
496 | 496 | <div class="col s6 m4"> |
497 | 497 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
498 | - value="dropbox"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
498 | + value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
499 | 499 | <i class="material-icons right">save</i> |
500 | 500 | </button> |
501 | 501 | </div> |
502 | 502 | <div class="col s6 m4"> |
503 | 503 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
504 | 504 | id="action" value="dropbox" |
505 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
505 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
506 | 506 | <i class="material-icons right">import_export</i> |
507 | 507 | </button> |
508 | 508 | </div> |
@@ -514,12 +514,12 @@ discard block |
||
514 | 514 | <!-- AZURE STORAGE--> |
515 | 515 | <li id="azure"> |
516 | 516 | <div class="collapsible-header"> |
517 | - <i class="material-icons">computer</i><?php echo __( "Azure Blob Storage", 'xcloner-backup-and-restore' ) ?> |
|
517 | + <i class="material-icons">computer</i><?php echo __("Azure Blob Storage", 'xcloner-backup-and-restore') ?> |
|
518 | 518 | <div class="switch right"> |
519 | 519 | <label> |
520 | 520 | Off |
521 | 521 | <input type="checkbox" name="xcloner_azure_enable" class="status" |
522 | - value="1" <?php if ( get_option( "xcloner_azure_enable" ) ) |
|
522 | + value="1" <?php if (get_option("xcloner_azure_enable")) |
|
523 | 523 | echo "checked" ?> \> |
524 | 524 | <span class="lever"></span> |
525 | 525 | On |
@@ -534,19 +534,19 @@ discard block |
||
534 | 534 | </div> |
535 | 535 | <div class=" col s12 m6"> |
536 | 536 | <p> |
537 | - <?php echo sprintf( __( 'Visit %s and get your "Api Key".', 'xcloner-backup-and-restore' ), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>' ) ?> |
|
537 | + <?php echo sprintf(__('Visit %s and get your "Api Key".', 'xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>') ?> |
|
538 | 538 | </p> |
539 | 539 | </div> |
540 | 540 | </div> |
541 | 541 | |
542 | 542 | <div class="row"> |
543 | 543 | <div class="col s12 m3 label"> |
544 | - <label for="azure_account_name"><?php echo __( "Azure Account Name", 'xcloner-backup-and-restore' ) ?></label> |
|
544 | + <label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore') ?></label> |
|
545 | 545 | </div> |
546 | 546 | <div class=" col s12 m6"> |
547 | - <input placeholder="<?php echo __( "Azure Account Name", 'xcloner-backup-and-restore' ) ?>" |
|
547 | + <input placeholder="<?php echo __("Azure Account Name", 'xcloner-backup-and-restore') ?>" |
|
548 | 548 | id="azure_account_name" type="text" name="xcloner_azure_account_name" |
549 | - class="validate" value="<?php echo get_option( "xcloner_azure_account_name" ) ?>" |
|
549 | + class="validate" value="<?php echo get_option("xcloner_azure_account_name") ?>" |
|
550 | 550 | autocomplete="off"> |
551 | 551 | </div> |
552 | 552 | </div> |
@@ -554,49 +554,49 @@ discard block |
||
554 | 554 | |
555 | 555 | <div class="row"> |
556 | 556 | <div class="col s12 m3 label"> |
557 | - <label for="azure_api_key"><?php echo __( "Azure Api Key", 'xcloner-backup-and-restore' ) ?></label> |
|
557 | + <label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore') ?></label> |
|
558 | 558 | </div> |
559 | 559 | <div class=" col s12 m6"> |
560 | - <input placeholder="<?php echo __( "Azure Api Key", 'xcloner-backup-and-restore' ) ?>" |
|
560 | + <input placeholder="<?php echo __("Azure Api Key", 'xcloner-backup-and-restore') ?>" |
|
561 | 561 | id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" |
562 | - value="<?php echo get_option( "xcloner_azure_api_key" ) ?>" autocomplete="off"> |
|
562 | + value="<?php echo get_option("xcloner_azure_api_key") ?>" autocomplete="off"> |
|
563 | 563 | </div> |
564 | 564 | </div> |
565 | 565 | |
566 | 566 | <div class="row"> |
567 | 567 | <div class="col s12 m3 label"> |
568 | - <label for="azure_container"><?php echo __( "Azure Container", 'xcloner-backup-and-restore' ) ?></label> |
|
568 | + <label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore') ?></label> |
|
569 | 569 | </div> |
570 | 570 | <div class=" col s12 m6"> |
571 | - <input placeholder="<?php echo __( "Azure Container", 'xcloner-backup-and-restore' ) ?>" |
|
571 | + <input placeholder="<?php echo __("Azure Container", 'xcloner-backup-and-restore') ?>" |
|
572 | 572 | id="azure_container" type="text" name="xcloner_azure_container" class="validate" |
573 | - value="<?php echo get_option( "xcloner_azure_container" ) ?>"> |
|
573 | + value="<?php echo get_option("xcloner_azure_container") ?>"> |
|
574 | 574 | </div> |
575 | 575 | </div> |
576 | 576 | |
577 | 577 | <div class="row"> |
578 | 578 | <div class="col s12 m3 label"> |
579 | - <label for="azure_cleanup_days"><?php echo __( "Azure Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
579 | + <label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
580 | 580 | </div> |
581 | 581 | <div class=" col s12 m6"> |
582 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
582 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
583 | 583 | id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" |
584 | 584 | class="validate" |
585 | - value="<?php echo get_option( "xcloner_azure_cleanup_days" ) ?>"> |
|
585 | + value="<?php echo get_option("xcloner_azure_cleanup_days") ?>"> |
|
586 | 586 | </div> |
587 | 587 | </div> |
588 | 588 | |
589 | 589 | <div class="row"> |
590 | 590 | <div class="col s6 m4"> |
591 | 591 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
592 | - value="azure"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
592 | + value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
593 | 593 | <i class="material-icons right">save</i> |
594 | 594 | </button> |
595 | 595 | </div> |
596 | 596 | <div class="col s6 m4"> |
597 | 597 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
598 | 598 | id="action" value="azure" |
599 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
599 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
600 | 600 | <i class="material-icons right">import_export</i> |
601 | 601 | </button> |
602 | 602 | </div> |
@@ -608,12 +608,12 @@ discard block |
||
608 | 608 | <!-- BACKBLAZE STORAGE--> |
609 | 609 | <li id="backblaze"> |
610 | 610 | <div class="collapsible-header"> |
611 | - <i class="material-icons">computer</i><?php echo __( "Backblaze Storage", 'xcloner-backup-and-restore' ) ?> |
|
611 | + <i class="material-icons">computer</i><?php echo __("Backblaze Storage", 'xcloner-backup-and-restore') ?> |
|
612 | 612 | <div class="switch right"> |
613 | 613 | <label> |
614 | 614 | Off |
615 | 615 | <input type="checkbox" name="xcloner_backblaze_enable" class="status" |
616 | - value="1" <?php if ( get_option( "xcloner_backblaze_enable" ) ) |
|
616 | + value="1" <?php if (get_option("xcloner_backblaze_enable")) |
|
617 | 617 | echo "checked" ?> \> |
618 | 618 | <span class="lever"></span> |
619 | 619 | On |
@@ -628,20 +628,20 @@ discard block |
||
628 | 628 | </div> |
629 | 629 | <div class=" col s12 m6"> |
630 | 630 | <p> |
631 | - <?php echo sprintf( __( 'Visit %s and get your Account Id and Application Key.', 'xcloner-backup-and-restore' ), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>' ) ?> |
|
631 | + <?php echo sprintf(__('Visit %s and get your Account Id and Application Key.', 'xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>') ?> |
|
632 | 632 | </p> |
633 | 633 | </div> |
634 | 634 | </div> |
635 | 635 | |
636 | 636 | <div class="row"> |
637 | 637 | <div class="col s12 m3 label"> |
638 | - <label for="backblaze_account_id"><?php echo __( "Backblaze Account Id", 'xcloner-backup-and-restore' ) ?></label> |
|
638 | + <label for="backblaze_account_id"><?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore') ?></label> |
|
639 | 639 | </div> |
640 | 640 | <div class=" col s12 m6"> |
641 | - <input placeholder="<?php echo __( "Backblaze Account Id", 'xcloner-backup-and-restore' ) ?>" |
|
641 | + <input placeholder="<?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore') ?>" |
|
642 | 642 | id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" |
643 | 643 | class="validate" |
644 | - value="<?php echo get_option( "xcloner_backblaze_account_id" ) ?>" |
|
644 | + value="<?php echo get_option("xcloner_backblaze_account_id") ?>" |
|
645 | 645 | autocomplete="off"> |
646 | 646 | </div> |
647 | 647 | </div> |
@@ -649,53 +649,53 @@ discard block |
||
649 | 649 | |
650 | 650 | <div class="row"> |
651 | 651 | <div class="col s12 m3 label"> |
652 | - <label for="backblaze_application_key"><?php echo __( "Backblaze Application Key", 'xcloner-backup-and-restore' ) ?></label> |
|
652 | + <label for="backblaze_application_key"><?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore') ?></label> |
|
653 | 653 | </div> |
654 | 654 | <div class=" col s12 m6"> |
655 | - <input placeholder="<?php echo __( "Backblaze Application Key", 'xcloner-backup-and-restore' ) ?>" |
|
655 | + <input placeholder="<?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore') ?>" |
|
656 | 656 | id="backblaze_application_key" type="text" |
657 | 657 | name="xcloner_backblaze_application_key" class="validate" |
658 | - value="<?php echo get_option( "xcloner_backblaze_application_key" ) ?>" |
|
658 | + value="<?php echo get_option("xcloner_backblaze_application_key") ?>" |
|
659 | 659 | autocomplete="off"> |
660 | 660 | </div> |
661 | 661 | </div> |
662 | 662 | |
663 | 663 | <div class="row"> |
664 | 664 | <div class="col s12 m3 label"> |
665 | - <label for="backblaze_bucket_name"><?php echo __( "Backblaze Bucket Name", 'xcloner-backup-and-restore' ) ?></label> |
|
665 | + <label for="backblaze_bucket_name"><?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore') ?></label> |
|
666 | 666 | </div> |
667 | 667 | <div class=" col s12 m6"> |
668 | - <input placeholder="<?php echo __( "Backblaze Bucket Name", 'xcloner-backup-and-restore' ) ?>" |
|
668 | + <input placeholder="<?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore') ?>" |
|
669 | 669 | id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" |
670 | 670 | class="validate" |
671 | - value="<?php echo get_option( "xcloner_backblaze_bucket_name" ) ?>" |
|
671 | + value="<?php echo get_option("xcloner_backblaze_bucket_name") ?>" |
|
672 | 672 | autocomplete="off"> |
673 | 673 | </div> |
674 | 674 | </div> |
675 | 675 | |
676 | 676 | <div class="row"> |
677 | 677 | <div class="col s12 m3 label"> |
678 | - <label for="backblaze_cleanup_days"><?php echo __( "Backblaze Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
678 | + <label for="backblaze_cleanup_days"><?php echo __("Backblaze Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
679 | 679 | </div> |
680 | 680 | <div class=" col s12 m6"> |
681 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
681 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
682 | 682 | id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" |
683 | 683 | class="validate" |
684 | - value="<?php echo get_option( "xcloner_backblaze_cleanup_days" ) ?>"> |
|
684 | + value="<?php echo get_option("xcloner_backblaze_cleanup_days") ?>"> |
|
685 | 685 | </div> |
686 | 686 | </div> |
687 | 687 | |
688 | 688 | <div class="row"> |
689 | 689 | <div class="col s6 m4"> |
690 | 690 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
691 | - value="backblaze"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
691 | + value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
692 | 692 | <i class="material-icons right">save</i> |
693 | 693 | </button> |
694 | 694 | </div> |
695 | 695 | <div class="col s6 m4"> |
696 | 696 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
697 | 697 | id="action" value="backblaze" |
698 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
698 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
699 | 699 | <i class="material-icons right">import_export</i> |
700 | 700 | </button> |
701 | 701 | </div> |
@@ -707,12 +707,12 @@ discard block |
||
707 | 707 | <!-- WEBDAV STORAGE--> |
708 | 708 | <li id="webdav"> |
709 | 709 | <div class="collapsible-header"> |
710 | - <i class="material-icons">computer</i><?php echo __( "WebDAV Storage", 'xcloner-backup-and-restore' ) ?> |
|
710 | + <i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore') ?> |
|
711 | 711 | <div class="switch right"> |
712 | 712 | <label> |
713 | 713 | Off |
714 | 714 | <input type="checkbox" name="xcloner_webdav_enable" class="status" |
715 | - value="1" <?php if ( get_option( "xcloner_webdav_enable" ) ) |
|
715 | + value="1" <?php if (get_option("xcloner_webdav_enable")) |
|
716 | 716 | echo "checked" ?> \> |
717 | 717 | <span class="lever"></span> |
718 | 718 | On |
@@ -734,74 +734,74 @@ discard block |
||
734 | 734 | |
735 | 735 | <div class="row"> |
736 | 736 | <div class="col s12 m3 label"> |
737 | - <label for="webdav_url"><?php echo __( "WebDAV Base Url", 'xcloner-backup-and-restore' ) ?></label> |
|
737 | + <label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore') ?></label> |
|
738 | 738 | </div> |
739 | 739 | <div class=" col s12 m6"> |
740 | - <input placeholder="<?php echo __( "WebDAV Base Url", 'xcloner-backup-and-restore' ) ?>" |
|
740 | + <input placeholder="<?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore') ?>" |
|
741 | 741 | id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" |
742 | - value="<?php echo get_option( "xcloner_webdav_url" ) ?>" autocomplete="off"> |
|
742 | + value="<?php echo get_option("xcloner_webdav_url") ?>" autocomplete="off"> |
|
743 | 743 | </div> |
744 | 744 | </div> |
745 | 745 | |
746 | 746 | <div class="row"> |
747 | 747 | <div class="col s12 m3 label"> |
748 | - <label for="webdav_username"><?php echo __( "WebDAV Username", 'xcloner-backup-and-restore' ) ?></label> |
|
748 | + <label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore') ?></label> |
|
749 | 749 | </div> |
750 | 750 | <div class=" col s12 m6"> |
751 | - <input placeholder="<?php echo __( "WebDAV Username", 'xcloner-backup-and-restore' ) ?>" |
|
751 | + <input placeholder="<?php echo __("WebDAV Username", 'xcloner-backup-and-restore') ?>" |
|
752 | 752 | id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" |
753 | - value="<?php echo get_option( "xcloner_webdav_username" ) ?>" autocomplete="off"> |
|
753 | + value="<?php echo get_option("xcloner_webdav_username") ?>" autocomplete="off"> |
|
754 | 754 | </div> |
755 | 755 | </div> |
756 | 756 | |
757 | 757 | <div class="row"> |
758 | 758 | <div class="col s12 m3 label"> |
759 | - <label for="webdav_password"><?php echo __( "WebDAV Password", 'xcloner-backup-and-restore' ) ?></label> |
|
759 | + <label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore') ?></label> |
|
760 | 760 | </div> |
761 | 761 | <div class=" col s12 m6"> |
762 | - <input placeholder="<?php echo __( "WebDAV Password", 'xcloner-backup-and-restore' ) ?>" |
|
762 | + <input placeholder="<?php echo __("WebDAV Password", 'xcloner-backup-and-restore') ?>" |
|
763 | 763 | id="webdav_password" type="password" name="xcloner_webdav_password" |
764 | - class="validate" value="<?php echo get_option( "xcloner_webdav_password" ) ?>" |
|
764 | + class="validate" value="<?php echo get_option("xcloner_webdav_password") ?>" |
|
765 | 765 | autocomplete="off"> |
766 | 766 | </div> |
767 | 767 | </div> |
768 | 768 | |
769 | 769 | <div class="row"> |
770 | 770 | <div class="col s12 m3 label"> |
771 | - <label for="webdav_target_folder"><?php echo __( "WebDAV Target Folder", 'xcloner-backup-and-restore' ) ?></label> |
|
771 | + <label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore') ?></label> |
|
772 | 772 | </div> |
773 | 773 | <div class=" col s12 m6"> |
774 | - <input placeholder="<?php echo __( "WebDAV Target Folder", 'xcloner-backup-and-restore' ) ?>" |
|
774 | + <input placeholder="<?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore') ?>" |
|
775 | 775 | id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" |
776 | 776 | class="validate" |
777 | - value="<?php echo get_option( "xcloner_webdav_target_folder" ) ?>" |
|
777 | + value="<?php echo get_option("xcloner_webdav_target_folder") ?>" |
|
778 | 778 | autocomplete="off"> |
779 | 779 | </div> |
780 | 780 | </div> |
781 | 781 | |
782 | 782 | <div class="row"> |
783 | 783 | <div class="col s12 m3 label"> |
784 | - <label for="webdav_cleanup_days"><?php echo __( "WebDAV Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
784 | + <label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
785 | 785 | </div> |
786 | 786 | <div class=" col s12 m6"> |
787 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
787 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
788 | 788 | id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" |
789 | 789 | class="validate" |
790 | - value="<?php echo get_option( "xcloner_webdav_cleanup_days" ) ?>"> |
|
790 | + value="<?php echo get_option("xcloner_webdav_cleanup_days") ?>"> |
|
791 | 791 | </div> |
792 | 792 | </div> |
793 | 793 | |
794 | 794 | <div class="row"> |
795 | 795 | <div class="col s6 m4"> |
796 | 796 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
797 | - value="webdav"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
797 | + value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
798 | 798 | <i class="material-icons right">save</i> |
799 | 799 | </button> |
800 | 800 | </div> |
801 | 801 | <div class="col s6 m4"> |
802 | 802 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
803 | 803 | id="action" value="webdav" |
804 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
804 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
805 | 805 | <i class="material-icons right">import_export</i> |
806 | 806 | </button> |
807 | 807 | </div> |
@@ -813,13 +813,13 @@ discard block |
||
813 | 813 | <!-- Google DRIVE STORAGE--> |
814 | 814 | <li id="gdrive"> |
815 | 815 | <div class="collapsible-header"> |
816 | - <i class="material-icons">computer</i><?php echo __( "Google Drive Storage", 'xcloner-backup-and-restore' ) ?> |
|
817 | - <?php if ( $gdrive_construct ): ?> |
|
816 | + <i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore') ?> |
|
817 | + <?php if ($gdrive_construct): ?> |
|
818 | 818 | <div class="switch right"> |
819 | 819 | <label> |
820 | 820 | Off |
821 | 821 | <input type="checkbox" name="xcloner_gdrive_enable" class="status" |
822 | - value="1" <?php if ( get_option( "xcloner_gdrive_enable" ) ) |
|
822 | + value="1" <?php if (get_option("xcloner_gdrive_enable")) |
|
823 | 823 | echo "checked" ?> \> |
824 | 824 | <span class="lever"></span> |
825 | 825 | On |
@@ -829,7 +829,7 @@ discard block |
||
829 | 829 | </div> |
830 | 830 | <div class="collapsible-body"> |
831 | 831 | |
832 | - <?php if ( $gdrive_construct ) : ?> |
|
832 | + <?php if ($gdrive_construct) : ?> |
|
833 | 833 | |
834 | 834 | <div class="row"> |
835 | 835 | <div class="col s12 m3 label"> |
@@ -837,11 +837,11 @@ discard block |
||
837 | 837 | </div> |
838 | 838 | <div class=" col s12 m9"> |
839 | 839 | <p> |
840 | - <?php echo sprintf( __( 'Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore' ), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>' ) ?> |
|
840 | + <?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>') ?> |
|
841 | 841 | <a href="https://youtu.be/YXUVPUVgG8k" target="_blank" |
842 | 842 | class="btn-floating tooltipped btn-small" data-position="right" |
843 | 843 | data-delay="50" data-html="true" |
844 | - data-tooltip="<?php echo sprintf( __( 'Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore' ), "<br />https://youtu.be/YXUVPUVgG8k" ) ?>" |
|
844 | + data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore'), "<br />https://youtu.be/YXUVPUVgG8k") ?>" |
|
845 | 845 | data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i |
846 | 846 | class="material-icons">help_outline</i></a> |
847 | 847 | </p> |
@@ -850,25 +850,25 @@ discard block |
||
850 | 850 | |
851 | 851 | <div class="row"> |
852 | 852 | <div class="col s12 m3 label"> |
853 | - <label for="gdrive_client_id"><?php echo __( "Client ID", 'xcloner-backup-and-restore' ) ?></label> |
|
853 | + <label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore') ?></label> |
|
854 | 854 | </div> |
855 | 855 | <div class=" col s12 m6"> |
856 | - <input placeholder="<?php echo __( "Google Client ID", 'xcloner-backup-and-restore' ) ?>" |
|
856 | + <input placeholder="<?php echo __("Google Client ID", 'xcloner-backup-and-restore') ?>" |
|
857 | 857 | id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" |
858 | 858 | class="validate" |
859 | - value="<?php echo get_option( "xcloner_gdrive_client_id" ) ?>"> |
|
859 | + value="<?php echo get_option("xcloner_gdrive_client_id") ?>"> |
|
860 | 860 | </div> |
861 | 861 | </div> |
862 | 862 | |
863 | 863 | <div class="row"> |
864 | 864 | <div class="col s12 m3 label"> |
865 | - <label for="gdrive_client_secret"><?php echo __( "Client Secret", 'xcloner-backup-and-restore' ) ?></label> |
|
865 | + <label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore') ?></label> |
|
866 | 866 | </div> |
867 | 867 | <div class=" col s12 m6"> |
868 | - <input placeholder="<?php echo __( "Google Client Secret", 'xcloner-backup-and-restore' ) ?>" |
|
868 | + <input placeholder="<?php echo __("Google Client Secret", 'xcloner-backup-and-restore') ?>" |
|
869 | 869 | id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" |
870 | 870 | class="validate" |
871 | - value="<?php echo get_option( "xcloner_gdrive_client_secret" ) ?>"> |
|
871 | + value="<?php echo get_option("xcloner_gdrive_client_secret") ?>"> |
|
872 | 872 | </div> |
873 | 873 | </div> |
874 | 874 | |
@@ -880,72 +880,72 @@ discard block |
||
880 | 880 | <div class=" col s12 m6"> |
881 | 881 | <a class="btn" target="_blank" id="gdrive_authorization_click" |
882 | 882 | onclick="jQuery('#authentification_code').show()" |
883 | - href="<?php echo $gdrive_auth_url ?>"><?php echo sprintf( __( 'Authorize Google Drive', 'xcloner-backup-and-restore' ) ) ?></a> |
|
883 | + href="<?php echo $gdrive_auth_url ?>"><?php echo sprintf(__('Authorize Google Drive', 'xcloner-backup-and-restore')) ?></a> |
|
884 | 884 | <input type="text" name="authentification_code" id="authentification_code" |
885 | - placeholder="<?php echo __( "Paste Authorization Code Here", "xcloner-backup-and-restore" ) ?>"> |
|
885 | + placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore") ?>"> |
|
886 | 886 | </div> |
887 | 887 | </div> |
888 | 888 | |
889 | 889 | <div class="row"> |
890 | 890 | <div class="col s12 m3 label"> |
891 | - <label for="gdrive_target_folder"><?php echo __( "Folder ID or Root Path", 'xcloner-backup-and-restore' ) ?> |
|
891 | + <label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore') ?> |
|
892 | 892 | <a class="btn-floating tooltipped btn-small" data-position="right" |
893 | 893 | data-delay="50" data-html="true" \ |
894 | - data-tooltip="<?php echo __( 'Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br /> |
|
895 | - If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/', 'xcloner-backup-and-restore' ) ?>" |
|
894 | + data-tooltip="<?php echo __('Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br /> |
|
895 | + If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/', 'xcloner-backup-and-restore') ?>" |
|
896 | 896 | data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i |
897 | 897 | class="material-icons">help_outline</i></a> |
898 | 898 | </label> |
899 | 899 | </div> |
900 | 900 | <div class=" col s12 m6"> |
901 | - <input placeholder="<?php echo __( "Target Folder ID or Root Path", 'xcloner-backup-and-restore' ) ?>" |
|
901 | + <input placeholder="<?php echo __("Target Folder ID or Root Path", 'xcloner-backup-and-restore') ?>" |
|
902 | 902 | id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" |
903 | 903 | class="validate" |
904 | - value="<?php echo get_option( "xcloner_gdrive_target_folder" ) ?>" |
|
904 | + value="<?php echo get_option("xcloner_gdrive_target_folder") ?>" |
|
905 | 905 | autocomplete="off"> |
906 | 906 | </div> |
907 | 907 | </div> |
908 | 908 | |
909 | 909 | <div class="row"> |
910 | 910 | <div class="col s12 m3 label"> |
911 | - <label for="gdrive_cleanup_days"><?php echo __( "Google Drive Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label> |
|
911 | + <label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore') ?></label> |
|
912 | 912 | </div> |
913 | 913 | <div class=" col s12 m6"> |
914 | - <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>" |
|
914 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>" |
|
915 | 915 | id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" |
916 | 916 | class="validate" |
917 | - value="<?php echo get_option( "xcloner_gdrive_cleanup_days" ) ?>"> |
|
917 | + value="<?php echo get_option("xcloner_gdrive_cleanup_days") ?>"> |
|
918 | 918 | </div> |
919 | 919 | </div> |
920 | 920 | |
921 | 921 | <div class="row"> |
922 | 922 | <div class="col s12 m3 label"> |
923 | - <label for="gdrive_empty_trash"><?php echo __( "Keeps Deleted Backups in Trash", 'xcloner-backup-and-restore' ) ?></label> |
|
923 | + <label for="gdrive_empty_trash"><?php echo __("Keeps Deleted Backups in Trash", 'xcloner-backup-and-restore') ?></label> |
|
924 | 924 | </div> |
925 | 925 | <div class=" col s12 m6 input-field inline"> |
926 | 926 | <input name="xcloner_gdrive_empty_trash" type="radio" value="0" |
927 | - id="gdrive_empty_trash_off" <?php if ( ! get_option( "xcloner_gdrive_empty_trash", 0 ) ) |
|
927 | + id="gdrive_empty_trash_off" <?php if (!get_option("xcloner_gdrive_empty_trash", 0)) |
|
928 | 928 | echo "checked" ?> /> |
929 | - <label for="gdrive_empty_trash_off"><?php echo __( "Enabled", 'xcloner-backup-and-restore' ) ?></label> |
|
929 | + <label for="gdrive_empty_trash_off"><?php echo __("Enabled", 'xcloner-backup-and-restore') ?></label> |
|
930 | 930 | |
931 | 931 | <input name="xcloner_gdrive_empty_trash" type="radio" value="1" |
932 | - id="gdrive_empty_trash_on" <?php if ( get_option( "xcloner_gdrive_empty_trash", 0 ) ) |
|
932 | + id="gdrive_empty_trash_on" <?php if (get_option("xcloner_gdrive_empty_trash", 0)) |
|
933 | 933 | echo "checked" ?> /> |
934 | - <label for="gdrive_empty_trash_on"><?php echo __( "Disabled", 'xcloner-backup-and-restore' ) ?></label> |
|
934 | + <label for="gdrive_empty_trash_on"><?php echo __("Disabled", 'xcloner-backup-and-restore') ?></label> |
|
935 | 935 | </div> |
936 | 936 | </div> |
937 | 937 | |
938 | 938 | <div class="row"> |
939 | 939 | <div class="col s6 m4"> |
940 | 940 | <button class="btn waves-effect waves-light" type="submit" name="action" id="action" |
941 | - value="gdrive"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?> |
|
941 | + value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?> |
|
942 | 942 | <i class="material-icons right">save</i> |
943 | 943 | </button> |
944 | 944 | </div> |
945 | 945 | <div class="col s6 m4"> |
946 | 946 | <button class="btn waves-effect waves-light orange" type="submit" name="action" |
947 | 947 | id="action" value="gdrive" |
948 | - onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?> |
|
948 | + onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?> |
|
949 | 949 | <i class="material-icons right">import_export</i> |
950 | 950 | </button> |
951 | 951 | </div> |
@@ -956,26 +956,26 @@ discard block |
||
956 | 956 | <div class=" col s12"> |
957 | 957 | <div class="center"> |
958 | 958 | <?php |
959 | - $url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=xcloner-google-drive' ), 'install-plugin_xcloner-google-drive' ); |
|
959 | + $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=xcloner-google-drive'), 'install-plugin_xcloner-google-drive'); |
|
960 | 960 | ?> |
961 | - <h6><?php echo __( "This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated." ) ?></h6> |
|
962 | - <h6><?php echo __( "PHP 5.5 minimum version is required." ) ?></h6> |
|
961 | + <h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.") ?></h6> |
|
962 | + <h6><?php echo __("PHP 5.5 minimum version is required.") ?></h6> |
|
963 | 963 | <br/> |
964 | 964 | <a class="install-now btn" data-slug="xcloner-google-drive" |
965 | 965 | href="<?php echo $url; ?>" |
966 | 966 | aria-label="Install XCloner Google Drive 1.0.0 now" |
967 | 967 | data-name="XCloner Google Drive 1.0.0"> |
968 | - <?php echo sprintf( __( 'Install Now', 'xcloner-backup-and-restore' ) ) ?> |
|
968 | + <?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore')) ?> |
|
969 | 969 | </a> |
970 | 970 | |
971 | - <a href="<?php echo admin_url( "plugin-install.php" ) ?>?tab=plugin-information&plugin=xcloner-google-drive&TB_iframe=true&width=772&height=499" |
|
971 | + <a href="<?php echo admin_url("plugin-install.php") ?>?tab=plugin-information&plugin=xcloner-google-drive&TB_iframe=true&width=772&height=499" |
|
972 | 972 | class="btn thickbox open-plugin-details-modal" |
973 | 973 | aria-label="More information about Theme Check 20160523.1" |
974 | 974 | data-title="Theme Check 20160523.1"> |
975 | 975 | <!-- |
976 | 976 | <a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip"> |
977 | 977 | --> |
978 | - <?php echo sprintf( __( 'More Details', 'xcloner-backup-and-restore' ) ) ?> |
|
978 | + <?php echo sprintf(__('More Details', 'xcloner-backup-and-restore')) ?> |
|
979 | 979 | </a> |
980 | 980 | </div> |
981 | 981 | </div> |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | <label> |
27 | 27 | Off |
28 | 28 | <input type="checkbox" name="xcloner_ftp_enable" class="status" |
29 | - value="1" <?php if ( get_option( "xcloner_ftp_enable" ) ) |
|
29 | + value="1" <?php if ( get_option( "xcloner_ftp_enable" ) ) { |
|
30 | 30 | echo "checked" ?> \> |
31 | 31 | <span class="lever"></span> |
32 | 32 | On |
@@ -340,6 +340,7 @@ discard block |
||
340 | 340 | value=""><?php echo __( "Please Select AWS S3 Region or Leave Unselected for Custom Endpoint" ) ?></option> |
341 | 341 | <?php |
342 | 342 | $aws_regions = $remote_storage->get_aws_regions(); |
343 | +} |
|
343 | 344 | |
344 | 345 | foreach ( $aws_regions as $key => $region ) { |
345 | 346 | ?> |
@@ -423,7 +424,7 @@ discard block |
||
423 | 424 | <label> |
424 | 425 | Off |
425 | 426 | <input type="checkbox" name="xcloner_dropbox_enable" class="status" |
426 | - value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) ) |
|
427 | + value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) ) { |
|
427 | 428 | echo "checked" ?> \> |
428 | 429 | <span class="lever"></span> |
429 | 430 | On |
@@ -957,6 +958,7 @@ discard block |
||
957 | 958 | <div class="center"> |
958 | 959 | <?php |
959 | 960 | $url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=xcloner-google-drive' ), 'install-plugin_xcloner-google-drive' ); |
961 | +} |
|
960 | 962 | ?> |
961 | 963 | <h6><?php echo __( "This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated." ) ?></h6> |
962 | 964 | <h6><?php echo __( "PHP 5.5 minimum version is required." ) ?></h6> |
@@ -7,17 +7,17 @@ |
||
7 | 7 | <div class="col s12 "> |
8 | 8 | <div> |
9 | 9 | <h5 class="left-align"> |
10 | - <?php echo __( 'XCloner Debugger Dashboard', 'xcloner-backup-and-restore' ) ?> |
|
10 | + <?php echo __('XCloner Debugger Dashboard', 'xcloner-backup-and-restore') ?> |
|
11 | 11 | </h5> |
12 | 12 | |
13 | - <?php if ( $xcloner_settings->get_xcloner_option( 'xcloner_enable_log' ) ) : ?> |
|
13 | + <?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) : ?> |
|
14 | 14 | <ul class="collapsible xcloner-debugger" data-collapsible="accordion"> |
15 | 15 | <li class="active"> |
16 | 16 | <div class="collapsible-header active"><i class="material-icons">bug_report</i>XCloner Debugger |
17 | 17 | </div> |
18 | 18 | <div class="collapsible-body"> |
19 | - <div class="console" id="xcloner-console"><?php if ( isset( $logger_content ) ) { |
|
20 | - echo implode( "<br />\n", $logger_content ); |
|
19 | + <div class="console" id="xcloner-console"><?php if (isset($logger_content)) { |
|
20 | + echo implode("<br />\n", $logger_content); |
|
21 | 21 | } ?></div> |
22 | 22 | </div> |
23 | 23 | </li> |
@@ -4,10 +4,10 @@ discard block |
||
4 | 4 | $xcloner_remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage(); |
5 | 5 | $available_storages = $xcloner_remote_storage->get_available_storages(); |
6 | 6 | ?> |
7 | -<?php if ( ! defined( "DISABLE_WP_CRON" ) || ! DISABLE_WP_CRON ): ?> |
|
7 | +<?php if (!defined("DISABLE_WP_CRON") || !DISABLE_WP_CRON): ?> |
|
8 | 8 | <div id="setting-error-" class="error settings-error notice is-dismissible"> |
9 | 9 | <p><strong> |
10 | - <?php echo sprintf( __( 'We have noticed that DISABLE_WP_CRON is disabled, we recommend enabling that and setting up wp-cron.php to run manually through your hosting account scheduler as explained <a href="%s" target="_blank">here</a>', 'xcloner-backup-and-restore' ), "http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress" ) ?> |
|
10 | + <?php echo sprintf(__('We have noticed that DISABLE_WP_CRON is disabled, we recommend enabling that and setting up wp-cron.php to run manually through your hosting account scheduler as explained <a href="%s" target="_blank">here</a>', 'xcloner-backup-and-restore'), "http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress") ?> |
|
11 | 11 | </strong> |
12 | 12 | </p> |
13 | 13 | <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span> |
@@ -15,32 +15,32 @@ discard block |
||
15 | 15 | </div> |
16 | 16 | <?php endif ?> |
17 | 17 | |
18 | -<h1><?= esc_html( get_admin_page_title() ); ?></h1> |
|
18 | +<h1><?= esc_html(get_admin_page_title()); ?></h1> |
|
19 | 19 | |
20 | 20 | <div class="row"> |
21 | 21 | <table id="scheduled_backups" class="col s12" cellspacing="0" width="100%"> |
22 | 22 | <thead> |
23 | 23 | <tr class="grey lighten-2"> |
24 | - <th><?php echo __( 'ID', 'xcloner-backup-and-restore' ) ?></th> |
|
25 | - <th><?php echo __( 'Schedule Name', 'xcloner-backup-and-restore' ) ?></th> |
|
26 | - <th><?php echo __( 'Recurrence', 'xcloner-backup-and-restore' ) ?></th> |
|
27 | - <th class="hide-on-med-and-down"><?php echo __( 'Next Execution', 'xcloner-backup-and-restore' ) ?></th> |
|
28 | - <th><?php echo __( 'Remote Storage', 'xcloner-backup-and-restore' ) ?></th> |
|
29 | - <th class="hide-on-med-and-down"><?php echo __( 'Last Backup', 'xcloner-backup-and-restore' ) ?></th> |
|
30 | - <th><?php echo __( 'Status', 'xcloner-backup-and-restore' ) ?></th> |
|
31 | - <th class="no-sort"><?php echo __( 'Action', 'xcloner-backup-and-restore' ) ?></th> |
|
24 | + <th><?php echo __('ID', 'xcloner-backup-and-restore') ?></th> |
|
25 | + <th><?php echo __('Schedule Name', 'xcloner-backup-and-restore') ?></th> |
|
26 | + <th><?php echo __('Recurrence', 'xcloner-backup-and-restore') ?></th> |
|
27 | + <th class="hide-on-med-and-down"><?php echo __('Next Execution', 'xcloner-backup-and-restore') ?></th> |
|
28 | + <th><?php echo __('Remote Storage', 'xcloner-backup-and-restore') ?></th> |
|
29 | + <th class="hide-on-med-and-down"><?php echo __('Last Backup', 'xcloner-backup-and-restore') ?></th> |
|
30 | + <th><?php echo __('Status', 'xcloner-backup-and-restore') ?></th> |
|
31 | + <th class="no-sort"><?php echo __('Action', 'xcloner-backup-and-restore') ?></th> |
|
32 | 32 | </tr> |
33 | 33 | </thead> |
34 | 34 | <tfoot> |
35 | 35 | <tr> |
36 | - <th><?php echo __( 'ID', 'xcloner-backup-and-restore' ) ?></th> |
|
37 | - <th><?php echo __( 'Schedule Name', 'xcloner-backup-and-restore' ) ?></th> |
|
38 | - <th><?php echo __( 'Recurrence', 'xcloner-backup-and-restore' ) ?></th> |
|
39 | - <th class="hide-on-med-and-down"><?php echo __( 'Next Execution', 'xcloner-backup-and-restore' ) ?></th> |
|
40 | - <th><?php echo __( 'Remote Storage', 'xcloner-backup-and-restore' ) ?></th> |
|
41 | - <th class="hide-on-med-and-down"><?php echo __( 'Last Backup', 'xcloner-backup-and-restore' ) ?></th> |
|
42 | - <th><?php echo __( 'Status', 'xcloner-backup-and-restore' ) ?></th> |
|
43 | - <th><?php echo __( 'Action', 'xcloner-backup-and-restore' ) ?></th> |
|
36 | + <th><?php echo __('ID', 'xcloner-backup-and-restore') ?></th> |
|
37 | + <th><?php echo __('Schedule Name', 'xcloner-backup-and-restore') ?></th> |
|
38 | + <th><?php echo __('Recurrence', 'xcloner-backup-and-restore') ?></th> |
|
39 | + <th class="hide-on-med-and-down"><?php echo __('Next Execution', 'xcloner-backup-and-restore') ?></th> |
|
40 | + <th><?php echo __('Remote Storage', 'xcloner-backup-and-restore') ?></th> |
|
41 | + <th class="hide-on-med-and-down"><?php echo __('Last Backup', 'xcloner-backup-and-restore') ?></th> |
|
42 | + <th><?php echo __('Status', 'xcloner-backup-and-restore') ?></th> |
|
43 | + <th><?php echo __('Action', 'xcloner-backup-and-restore') ?></th> |
|
44 | 44 | </tr> |
45 | 45 | </tfoot> |
46 | 46 | <tbody> |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | |
51 | 51 | <div class="row"> |
52 | 52 | <div class="col s12 m6 offset-m6 teal lighten-1" id="server_time"> |
53 | - <h2><?php echo __( 'Current Server Time', 'xcloner-backup-and-restore' ) ?>: <span |
|
54 | - class="right"><?php echo current_time( 'mysql' ); ?></span></h2> |
|
53 | + <h2><?php echo __('Current Server Time', 'xcloner-backup-and-restore') ?>: <span |
|
54 | + class="right"><?php echo current_time('mysql'); ?></span></h2> |
|
55 | 55 | </div> |
56 | 56 | </div> |
57 | 57 | |
@@ -65,17 +65,17 @@ discard block |
||
65 | 65 | |
66 | 66 | <div class="row"> |
67 | 67 | <div class="col s12 m6"> |
68 | - <h4><?php echo __( 'Edit Schedule', 'xcloner-backup-and-restore' ) ?> #<span |
|
68 | + <h4><?php echo __('Edit Schedule', 'xcloner-backup-and-restore') ?> #<span |
|
69 | 69 | id="schedule_id"></span></h4> |
70 | 70 | </div> |
71 | 71 | |
72 | 72 | <div class="col s12 m6 right-align"> |
73 | 73 | <div class="switch"> |
74 | 74 | <label> |
75 | - <?php echo __( 'Off', 'xcloner-backup-and-restore' ) ?> |
|
75 | + <?php echo __('Off', 'xcloner-backup-and-restore') ?> |
|
76 | 76 | <input type="checkbox" id="status" name="status" value="1"> |
77 | 77 | <span class="lever"></span> |
78 | - <?php echo __( 'On', 'xcloner-backup-and-restore' ) ?> |
|
78 | + <?php echo __('On', 'xcloner-backup-and-restore') ?> |
|
79 | 79 | </label> |
80 | 80 | </div> |
81 | 81 | </div> |
@@ -85,10 +85,10 @@ discard block |
||
85 | 85 | |
86 | 86 | <ul class="nav-tab-wrapper content row"> |
87 | 87 | <li><a href="#scheduler_settings" |
88 | - class="nav-tab col s12 m6 nav-tab-active"><?php echo __( 'Scheduler Settings', 'xcloner-backup-and-restore' ) ?></a> |
|
88 | + class="nav-tab col s12 m6 nav-tab-active"><?php echo __('Scheduler Settings', 'xcloner-backup-and-restore') ?></a> |
|
89 | 89 | </li> |
90 | 90 | <li><a href="#advanced_scheduler_settings" |
91 | - class="nav-tab col s12 m6"><?php echo __( 'Advanced', 'xcloner-backup-and-restore' ) ?></a></li> |
|
91 | + class="nav-tab col s12 m6"><?php echo __('Advanced', 'xcloner-backup-and-restore') ?></a></li> |
|
92 | 92 | </ul> |
93 | 93 | |
94 | 94 | <div class="nav-tab-wrapper-content"> |
@@ -97,15 +97,15 @@ discard block |
||
97 | 97 | <div class="row"> |
98 | 98 | <div class="input-field col s12"> |
99 | 99 | <input placeholder="" name="schedule_name" id="schedule_name" type="text" required value=""> |
100 | - <label for="schedule_name"><?php echo __( 'Schedule Name', 'xcloner-backup-and-restore' ) ?></label> |
|
100 | + <label for="schedule_name"><?php echo __('Schedule Name', 'xcloner-backup-and-restore') ?></label> |
|
101 | 101 | </div> |
102 | 102 | <!--<div class="input-field inline col s12 l6"> |
103 | 103 | <select id="backup_type" class="" name="backup_type" id="backup_type"> |
104 | - <option value=""><?php echo __( "Full Backup", "xcloner-backup-and-restore" ); ?></option> |
|
105 | - <option value="diff"><?php echo __( "Differential Backups", "xcloner-backup-and-restore" ); ?></option> |
|
106 | - <option value="full_diff"><?php echo __( "Full Backup + Differential Backups", "xcloner-backup-and-restore" ); ?></option> |
|
104 | + <option value=""><?php echo __("Full Backup", "xcloner-backup-and-restore"); ?></option> |
|
105 | + <option value="diff"><?php echo __("Differential Backups", "xcloner-backup-and-restore"); ?></option> |
|
106 | + <option value="full_diff"><?php echo __("Full Backup + Differential Backups", "xcloner-backup-and-restore"); ?></option> |
|
107 | 107 | </select> |
108 | - <label for="backup_type"><?php echo __( 'Scheduled Backup Type', 'xcloner-backup-and-restore' ) ?></label> |
|
108 | + <label for="backup_type"><?php echo __('Scheduled Backup Type', 'xcloner-backup-and-restore') ?></label> |
|
109 | 109 | </div>--> |
110 | 110 | </div> |
111 | 111 | |
@@ -114,18 +114,18 @@ discard block |
||
114 | 114 | <input placeholder="" name="schedule_start_date" id="schedule_start_date" type="datetime" |
115 | 115 | value=""> |
116 | 116 | <label for="schedule_start_date" |
117 | - class="active"><?php echo __( 'Schedule Start At', 'xcloner-backup-and-restore' ) ?> |
|
117 | + class="active"><?php echo __('Schedule Start At', 'xcloner-backup-and-restore') ?> |
|
118 | 118 | :</label> |
119 | 119 | </div> |
120 | 120 | |
121 | 121 | <div class="input-field col s12 l6"> |
122 | 122 | <select name="schedule_frequency" id="schedule_frequency" class="validate" required> |
123 | 123 | <option value="" disabled |
124 | - selected><?php echo __( 'Schedule Recurrence', 'xcloner-backup-and-restore' ) ?></option> |
|
124 | + selected><?php echo __('Schedule Recurrence', 'xcloner-backup-and-restore') ?></option> |
|
125 | 125 | <?php |
126 | 126 | $schedules = $xcloner_scheduler->get_available_intervals(); |
127 | 127 | |
128 | - foreach ( $schedules as $key => $schedule ) { |
|
128 | + foreach ($schedules as $key => $schedule) { |
|
129 | 129 | ?> |
130 | 130 | <option value="<?php echo $key ?>"><?php echo $schedule['display'] ?></option> |
131 | 131 | <?php |
@@ -135,17 +135,17 @@ discard block |
||
135 | 135 | </div> |
136 | 136 | </div> |
137 | 137 | |
138 | - <?php if ( sizeof( $available_storages ) ): ?> |
|
138 | + <?php if (sizeof($available_storages)): ?> |
|
139 | 139 | <div class="row"> |
140 | 140 | <div class="input-field col s12 l12"> |
141 | 141 | <select name="schedule_storage" id="schedule_storage" class="validate"> |
142 | 142 | <option value="" |
143 | - selected><?php echo __( 'none', 'xcloner-backup-and-restore' ) ?></option> |
|
144 | - <?php foreach ( $available_storages as $storage => $text ): ?> |
|
143 | + selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option> |
|
144 | + <?php foreach ($available_storages as $storage => $text): ?> |
|
145 | 145 | <option value="<?php echo $storage ?>"><?php echo $text ?></option> |
146 | 146 | <?php endforeach ?> |
147 | 147 | </select> |
148 | - <label><?php echo __( 'Send To Remote Storage ', 'xcloner-backup-and-restore' ) ?></label> |
|
148 | + <label><?php echo __('Send To Remote Storage ', 'xcloner-backup-and-restore') ?></label> |
|
149 | 149 | </div> |
150 | 150 | </div> |
151 | 151 | <?php endif ?> |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | <div class="input-field col s12 l12"> |
155 | 155 | <input placeholder="" name="email_notification" id="email_notification" type="text" |
156 | 156 | value=""> |
157 | - <label for="email_notification"><?php echo __( 'Email Notification Address', 'xcloner-backup-and-restore' ) ?></label> |
|
157 | + <label for="email_notification"><?php echo __('Email Notification Address', 'xcloner-backup-and-restore') ?></label> |
|
158 | 158 | </div> |
159 | 159 | </div> |
160 | 160 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | <div class="input-field col s12 l12"> |
163 | 163 | <input placeholder="" name="diff_start_date" id="diff_start_date" type="text" |
164 | 164 | class="datepicker_max_today" value=""> |
165 | - <label for="diff_start_date"><?php echo __( 'Backup Only Files Modified/Created After', 'xcloner-backup-and-restore' ) ?></label> |
|
165 | + <label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After', 'xcloner-backup-and-restore') ?></label> |
|
166 | 166 | </div> |
167 | 167 | </div> |
168 | 168 | </div> |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | <div class="row"> |
172 | 172 | <div class="input-field col s12 l12"> |
173 | 173 | <input placeholder="" name="backup_name" id="backup_name" type="text" required value=""> |
174 | - <label for="backup_name"><?php echo __( 'Backup Name', 'xcloner-backup-and-restore' ) ?></label> |
|
174 | + <label for="backup_name"><?php echo __('Backup Name', 'xcloner-backup-and-restore') ?></label> |
|
175 | 175 | </div> |
176 | 176 | </div> |
177 | 177 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | <textarea id="table_params" name="table_params" class="materialize-textarea" |
181 | 181 | rows="15"></textarea> |
182 | 182 | <label for="table_params" |
183 | - class="active"><?php echo __( 'Included Database Data', 'xcloner-backup-and-restore' ) ?></label> |
|
183 | + class="active"><?php echo __('Included Database Data', 'xcloner-backup-and-restore') ?></label> |
|
184 | 184 | </div> |
185 | 185 | </div> |
186 | 186 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | <textarea id="excluded_files" name="excluded_files" class="materialize-textarea" |
190 | 190 | rows="15"></textarea> |
191 | 191 | <label for="excluded_files" |
192 | - class="active"><?php echo __( 'Excluded Files', 'xcloner-backup-and-restore' ) ?></label> |
|
192 | + class="active"><?php echo __('Excluded Files', 'xcloner-backup-and-restore') ?></label> |
|
193 | 193 | </div> |
194 | 194 | </div> |
195 | 195 | </div> |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | <div class="input-field col s12 "> |
201 | 201 | <button class="right btn waves-effect waves-light" type="submit" |
202 | - name="action"><?php echo __( 'Save', 'xcloner-backup-and-restore' ) ?> |
|
202 | + name="action"><?php echo __('Save', 'xcloner-backup-and-restore') ?> |
|
203 | 203 | <i class="material-icons right">send</i> |
204 | 204 | </button> |
205 | 205 | </div> |
@@ -8,25 +8,25 @@ discard block |
||
8 | 8 | |
9 | 9 | <script>var xcloner_backup = new Xcloner_Backup();</script> |
10 | 10 | |
11 | -<h1><?= esc_html( get_admin_page_title() ); ?></h1> |
|
11 | +<h1><?= esc_html(get_admin_page_title()); ?></h1> |
|
12 | 12 | |
13 | 13 | <ul class="nav-tab-wrapper content row"> |
14 | 14 | <li><a href="#backup_options" |
15 | - class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab . ". " . __( 'Backup Options', 'xcloner-backup-and-restore' ) ?></a> |
|
15 | + class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab.". ".__('Backup Options', 'xcloner-backup-and-restore') ?></a> |
|
16 | 16 | </li> |
17 | - <?php if ( $xcloner_settings->get_enable_mysql_backup() ): ?> |
|
17 | + <?php if ($xcloner_settings->get_enable_mysql_backup()): ?> |
|
18 | 18 | <li><a href="#database_options" |
19 | - class="nav-tab col s12 m3 l2 "><?php echo ++ $tab . ". " . __( 'Database Options', 'xcloner-backup-and-restore' ) ?></a> |
|
19 | + class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options', 'xcloner-backup-and-restore') ?></a> |
|
20 | 20 | </li> |
21 | 21 | <?php endif ?> |
22 | 22 | <li><a href="#files_options" |
23 | - class="nav-tab col s12 m3 l2 "><?php echo ++ $tab . ". " . __( 'Files Options', 'xcloner-backup-and-restore' ) ?></a> |
|
23 | + class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options', 'xcloner-backup-and-restore') ?></a> |
|
24 | 24 | </li> |
25 | 25 | <li><a href="#generate_backup" |
26 | - class="nav-tab col s12 m3 l2 "><?php echo ++ $tab . ". " . __( 'Generate Backup', 'xcloner-backup-and-restore' ) ?></a> |
|
26 | + class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup', 'xcloner-backup-and-restore') ?></a> |
|
27 | 27 | </li> |
28 | 28 | <li><a href="#schedule_backup" |
29 | - class="nav-tab col s12 m3 l2 "><?php echo ++ $tab . ". " . __( 'Schedule Backup', 'xcloner-backup-and-restore' ) ?></a> |
|
29 | + class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup', 'xcloner-backup-and-restore') ?></a> |
|
30 | 30 | </li> |
31 | 31 | </ul> |
32 | 32 | |
@@ -39,11 +39,11 @@ discard block |
||
39 | 39 | <i class="material-icons prefix">input</i> |
40 | 40 | <input name="backup_name" id="backup_name" type="text" |
41 | 41 | value=<?php echo $xcloner_settings->get_default_backup_name() ?>> |
42 | - <label for="backup_name"><?php echo __( 'Backup Name', 'xcloner-backup-and-restore' ) ?></label> |
|
42 | + <label for="backup_name"><?php echo __('Backup Name', 'xcloner-backup-and-restore') ?></label> |
|
43 | 43 | </div> |
44 | 44 | <div class="hide-on-small-only m2"> |
45 | 45 | <a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" |
46 | - data-tooltip="<?php echo __( 'The default backup name, supported tags [time], [hostname], [domain]', 'xcloner-backup-and-restore' ) ?>" |
|
46 | + data-tooltip="<?php echo __('The default backup name, supported tags [time], [hostname], [domain]', 'xcloner-backup-and-restore') ?>" |
|
47 | 47 | data-tooltip-id=""><i class="material-icons">help_outline</i></a> |
48 | 48 | </div> |
49 | 49 | </div> |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | <div class="input-field inline col s12 m10 l6"> |
53 | 53 | <i class="material-icons prefix">email</i> |
54 | 54 | <input name="email_notification" id="email_notification" type="text" |
55 | - value="<?php echo get_option( 'admin_email' ); ?>"> |
|
56 | - <label for="email_notification"><?php echo __( 'Send Email Notification To', 'xcloner-backup-and-restore' ) ?></label> |
|
55 | + value="<?php echo get_option('admin_email'); ?>"> |
|
56 | + <label for="email_notification"><?php echo __('Send Email Notification To', 'xcloner-backup-and-restore') ?></label> |
|
57 | 57 | </div> |
58 | 58 | <div class="hide-on-small-only m2"> |
59 | 59 | <a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" |
60 | - data-tooltip="<?php echo __( 'If left blank, no notification will be sent', 'xcloner-backup-and-restore' ) ?>" |
|
60 | + data-tooltip="<?php echo __('If left blank, no notification will be sent', 'xcloner-backup-and-restore') ?>" |
|
61 | 61 | data-tooltip-id=""><i class="material-icons">help_outline</i></a> |
62 | 62 | </div> |
63 | 63 | </div> |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | <i class="material-icons prefix">access_time</i> |
68 | 68 | <input type="datetime-local" id="diff_start_date" class="datepicker_max_today" |
69 | 69 | name="diff_start_date"> |
70 | - <label for="diff_start_date"><?php echo __( 'Backup Only Files Modified/Created After', 'xcloner-backup-and-restore' ) ?></label> |
|
70 | + <label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After', 'xcloner-backup-and-restore') ?></label> |
|
71 | 71 | </div> |
72 | 72 | <div class="hide-on-small-only m2"> |
73 | 73 | <a class="btn-floating tooltipped btn-small" data-html="true" data-position="center" data-delay="50" |
74 | - data-tooltip="<?php echo __( "This option allows you to create a differential backup that will include only <br> changed files since the set date, leave blank to include all files", "xcloner-backup-and-restore" ) ?>"><i |
|
74 | + data-tooltip="<?php echo __("This option allows you to create a differential backup that will include only <br> changed files since the set date, leave blank to include all files", "xcloner-backup-and-restore") ?>"><i |
|
75 | 75 | class="material-icons">help_outline</i></a> |
76 | 76 | </div> |
77 | 77 | </div> |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | <div class="input-field col s12 m10 l6"> |
81 | 81 | <i class="material-icons prefix">input</i> |
82 | 82 | <textarea name="backup_comments" id="backup_comments" class="materialize-textarea"></textarea> |
83 | - <label for="backup_comments"><?php echo __( 'Backup Comments', 'xcloner-backup-and-restore' ) ?></label> |
|
83 | + <label for="backup_comments"><?php echo __('Backup Comments', 'xcloner-backup-and-restore') ?></label> |
|
84 | 84 | </div> |
85 | 85 | <div class="hide-on-small-only m2"> |
86 | 86 | <a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" |
87 | - data-tooltip="<?php echo __( 'Some default backup comments that will be stored inside the backup archive', 'xcloner-backup-and-restore' ) ?>" |
|
87 | + data-tooltip="<?php echo __('Some default backup comments that will be stored inside the backup archive', 'xcloner-backup-and-restore') ?>" |
|
88 | 88 | data-tooltip-id=""><i class="material-icons">help_outline</i></a> |
89 | 89 | </div> |
90 | 90 | </div> |
@@ -97,11 +97,11 @@ discard block |
||
97 | 97 | </div> |
98 | 98 | </div> |
99 | 99 | |
100 | - <?php if ( $xcloner_settings->get_enable_mysql_backup() ): ?> |
|
100 | + <?php if ($xcloner_settings->get_enable_mysql_backup()): ?> |
|
101 | 101 | <div id="database_options" class="tab-content"> |
102 | - <h2><?php echo __( 'Select database data to include in the backup', 'xcloner-backup-and-restore' ) ?>: |
|
102 | + <h2><?php echo __('Select database data to include in the backup', 'xcloner-backup-and-restore') ?>: |
|
103 | 103 | <a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" |
104 | - data-tooltip="<?php echo __( 'Enable the \'Backup only WP tables\' setting if you don\'t want to show all other databases and tables not related to this Wordpress install', 'xcloner-backup-and-restore' ); ?>" |
|
104 | + data-tooltip="<?php echo __('Enable the \'Backup only WP tables\' setting if you don\'t want to show all other databases and tables not related to this Wordpress install', 'xcloner-backup-and-restore'); ?>" |
|
105 | 105 | data-tooltip-id=""><i class="material-icons">help_outline</i></a> |
106 | 106 | </h2> |
107 | 107 | |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | <?php endif ?> |
124 | 124 | |
125 | 125 | <div id="files_options" class="tab-content"> |
126 | - <h2><?php echo __( 'Select from below the files/folders you want to exclude from your Backup Archive', 'xcloner-backup-and-restore' ) ?> |
|
126 | + <h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive', 'xcloner-backup-and-restore') ?> |
|
127 | 127 | : |
128 | 128 | <a class="btn-floating tooltipped btn-small" data-position="bottom" data-delay="50" data-html="true" |
129 | - data-tooltip="<?php echo __( 'You can navigate below through all your site structure(Backup Start Location) to exclude any file/folder you need by clicking the checkbox near it. <br />If the checkobx is disabled, then it matches a Regex Exclude File option and it can\'t be unchecked', 'xcloner-backup-and-restore' ); ?>" |
|
129 | + data-tooltip="<?php echo __('You can navigate below through all your site structure(Backup Start Location) to exclude any file/folder you need by clicking the checkbox near it. <br />If the checkobx is disabled, then it matches a Regex Exclude File option and it can\'t be unchecked', 'xcloner-backup-and-restore'); ?>" |
|
130 | 130 | data-tooltip-id=""><i class="material-icons">help_outline</i></a> |
131 | 131 | </h2> |
132 | 132 | |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | <ul class="backup-status collapsible" data-collapsible="accordion"> |
162 | 162 | <li class="file-system"> |
163 | 163 | <div class="collapsible-header"> |
164 | - <i class="material-icons">folder</i><?php echo __( 'Scanning The File System...', 'xcloner-backup-and-restore' ) ?> |
|
164 | + <i class="material-icons">folder</i><?php echo __('Scanning The File System...', 'xcloner-backup-and-restore') ?> |
|
165 | 165 | |
166 | - <p class="right"><?php echo sprintf( __( 'Found %s files (%s)', 'xcloner-backup-and-restore' ), '<span class="file-counter">0</span>', '<span class="file-size-total">0</span>MB' ) ?></p> |
|
166 | + <p class="right"><?php echo sprintf(__('Found %s files (%s)', 'xcloner-backup-and-restore'), '<span class="file-counter">0</span>', '<span class="file-size-total">0</span>MB') ?></p> |
|
167 | 167 | |
168 | 168 | <div> |
169 | 169 | <p class="right"><span class="last-logged-file"></span></p> |
@@ -175,12 +175,12 @@ discard block |
||
175 | 175 | </div> |
176 | 176 | <div class="collapsible-body status-body"></div> |
177 | 177 | </li> |
178 | - <?php if ( $xcloner_settings->get_enable_mysql_backup() ): ?> |
|
178 | + <?php if ($xcloner_settings->get_enable_mysql_backup()): ?> |
|
179 | 179 | <li class="database-backup"> |
180 | 180 | <div class="collapsible-header"> |
181 | - <i class="material-icons">storage</i><?php echo __( 'Generating the Mysql Backup...', 'xcloner-backup-and-restore' ) ?> |
|
181 | + <i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...', 'xcloner-backup-and-restore') ?> |
|
182 | 182 | |
183 | - <p class="right"><?php echo sprintf( __( 'Found %s tables in %s databases (%s)', 'xcloner-backup-and-restore' ), '<span class="table-counter">0</span>', '<span class="database-counter">0</span>', '<span data-processed="0" class="total-records">0</span> records', 'xcloner-backup-and-restore' ) ?></p> |
|
183 | + <p class="right"><?php echo sprintf(__('Found %s tables in %s databases (%s)', 'xcloner-backup-and-restore'), '<span class="table-counter">0</span>', '<span class="database-counter">0</span>', '<span data-processed="0" class="total-records">0</span> records', 'xcloner-backup-and-restore') ?></p> |
|
184 | 184 | |
185 | 185 | <div> |
186 | 186 | <p class="right"><span class="last-logged-table"></span></p> |
@@ -204,9 +204,9 @@ discard block |
||
204 | 204 | <?php endif ?> |
205 | 205 | <li class="files-backup"> |
206 | 206 | <div class="collapsible-header"> |
207 | - <i class="material-icons">archive</i><?php echo __( 'Adding Files to Archive...', 'xcloner-backup-and-restore' ) ?> |
|
207 | + <i class="material-icons">archive</i><?php echo __('Adding Files to Archive...', 'xcloner-backup-and-restore') ?> |
|
208 | 208 | |
209 | - <p class="right"><?php echo sprintf( __( 'Adding %s files (%s)', 'xcloner-backup-and-restore' ), '<span class="file-counter">0</span>', '<span data-processed="0" class="file-size-total">0</span>MB' ) ?></p> |
|
209 | + <p class="right"><?php echo sprintf(__('Adding %s files (%s)', 'xcloner-backup-and-restore'), '<span class="file-counter">0</span>', '<span data-processed="0" class="file-size-total">0</span>MB') ?></p> |
|
210 | 210 | |
211 | 211 | <div> |
212 | 212 | <p class="right"><span class="last-logged-file"></span></p> |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | <div class="collapsible-body status-body"> |
220 | 220 | <div class="row"> |
221 | 221 | <div class="col l3 s12"> |
222 | - <h2><?php echo __( "Backup Parts", 'xcloner-backup-and-restore' ) ?>: </h2> |
|
222 | + <h2><?php echo __("Backup Parts", 'xcloner-backup-and-restore') ?>: </h2> |
|
223 | 223 | </div> |
224 | 224 | <div class="col l9 s12"> |
225 | 225 | <ul class="backup-name"></ul> |
@@ -229,19 +229,19 @@ discard block |
||
229 | 229 | </li> |
230 | 230 | <li class="backup-done"> |
231 | 231 | <div class="collapsible-header"> |
232 | - <i class="material-icons">done</i><?php echo __( 'Backup Done', 'xcloner-backup-and-restore' ) ?> |
|
232 | + <i class="material-icons">done</i><?php echo __('Backup Done', 'xcloner-backup-and-restore') ?> |
|
233 | 233 | |
234 | 234 | <p class="right"> |
235 | - <?php if ( sizeof( $available_storages ) ): ?> |
|
235 | + <?php if (sizeof($available_storages)): ?> |
|
236 | 236 | <a href="#" class="cloud-upload" |
237 | - title="<?php echo __( "Send Backup To Remote Storage", 'xcloner-backup-and-restore' ) ?>"><i |
|
237 | + title="<?php echo __("Send Backup To Remote Storage", 'xcloner-backup-and-restore') ?>"><i |
|
238 | 238 | class="material-icons">cloud_upload</i></a> |
239 | 239 | <?php endif ?> |
240 | 240 | <a href="#" class="download" |
241 | - title="<?php echo __( "Download Backup", 'xcloner-backup-and-restore' ) ?>"><i |
|
241 | + title="<?php echo __("Download Backup", 'xcloner-backup-and-restore') ?>"><i |
|
242 | 242 | class="material-icons">file_download</i></a> |
243 | 243 | <a href="#" class="list-backup-content" |
244 | - title="<?php echo __( "List Backup Content", 'xcloner-backup-and-restore' ) ?>"><i |
|
244 | + title="<?php echo __("List Backup Content", 'xcloner-backup-and-restore') ?>"><i |
|
245 | 245 | class="material-icons">folder_open</i></a> |
246 | 246 | </p> |
247 | 247 | |
@@ -252,8 +252,8 @@ discard block |
||
252 | 252 | </div> |
253 | 253 | <div class="collapsible-body center-align"> |
254 | 254 | <div class="row"> |
255 | - <h5><?php echo __( "Thank you for using XCloner.", 'xcloner-backup-and-restore' ) ?></h5> |
|
256 | - <h6><?php echo sprintf( __( "We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore' ), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore/reviews/" target="_blank">Wordpress XCloner Reviews Section</a>' ) ?></h6> |
|
255 | + <h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore') ?></h5> |
|
256 | + <h6><?php echo sprintf(__("We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore'), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore/reviews/" target="_blank">Wordpress XCloner Reviews Section</a>') ?></h6> |
|
257 | 257 | <a class="twitter-follow-button" href="https://twitter.com/thinkovi" |
258 | 258 | data-show-count="false">Follow @thinkovi</a> |
259 | 259 | <script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script> |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | |
275 | 275 | <div class="row"> |
276 | 276 | <div id="schedule_backup_success" class="col s12 l6 updated settings-error notice is-dismissible"> |
277 | - <p><strong><?php echo __( 'Schedule Saved', 'xcloner-backup-and-restore' ) ?></strong></p> |
|
277 | + <p><strong><?php echo __('Schedule Saved', 'xcloner-backup-and-restore') ?></strong></p> |
|
278 | 278 | <button type="button" class="notice-dismiss"><span |
279 | - class="screen-reader-text"><?php echo __( '(Dismiss this notice.', 'xcloner-backup-and-restore' ) ?></span> |
|
279 | + class="screen-reader-text"><?php echo __('(Dismiss this notice.', 'xcloner-backup-and-restore') ?></span> |
|
280 | 280 | </button> |
281 | 281 | </div> |
282 | 282 | </div> |
@@ -284,18 +284,18 @@ discard block |
||
284 | 284 | <div class="row"> |
285 | 285 | <div class="input-field inline col s12 l7"> |
286 | 286 | <input type="text" id="schedule_name" class="" name="schedule_name" required> |
287 | - <label for="schedule_name"><?php echo __( 'Schedule Name', 'xcloner-backup-and-restore' ) ?></label> |
|
287 | + <label for="schedule_name"><?php echo __('Schedule Name', 'xcloner-backup-and-restore') ?></label> |
|
288 | 288 | </div> |
289 | 289 | </div> |
290 | 290 | |
291 | 291 | <div class="row"> |
292 | 292 | <div class="input-field inline col s12 m8 l4"> |
293 | 293 | <input type="datetime-local" id="datepicker" class="datepicker" name="schedule_start_date"> |
294 | - <label for="datepicker"><?php echo __( 'Schedule Backup To Start On:', 'xcloner-backup-and-restore' ) ?></label> |
|
294 | + <label for="datepicker"><?php echo __('Schedule Backup To Start On:', 'xcloner-backup-and-restore') ?></label> |
|
295 | 295 | </div> |
296 | 296 | <div class="input-field inline col s12 m4 l3"> |
297 | 297 | <input id="timepicker_ampm_dark" class="timepicker" type="time" name="schedule_start_time"> |
298 | - <label for="timepicker_ampm_dark"><?php echo __( 'At:', 'xcloner-backup-and-restore' ) ?></label> |
|
298 | + <label for="timepicker_ampm_dark"><?php echo __('At:', 'xcloner-backup-and-restore') ?></label> |
|
299 | 299 | </div> |
300 | 300 | </div> |
301 | 301 | |
@@ -303,17 +303,17 @@ discard block |
||
303 | 303 | <div class="row"> |
304 | 304 | <div class="input-field inline col s10 m11 l7"> |
305 | 305 | <select id="backup_type" class="" name="backup_type"> |
306 | - <option value=""><?php echo __( "Full Backup", "xcloner-backup-and-restore" ); ?></option> |
|
307 | - <option value="diff"><?php echo __( "Differential Backups", "xcloner-backup-and-restore" ); ?></option> |
|
308 | - <option value="full_diff"><?php echo __( "Full Backup + Differential Backups", "xcloner-backup-and-restore" ); ?></option> |
|
306 | + <option value=""><?php echo __("Full Backup", "xcloner-backup-and-restore"); ?></option> |
|
307 | + <option value="diff"><?php echo __("Differential Backups", "xcloner-backup-and-restore"); ?></option> |
|
308 | + <option value="full_diff"><?php echo __("Full Backup + Differential Backups", "xcloner-backup-and-restore"); ?></option> |
|
309 | 309 | </select> |
310 | - <label for="backup_type"><?php echo __( 'Scheduled Backup Type', 'xcloner-backup-and-restore' ) ?></label> |
|
310 | + <label for="backup_type"><?php echo __('Scheduled Backup Type', 'xcloner-backup-and-restore') ?></label> |
|
311 | 311 | </div> |
312 | 312 | <div class="col s2 m1"> |
313 | 313 | <a class="btn-floating tooltipped btn-small" data-html="true" data-position="center" data-delay="50" data-tooltip="<ul style='max-width:760px; text-align:left;'> |
314 | - <li><?php echo __( "Full Backup = it will generate a full backup of all included files each time schedule runs", "xcloner-backup-and-restore" ); ?></li> |
|
315 | - <li><?php echo __( "Differentials Backups = backups will include only changed files since the schedule started to run", "xcloner-backup-and-restore" ); ?></li> |
|
316 | - <li><?php echo __( "Full Backup + Differential Backups = the first time schedule runs, it will create a full backup and all next scheduled backups will include only files created/modified since that last full backup; a full backup is recreated when the number of changed files is bigger than the 'Differetial Backups Max Days' XCloner option.", "xcloner-backup-and-restore" ); ?></li> |
|
314 | + <li><?php echo __("Full Backup = it will generate a full backup of all included files each time schedule runs", "xcloner-backup-and-restore"); ?></li> |
|
315 | + <li><?php echo __("Differentials Backups = backups will include only changed files since the schedule started to run", "xcloner-backup-and-restore"); ?></li> |
|
316 | + <li><?php echo __("Full Backup + Differential Backups = the first time schedule runs, it will create a full backup and all next scheduled backups will include only files created/modified since that last full backup; a full backup is recreated when the number of changed files is bigger than the 'Differetial Backups Max Days' XCloner option.", "xcloner-backup-and-restore"); ?></li> |
|
317 | 317 | </ul>"><i class="material-icons">help_outline</i></a> |
318 | 318 | </div> |
319 | 319 | </div> |
@@ -322,38 +322,38 @@ discard block |
||
322 | 322 | <div class="input-field col s12 l7"> |
323 | 323 | <select name="schedule_frequency" id="schedule_frequency" class="validate" required> |
324 | 324 | <option value="" disabled |
325 | - selected><?php echo __( 'please select', 'xcloner-backup-and-restore' ) ?></option> |
|
325 | + selected><?php echo __('please select', 'xcloner-backup-and-restore') ?></option> |
|
326 | 326 | <?php |
327 | 327 | $schedules = $xcloner_scheduler->get_available_intervals(); |
328 | 328 | |
329 | - foreach ( $schedules as $key => $schedule ) { |
|
329 | + foreach ($schedules as $key => $schedule) { |
|
330 | 330 | ?> |
331 | 331 | <option value="<?php echo $key ?>"><?php echo $schedule['display'] ?></option> |
332 | 332 | <?php |
333 | 333 | } |
334 | 334 | ?> |
335 | 335 | </select> |
336 | - <label><?php echo __( 'Schedule Frequency', 'xcloner-backup-and-restore' ) ?></label> |
|
336 | + <label><?php echo __('Schedule Frequency', 'xcloner-backup-and-restore') ?></label> |
|
337 | 337 | </div> |
338 | 338 | </div> |
339 | 339 | |
340 | - <?php if ( sizeof( $available_storages ) ): ?> |
|
340 | + <?php if (sizeof($available_storages)): ?> |
|
341 | 341 | <div class="row"> |
342 | 342 | <div class="input-field col s12 m12 l7"> |
343 | 343 | <select name="schedule_storage" id="schedule_storage" class="validate"> |
344 | - <option value="" selected><?php echo __( 'none', 'xcloner-backup-and-restore' ) ?></option> |
|
345 | - <?php foreach ( $available_storages as $storage => $text ): ?> |
|
344 | + <option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option> |
|
345 | + <?php foreach ($available_storages as $storage => $text): ?> |
|
346 | 346 | <option value="<?php echo $storage ?>"><?php echo $text ?></option> |
347 | 347 | <?php endforeach ?> |
348 | 348 | </select> |
349 | - <label><?php echo __( 'Send To Remote Storage', 'xcloner-backup-and-restore' ) ?></label> |
|
349 | + <label><?php echo __('Send To Remote Storage', 'xcloner-backup-and-restore') ?></label> |
|
350 | 350 | </div> |
351 | 351 | </div> |
352 | 352 | <?php endif ?> |
353 | 353 | <div class="row"> |
354 | 354 | <div class="col s12 l7"> |
355 | 355 | <button class="right btn waves-effect waves-light submit_schedule" type="submit" |
356 | - name="action"><?php echo __( "Submit", 'xcloner-backup-and-restore' ) ?> |
|
356 | + name="action"><?php echo __("Submit", 'xcloner-backup-and-restore') ?> |
|
357 | 357 | <i class="material-icons right">send</i> |
358 | 358 | </button> |
359 | 359 | </div> |
@@ -368,19 +368,19 @@ discard block |
||
368 | 368 | class="material-icons medium right">help</i></a> |
369 | 369 | <div class="modal-content"> |
370 | 370 | <h4 class="title_line"><span class="title"></span></h4> |
371 | - <!--<h5 class="title_line"><?php echo __( 'Message' ) ?>: <span class="msg.old"></span></h5>--> |
|
372 | - <h5><?php echo __( 'Response Code', 'xcloner-backup-and-restore' ) ?>: <span class="status"></span></h5> |
|
371 | + <!--<h5 class="title_line"><?php echo __('Message') ?>: <span class="msg.old"></span></h5>--> |
|
372 | + <h5><?php echo __('Response Code', 'xcloner-backup-and-restore') ?>: <span class="status"></span></h5> |
|
373 | 373 | <textarea class="body" rows="5"></textarea> |
374 | 374 | </div> |
375 | 375 | <div class="modal-footer"> |
376 | - <a class=" modal-action modal-close waves-effect waves-green btn-flat red darken-2"><?php echo __( 'Close', 'xcloner-backup-and-restore' ) ?></a> |
|
376 | + <a class=" modal-action modal-close waves-effect waves-green btn-flat red darken-2"><?php echo __('Close', 'xcloner-backup-and-restore') ?></a> |
|
377 | 377 | </div> |
378 | 378 | </div> |
379 | 379 | |
380 | 380 | <!-- List Backup Content Modal--> |
381 | 381 | <div id="backup_cotent_modal" class="modal"> |
382 | 382 | <div class="modal-content"> |
383 | - <h4><?php echo sprintf( __( "Listing Backup Content ", 'xcloner-backup-and-restore' ), "" ) ?></h4> |
|
383 | + <h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "") ?></h4> |
|
384 | 384 | <h5 class="backup-name"></h5> |
385 | 385 | |
386 | 386 | <div class="progress"> |
@@ -395,18 +395,18 @@ discard block |
||
395 | 395 | <form method="POST" class="remote-storage-form"> |
396 | 396 | <input type="hidden" name="file" class="backup_name"> |
397 | 397 | <div class="modal-content"> |
398 | - <h4><?php echo __( "Remote Storage Transfer", 'xcloner-backup-and-restore' ) ?></h4> |
|
398 | + <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore') ?></h4> |
|
399 | 399 | <p> |
400 | - <?php if ( sizeof( $available_storages ) ): ?> |
|
400 | + <?php if (sizeof($available_storages)): ?> |
|
401 | 401 | <div class="row"> |
402 | 402 | <div class="col s12 label"> |
403 | - <label><?php echo __( sprintf( 'Send %s to remote storage', "<span class='backup_name'></span>" ), 'xcloner-backup-and-restore' ) ?></label> |
|
403 | + <label><?php echo __(sprintf('Send %s to remote storage', "<span class='backup_name'></span>"), 'xcloner-backup-and-restore') ?></label> |
|
404 | 404 | </div> |
405 | 405 | <div class="input-field col s8 m10"> |
406 | 406 | <select name="transfer_storage" id="transfer_storage" class="validate" required> |
407 | 407 | <option value="" |
408 | - selected><?php echo __( 'please select...', 'xcloner-backup-and-restore' ) ?></option> |
|
409 | - <?php foreach ( $available_storages as $storage => $text ): ?> |
|
408 | + selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option> |
|
409 | + <?php foreach ($available_storages as $storage => $text): ?> |
|
410 | 410 | <option value="<?php echo $storage ?>"><?php echo $text ?></option> |
411 | 411 | <?php endforeach ?> |
412 | 412 | </select> |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | </div> |
419 | 419 | </div> |
420 | 420 | <div class="row status"> |
421 | - <?php echo __( "Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore' ) ?> |
|
421 | + <?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore') ?> |
|
422 | 422 | <span class="status-text"></span> |
423 | 423 | <div class="progress"> |
424 | 424 | <div class="indeterminate"></div> |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | } |
503 | 503 | }); |
504 | 504 | |
505 | - <?php if($xcloner_settings->get_enable_mysql_backup()):?> |
|
505 | + <?php if ($xcloner_settings->get_enable_mysql_backup()):?> |
|
506 | 506 | jQuery('#jstree_database_container').jstree({ |
507 | 507 | 'core': { |
508 | 508 | 'check_callback': true, |
@@ -25,17 +25,17 @@ discard block |
||
25 | 25 | */ |
26 | 26 | |
27 | 27 | // If this file is called directly, abort. |
28 | -if ( ! defined( 'WPINC' ) ) { |
|
28 | +if (!defined('WPINC')) { |
|
29 | 29 | die; |
30 | 30 | } |
31 | 31 | |
32 | 32 | //i will not load the plugin outside admin or cron |
33 | -if ( ! is_admin() and ! defined( 'DOING_CRON' ) ) { |
|
33 | +if (!is_admin() and !defined('DOING_CRON')) { |
|
34 | 34 | return; |
35 | 35 | } |
36 | 36 | |
37 | -if ( ! defined( "DS" ) ) { |
|
38 | - define( "DS", DIRECTORY_SEPARATOR ); |
|
37 | +if (!defined("DS")) { |
|
38 | + define("DS", DIRECTORY_SEPARATOR); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * This action is documented in includes/class-xcloner-activator.php |
44 | 44 | */ |
45 | 45 | function activate_xcloner() { |
46 | - require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php'; |
|
46 | + require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php'; |
|
47 | 47 | Xcloner_Activator::activate(); |
48 | 48 | } |
49 | 49 | |
@@ -52,31 +52,31 @@ discard block |
||
52 | 52 | * This action is documented in includes/class-xcloner-deactivator.php |
53 | 53 | */ |
54 | 54 | function deactivate_xcloner() { |
55 | - require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php'; |
|
55 | + require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php'; |
|
56 | 56 | Xcloner_Deactivator::deactivate(); |
57 | 57 | } |
58 | 58 | |
59 | -register_activation_hook( __FILE__, 'activate_xcloner' ); |
|
60 | -register_deactivation_hook( __FILE__, 'deactivate_xcloner' ); |
|
59 | +register_activation_hook(__FILE__, 'activate_xcloner'); |
|
60 | +register_deactivation_hook(__FILE__, 'deactivate_xcloner'); |
|
61 | 61 | |
62 | -require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php'; |
|
62 | +require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php'; |
|
63 | 63 | |
64 | -if ( version_compare( phpversion(), Xcloner_Activator::xcloner_minimum_version, '<' ) ) { |
|
64 | +if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) { |
|
65 | 65 | ?> |
66 | 66 | <div class="error notice"> |
67 | - <p><?php echo sprintf( __( "XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated." ), Xcloner_Activator::xcloner_minimum_version, phpversion() ) ?></p> |
|
67 | + <p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."), Xcloner_Activator::xcloner_minimum_version, phpversion()) ?></p> |
|
68 | 68 | </div> |
69 | 69 | <?php |
70 | - require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
|
71 | - deactivate_plugins( plugin_basename( __FILE__ ) ); |
|
70 | + require_once(ABSPATH.'wp-admin/includes/plugin.php'); |
|
71 | + deactivate_plugins(plugin_basename(__FILE__)); |
|
72 | 72 | |
73 | 73 | return; |
74 | 74 | } |
75 | 75 | |
76 | -$db_installed_ver = get_option( "xcloner_db_version" ); |
|
76 | +$db_installed_ver = get_option("xcloner_db_version"); |
|
77 | 77 | $xcloner_db_version = Xcloner_Activator::xcloner_db_version; |
78 | 78 | |
79 | -if ( $db_installed_ver != $xcloner_db_version ) { |
|
79 | +if ($db_installed_ver != $xcloner_db_version) { |
|
80 | 80 | Xcloner_Activator::activate(); |
81 | 81 | } |
82 | 82 | |
@@ -87,11 +87,11 @@ discard block |
||
87 | 87 | */ |
88 | 88 | |
89 | 89 | function xcloner_stop_heartbeat() { |
90 | - wp_deregister_script( 'heartbeat' ); |
|
90 | + wp_deregister_script('heartbeat'); |
|
91 | 91 | } |
92 | 92 | |
93 | -if ( isset( $_GET['page'] ) and stristr( $_GET['page'], "xcloner_" ) ) { |
|
94 | - add_action( 'init', 'xcloner_stop_heartbeat', 1 ); |
|
93 | +if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_")) { |
|
94 | + add_action('init', 'xcloner_stop_heartbeat', 1); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | return $plugin; |
113 | 113 | } |
114 | 114 | |
115 | -require_once( plugin_dir_path( __FILE__ ) . '/vendor/autoload.php' ); |
|
116 | -require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php'; |
|
115 | +require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php'); |
|
116 | +require plugin_dir_path(__FILE__).'includes/class-xcloner.php'; |
|
117 | 117 | |
118 | 118 | try { |
119 | 119 | $xcloner_plugin = run_xcloner(); |
120 | -} catch ( Exception $e ) { |
|
120 | +}catch (Exception $e) { |
|
121 | 121 | echo $e->getMessage(); |
122 | 122 | } |
123 | 123 |
@@ -7,29 +7,29 @@ discard block |
||
7 | 7 | public function __construct() { |
8 | 8 | } |
9 | 9 | |
10 | - public function sanitize_input_as_int( $option ) { |
|
11 | - return filter_var( $option, FILTER_SANITIZE_NUMBER_INT ); |
|
10 | + public function sanitize_input_as_int($option) { |
|
11 | + return filter_var($option, FILTER_SANITIZE_NUMBER_INT); |
|
12 | 12 | } |
13 | 13 | |
14 | - public function sanitize_input_as_float( $option ) { |
|
15 | - return filter_var( $option, FILTER_VALIDATE_FLOAT ); |
|
14 | + public function sanitize_input_as_float($option) { |
|
15 | + return filter_var($option, FILTER_VALIDATE_FLOAT); |
|
16 | 16 | } |
17 | 17 | |
18 | - public function sanitize_input_as_string( $option ) { |
|
19 | - return filter_var( $option, FILTER_SANITIZE_STRING ); |
|
18 | + public function sanitize_input_as_string($option) { |
|
19 | + return filter_var($option, FILTER_SANITIZE_STRING); |
|
20 | 20 | } |
21 | 21 | |
22 | - public function sanitize_input_as_absolute_path( $option ) { |
|
23 | - $path = filter_var( $option, FILTER_SANITIZE_URL ); |
|
22 | + public function sanitize_input_as_absolute_path($option) { |
|
23 | + $path = filter_var($option, FILTER_SANITIZE_URL); |
|
24 | 24 | |
25 | 25 | try { |
26 | - $option = Util::normalizePath( $path ); |
|
27 | - } catch ( Exception $e ) { |
|
28 | - add_settings_error( 'xcloner_error_message', '', __( $e->getMessage() ), 'error' ); |
|
26 | + $option = Util::normalizePath($path); |
|
27 | + }catch (Exception $e) { |
|
28 | + add_settings_error('xcloner_error_message', '', __($e->getMessage()), 'error'); |
|
29 | 29 | } |
30 | 30 | |
31 | - if ( $path and ! is_dir( $path ) ) { |
|
32 | - add_settings_error( 'xcloner_error_message', '', __( sprintf( 'Invalid Server Path %s', $option ) ), 'error' ); |
|
31 | + if ($path and !is_dir($path)) { |
|
32 | + add_settings_error('xcloner_error_message', '', __(sprintf('Invalid Server Path %s', $option)), 'error'); |
|
33 | 33 | |
34 | 34 | return false; |
35 | 35 | } |
@@ -37,23 +37,23 @@ discard block |
||
37 | 37 | return $path; |
38 | 38 | } |
39 | 39 | |
40 | - public function sanitize_input_as_path( $option ) { |
|
41 | - return filter_var( $option, FILTER_SANITIZE_URL ); |
|
40 | + public function sanitize_input_as_path($option) { |
|
41 | + return filter_var($option, FILTER_SANITIZE_URL); |
|
42 | 42 | } |
43 | 43 | |
44 | - public function sanitize_input_as_relative_path( $option ) { |
|
45 | - $option = filter_var( $option, FILTER_SANITIZE_URL ); |
|
46 | - $option = str_replace( "..", "", $option ); |
|
44 | + public function sanitize_input_as_relative_path($option) { |
|
45 | + $option = filter_var($option, FILTER_SANITIZE_URL); |
|
46 | + $option = str_replace("..", "", $option); |
|
47 | 47 | |
48 | 48 | return $option; |
49 | 49 | } |
50 | 50 | |
51 | - public function sanitize_input_as_email( $option ) { |
|
52 | - return filter_var( $option, FILTER_SANITIZE_EMAIL ); |
|
51 | + public function sanitize_input_as_email($option) { |
|
52 | + return filter_var($option, FILTER_SANITIZE_EMAIL); |
|
53 | 53 | } |
54 | 54 | |
55 | - public function sanitize_input_as_raw( $option ) { |
|
56 | - return filter_var( $option, FILTER_UNSAFE_RAW ); |
|
55 | + public function sanitize_input_as_raw($option) { |
|
56 | + return filter_var($option, FILTER_UNSAFE_RAW); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | } |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); |
322 | 322 | |
323 | 323 | //wp_localize_script( 'ajax-script', 'my_ajax_object', |
324 | - // array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); |
|
324 | + // array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); |
|
325 | 325 | |
326 | 326 | } |
327 | 327 | |
@@ -357,8 +357,8 @@ discard block |
||
357 | 357 | |
358 | 358 | private function define_plugin_settings(){ |
359 | 359 | /** |
360 | - * register wporg_settings_init to the admin_init action hook |
|
361 | - */ |
|
360 | + * register wporg_settings_init to the admin_init action hook |
|
361 | + */ |
|
362 | 362 | |
363 | 363 | $this->xcloner_settings = new XCloner_Settings($this); |
364 | 364 | |
@@ -513,15 +513,15 @@ discard block |
||
513 | 513 | } |
514 | 514 | |
515 | 515 | function friendly_error_type($type) { |
516 | - static $levels=null; |
|
517 | - if ($levels===null) { |
|
518 | - $levels=[]; |
|
519 | - foreach (get_defined_constants() as $key=>$value) { |
|
520 | - if (strpos($key,'E_')!==0) {continue;} |
|
516 | + static $levels=null; |
|
517 | + if ($levels===null) { |
|
518 | + $levels=[]; |
|
519 | + foreach (get_defined_constants() as $key=>$value) { |
|
520 | + if (strpos($key,'E_')!==0) {continue;} |
|
521 | 521 | $levels[$value]= $key; //substr($key,2); |
522 | - } |
|
523 | - } |
|
524 | - return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
|
522 | + } |
|
523 | + } |
|
524 | + return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
|
525 | 525 | } |
526 | 526 | |
527 | 527 | private function define_ajax_hooks() |
@@ -563,24 +563,24 @@ discard block |
||
563 | 563 | add_action( 'wp_ajax_restore_backup', array($xcloner_api,'restore_backup') ); |
564 | 564 | add_action( 'admin_notices', array($this, 'xcloner_error_admin_notices' )); |
565 | 565 | |
566 | - } |
|
566 | + } |
|
567 | 567 | |
568 | - //Do a pre-update backup of targeted files |
|
569 | - if($this->get_xcloner_settings()->get_xcloner_option('xcloner_enable_pre_update_backup')) |
|
570 | - { |
|
568 | + //Do a pre-update backup of targeted files |
|
569 | + if($this->get_xcloner_settings()->get_xcloner_option('xcloner_enable_pre_update_backup')) |
|
570 | + { |
|
571 | 571 | add_action("pre_auto_update", array($this, "pre_auto_update"), 1, 3); |
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | 575 | function add_plugin_action_links($links, $file) { |
576 | - if ($file == plugin_basename(dirname(dirname(__FILE__)) . '/xcloner.php')) |
|
576 | + if ($file == plugin_basename(dirname(dirname(__FILE__)) . '/xcloner.php')) |
|
577 | 577 | { |
578 | 578 | $links[] = '<a href="admin.php?page=xcloner_settings_page">'.__('Settings', 'xcloner-backup-and-restore').'</a>'; |
579 | 579 | $links[] = '<a href="admin.php?page=xcloner_generate_backups_page">'.__('Generate Backup', 'xcloner-backup-and-restore').'</a>'; |
580 | 580 | } |
581 | 581 | |
582 | - return $links; |
|
583 | - } |
|
582 | + return $links; |
|
583 | + } |
|
584 | 584 | |
585 | 585 | public function xcloner_error_admin_notices() { |
586 | 586 | settings_errors( 'xcloner_error_message' ); |
@@ -664,9 +664,9 @@ discard block |
||
664 | 664 | function xcloner_display() |
665 | 665 | { |
666 | 666 | // check user capabilities |
667 | - if (!current_user_can('manage_options')) { |
|
668 | - return; |
|
669 | - } |
|
667 | + if (!current_user_can('manage_options')) { |
|
668 | + return; |
|
669 | + } |
|
670 | 670 | |
671 | 671 | $page = sanitize_key($_GET['page']); |
672 | 672 |
@@ -162,15 +162,15 @@ discard block |
||
162 | 162 | return $this->xcloner_file_transfer; |
163 | 163 | } |
164 | 164 | |
165 | - public function check_dependencies(){ |
|
165 | + public function check_dependencies() { |
|
166 | 166 | |
167 | 167 | $backup_storage_path = realpath(__DIR__.DS."..".DS."..".DS."..").DS."backups".DS; |
168 | 168 | |
169 | 169 | define("XCLONER_STORAGE_PATH", realpath($backup_storage_path)); |
170 | 170 | |
171 | - if(!is_dir($backup_storage_path)) |
|
171 | + if (!is_dir($backup_storage_path)) |
|
172 | 172 | { |
173 | - if(!@mkdir($backup_storage_path)) |
|
173 | + if (!@mkdir($backup_storage_path)) |
|
174 | 174 | { |
175 | 175 | $status = "error"; |
176 | 176 | $message = sprintf(__("Unable to create the Backup Storage Location Folder %s . Please fix this before starting the backup process."), $backup_storage_path); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return; |
179 | 179 | } |
180 | 180 | } |
181 | - if(!is_writable($backup_storage_path)) |
|
181 | + if (!is_writable($backup_storage_path)) |
|
182 | 182 | { |
183 | 183 | $status = "error"; |
184 | 184 | $message = sprintf(__("Unable to write to the Backup Storage Location Folder %s . Please fix this before starting the backup process."), $backup_storage_path); |
@@ -192,15 +192,15 @@ discard block |
||
192 | 192 | public function trigger_message($message, $status = "error", $message_param1 = "", $message_param2 = "", $message_param3 = "") |
193 | 193 | { |
194 | 194 | $message = sprintf(__($message), $message_param1, $message_param2, $message_param3); |
195 | - add_action( 'xcloner_admin_notices', array($this,"trigger_message_notice"), 10, 2); |
|
196 | - do_action( 'xcloner_admin_notices', $message, $status); |
|
195 | + add_action('xcloner_admin_notices', array($this, "trigger_message_notice"), 10, 2); |
|
196 | + do_action('xcloner_admin_notices', $message, $status); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | public function trigger_message_notice($message, $status = "success") |
200 | 200 | { |
201 | 201 | ?> |
202 | 202 | <div class="notice notice-<?php echo $status?> is-dismissible"> |
203 | - <p><?php _e( $message, 'xcloner-backup-and-restore' ); ?></p> |
|
203 | + <p><?php _e($message, 'xcloner-backup-and-restore'); ?></p> |
|
204 | 204 | </div> |
205 | 205 | <?php |
206 | 206 | } |
@@ -227,79 +227,79 @@ discard block |
||
227 | 227 | * The class responsible for orchestrating the actions and filters of the |
228 | 228 | * core plugin. |
229 | 229 | */ |
230 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-loader.php'; |
|
230 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-loader.php'; |
|
231 | 231 | |
232 | 232 | /** |
233 | 233 | * The class responsible for defining internationalization functionality |
234 | 234 | * of the plugin. |
235 | 235 | */ |
236 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-i18n.php'; |
|
236 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-i18n.php'; |
|
237 | 237 | |
238 | 238 | /** |
239 | 239 | * The class responsible for defining all actions that occur in the admin area. |
240 | 240 | */ |
241 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-xcloner-admin.php'; |
|
241 | + require_once plugin_dir_path(dirname(__FILE__)).'admin/class-xcloner-admin.php'; |
|
242 | 242 | |
243 | 243 | /** |
244 | 244 | * The class responsible for debugging XCloner. |
245 | 245 | */ |
246 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-logger.php'; |
|
246 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-logger.php'; |
|
247 | 247 | |
248 | 248 | /** |
249 | 249 | * The class responsible for defining the admin settings area. |
250 | 250 | */ |
251 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-settings.php'; |
|
251 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-settings.php'; |
|
252 | 252 | |
253 | 253 | /** |
254 | 254 | * The class responsible for defining the Remote Storage settings area. |
255 | 255 | */ |
256 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-remote-storage.php'; |
|
256 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-remote-storage.php'; |
|
257 | 257 | |
258 | 258 | /** |
259 | 259 | * The class responsible for implementing the database backup methods. |
260 | 260 | */ |
261 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-database.php'; |
|
261 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-database.php'; |
|
262 | 262 | |
263 | 263 | /** |
264 | 264 | * The class responsible for sanitization of users input. |
265 | 265 | */ |
266 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-sanitization.php'; |
|
266 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-sanitization.php'; |
|
267 | 267 | |
268 | 268 | /** |
269 | 269 | * The class responsible for XCloner system requirements validation. |
270 | 270 | */ |
271 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-requirements.php'; |
|
271 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-requirements.php'; |
|
272 | 272 | |
273 | 273 | /** |
274 | 274 | * The class responsible for XCloner backup archive creation. |
275 | 275 | */ |
276 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-archive.php'; |
|
276 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-archive.php'; |
|
277 | 277 | |
278 | 278 | /** |
279 | 279 | * The class responsible for XCloner API requests. |
280 | 280 | */ |
281 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-api.php'; |
|
281 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-api.php'; |
|
282 | 282 | |
283 | 283 | /** |
284 | 284 | * The class responsible for the XCloner File System methods. |
285 | 285 | */ |
286 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-file-system.php'; |
|
286 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-file-system.php'; |
|
287 | 287 | |
288 | 288 | /** |
289 | 289 | * The class responsible for the XCloner File Transfer methods. |
290 | 290 | */ |
291 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-file-transfer.php'; |
|
291 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-file-transfer.php'; |
|
292 | 292 | |
293 | 293 | /** |
294 | 294 | * The class responsible for the XCloner Scheduler methods. |
295 | 295 | */ |
296 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-xcloner-scheduler.php'; |
|
296 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-xcloner-scheduler.php'; |
|
297 | 297 | |
298 | 298 | /** |
299 | 299 | * The class responsible for defining all actions that occur in the public-facing |
300 | 300 | * side of the site. |
301 | 301 | */ |
302 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-xcloner-public.php'; |
|
302 | + require_once plugin_dir_path(dirname(__FILE__)).'public/class-xcloner-public.php'; |
|
303 | 303 | |
304 | 304 | $this->loader = new Xcloner_Loader($this); |
305 | 305 | |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | |
319 | 319 | $plugin_i18n = new Xcloner_i18n(); |
320 | 320 | |
321 | - $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); |
|
321 | + $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); |
|
322 | 322 | |
323 | 323 | //wp_localize_script( 'ajax-script', 'my_ajax_object', |
324 | 324 | // array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); |
@@ -334,13 +334,13 @@ discard block |
||
334 | 334 | */ |
335 | 335 | private function define_admin_hooks() { |
336 | 336 | |
337 | - $plugin_admin = new Xcloner_Admin( $this ); |
|
337 | + $plugin_admin = new Xcloner_Admin($this); |
|
338 | 338 | $this->plugin_admin = $plugin_admin; |
339 | 339 | |
340 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
|
341 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); |
|
340 | + $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); |
|
341 | + $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts'); |
|
342 | 342 | |
343 | - add_action( 'backup_archive_finished', array($this, 'do_action_after_backup_finished'), 10, 2); |
|
343 | + add_action('backup_archive_finished', array($this, 'do_action_after_backup_finished'), 10, 2); |
|
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
@@ -349,31 +349,31 @@ discard block |
||
349 | 349 | * @access private |
350 | 350 | * |
351 | 351 | */ |
352 | - private function define_admin_menu(){ |
|
352 | + private function define_admin_menu() { |
|
353 | 353 | |
354 | 354 | add_action('admin_menu', array($this->loader, 'xcloner_backup_add_admin_menu')); |
355 | 355 | |
356 | 356 | } |
357 | 357 | |
358 | - private function define_plugin_settings(){ |
|
358 | + private function define_plugin_settings() { |
|
359 | 359 | /** |
360 | 360 | * register wporg_settings_init to the admin_init action hook |
361 | 361 | */ |
362 | 362 | |
363 | 363 | $this->xcloner_settings = new XCloner_Settings($this); |
364 | 364 | |
365 | - if(defined('DOING_CRON') || isset($_POST['hash'])){ |
|
365 | + if (defined('DOING_CRON') || isset($_POST['hash'])) { |
|
366 | 366 | |
367 | - if(defined('DOING_CRON') || $_POST['hash'] == "generate_hash"){ |
|
367 | + if (defined('DOING_CRON') || $_POST['hash'] == "generate_hash") { |
|
368 | 368 | $this->xcloner_settings->generate_new_hash(); |
369 | - }else{ |
|
369 | + } else { |
|
370 | 370 | $this->xcloner_settings->set_hash($_POST['hash']); |
371 | 371 | } |
372 | 372 | } |
373 | 373 | |
374 | - if(defined('DOING_CRON') || !isset($_POST['hash'])) |
|
374 | + if (defined('DOING_CRON') || !isset($_POST['hash'])) |
|
375 | 375 | { |
376 | - add_action( 'shutdown', function(){ |
|
376 | + add_action('shutdown', function() { |
|
377 | 377 | $this->xcloner_file_system = new Xcloner_File_System($this); |
378 | 378 | $this->xcloner_file_system->remove_tmp_filesystem(); |
379 | 379 | }); |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | */ |
397 | 397 | public function pre_auto_update($type, $item, $context) |
398 | 398 | { |
399 | - if(!$type) |
|
399 | + if (!$type) |
|
400 | 400 | { |
401 | 401 | return false; |
402 | 402 | } |
@@ -405,10 +405,10 @@ discard block |
||
405 | 405 | |
406 | 406 | $content_dir = str_replace(ABSPATH, "", WP_CONTENT_DIR); |
407 | 407 | $plugins_dir = str_replace(ABSPATH, "", WP_PLUGIN_DIR); |
408 | - $langs_dir = $content_dir . DS . "languages"; |
|
409 | - $themes_dir = $content_dir . DS . "themes"; |
|
408 | + $langs_dir = $content_dir.DS."languages"; |
|
409 | + $themes_dir = $content_dir.DS."themes"; |
|
410 | 410 | |
411 | - switch ( $type ) { |
|
411 | + switch ($type) { |
|
412 | 412 | case 'core': |
413 | 413 | $exclude_files = array( |
414 | 414 | "^(?!(wp-admin|wp-includes|(?!.*\/.*.php)))(.*)$", |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | |
419 | 419 | $dir_array = explode(DS, $plugins_dir); |
420 | 420 | |
421 | - foreach($dir_array as $dir) |
|
421 | + foreach ($dir_array as $dir) |
|
422 | 422 | { |
423 | 423 | $data .= "\/".$dir; |
424 | 424 | $regex .= $data."$|"; |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | |
435 | 435 | $dir_array = explode(DS, $themes_dir); |
436 | 436 | |
437 | - foreach($dir_array as $dir) |
|
437 | + foreach ($dir_array as $dir) |
|
438 | 438 | { |
439 | 439 | $data .= "\/".$dir; |
440 | 440 | $regex .= $data."$|"; |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | |
451 | 451 | $dir_array = explode(DS, $langs_dir); |
452 | 452 | |
453 | - foreach($dir_array as $dir) |
|
453 | + foreach ($dir_array as $dir) |
|
454 | 454 | { |
455 | 455 | $data .= "\/".$dir; |
456 | 456 | $regex .= $data."$|"; |
@@ -476,9 +476,9 @@ discard block |
||
476 | 476 | $schedule['backup_params']->email_notification = get_option('admin_email'); |
477 | 477 | $schedule['backup_params']->backup_name = "backup_pre_auto_update_".$type."_[domain]-[time]-sql"; |
478 | 478 | |
479 | - try{ |
|
479 | + try { |
|
480 | 480 | $this->xcloner_scheduler->xcloner_scheduler_callback(0, $schedule); |
481 | - }catch(Exception $e){ |
|
481 | + }catch (Exception $e) { |
|
482 | 482 | $this->get_xcloner_logger()->error($e->getMessage()); |
483 | 483 | } |
484 | 484 | |
@@ -493,10 +493,10 @@ discard block |
||
493 | 493 | */ |
494 | 494 | private function define_public_hooks() { |
495 | 495 | |
496 | - $plugin_public = new Xcloner_Public( $this ); |
|
496 | + $plugin_public = new Xcloner_Public($this); |
|
497 | 497 | |
498 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
499 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
498 | + $this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles'); |
|
499 | + $this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts'); |
|
500 | 500 | |
501 | 501 | } |
502 | 502 | |
@@ -505,20 +505,20 @@ discard block |
||
505 | 505 | $logger = new XCloner_Logger($this, "php_system"); |
506 | 506 | $error = error_get_last(); |
507 | 507 | |
508 | - if($error['type'] and $logger) |
|
508 | + if ($error['type'] and $logger) |
|
509 | 509 | { |
510 | - $logger->info($this->friendly_error_type ($error['type']).": ".var_export($error, true)); |
|
510 | + $logger->info($this->friendly_error_type($error['type']).": ".var_export($error, true)); |
|
511 | 511 | } |
512 | 512 | |
513 | 513 | } |
514 | 514 | |
515 | 515 | function friendly_error_type($type) { |
516 | - static $levels=null; |
|
517 | - if ($levels===null) { |
|
518 | - $levels=[]; |
|
516 | + static $levels = null; |
|
517 | + if ($levels === null) { |
|
518 | + $levels = []; |
|
519 | 519 | foreach (get_defined_constants() as $key=>$value) { |
520 | - if (strpos($key,'E_')!==0) {continue;} |
|
521 | - $levels[$value]= $key; //substr($key,2); |
|
520 | + if (strpos($key, 'E_') !== 0) {continue; } |
|
521 | + $levels[$value] = $key; //substr($key,2); |
|
522 | 522 | } |
523 | 523 | } |
524 | 524 | return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
@@ -528,52 +528,52 @@ discard block |
||
528 | 528 | { |
529 | 529 | //adding the pre-update hook |
530 | 530 | |
531 | - if(is_admin() || defined('DOING_CRON')) |
|
531 | + if (is_admin() || defined('DOING_CRON')) |
|
532 | 532 | { |
533 | - $this->xcloner_logger = new XCloner_Logger($this, "xcloner_api"); |
|
534 | - $this->xcloner_filesystem = new Xcloner_File_System($this); |
|
533 | + $this->xcloner_logger = new XCloner_Logger($this, "xcloner_api"); |
|
534 | + $this->xcloner_filesystem = new Xcloner_File_System($this); |
|
535 | 535 | |
536 | 536 | //$this->xcloner_filesystem->set_diff_timestamp_start (strtotime("-15 days")); |
537 | 537 | |
538 | - $this->archive_system = new Xcloner_Archive($this); |
|
539 | - $this->xcloner_database = new Xcloner_Database($this); |
|
540 | - $this->xcloner_scheduler = new Xcloner_Scheduler($this); |
|
541 | - $this->xcloner_remote_storage = new Xcloner_Remote_Storage($this); |
|
542 | - $this->xcloner_file_transfer = new Xcloner_File_Transfer($this); |
|
543 | - |
|
544 | - $xcloner_api = new Xcloner_Api($this); |
|
545 | - |
|
546 | - add_action( 'wp_ajax_get_database_tables_action', array($xcloner_api,'get_database_tables_action') ); |
|
547 | - add_action( 'wp_ajax_get_file_system_action', array($xcloner_api,'get_file_system_action') ); |
|
548 | - add_action( 'wp_ajax_scan_filesystem', array($xcloner_api,'scan_filesystem') ); |
|
549 | - add_action( 'wp_ajax_backup_database', array($xcloner_api,'backup_database') ); |
|
550 | - add_action( 'wp_ajax_backup_files' , array($xcloner_api,'backup_files') ); |
|
551 | - add_action( 'wp_ajax_save_schedule' , array($xcloner_api,'save_schedule') ); |
|
552 | - add_action( 'wp_ajax_get_schedule_by_id', array($xcloner_api,'get_schedule_by_id') ); |
|
553 | - add_action( 'wp_ajax_get_scheduler_list', array($xcloner_api,'get_scheduler_list') ); |
|
554 | - add_action( 'wp_ajax_delete_schedule_by_id' , array($xcloner_api,'delete_schedule_by_id') ); |
|
555 | - add_action( 'wp_ajax_delete_backup_by_name' , array($xcloner_api,'delete_backup_by_name') ); |
|
556 | - add_action( 'wp_ajax_download_backup_by_name', array($xcloner_api,'download_backup_by_name') ); |
|
557 | - add_action( 'wp_ajax_remote_storage_save_status', array($xcloner_api,'remote_storage_save_status') ); |
|
558 | - add_action( 'wp_ajax_upload_backup_to_remote', array($xcloner_api,'upload_backup_to_remote') ); |
|
559 | - add_action( 'wp_ajax_list_backup_files' , array($xcloner_api,'list_backup_files') ); |
|
560 | - add_action( 'wp_ajax_restore_upload_backup' , array($xcloner_api,'restore_upload_backup') ); |
|
561 | - add_action( 'wp_ajax_download_restore_script', array($xcloner_api,'download_restore_script') ); |
|
562 | - add_action( 'wp_ajax_copy_backup_remote_to_local', array($xcloner_api,'copy_backup_remote_to_local') ); |
|
563 | - add_action( 'wp_ajax_restore_backup', array($xcloner_api,'restore_backup') ); |
|
564 | - add_action( 'admin_notices', array($this, 'xcloner_error_admin_notices' )); |
|
538 | + $this->archive_system = new Xcloner_Archive($this); |
|
539 | + $this->xcloner_database = new Xcloner_Database($this); |
|
540 | + $this->xcloner_scheduler = new Xcloner_Scheduler($this); |
|
541 | + $this->xcloner_remote_storage = new Xcloner_Remote_Storage($this); |
|
542 | + $this->xcloner_file_transfer = new Xcloner_File_Transfer($this); |
|
543 | + |
|
544 | + $xcloner_api = new Xcloner_Api($this); |
|
545 | + |
|
546 | + add_action('wp_ajax_get_database_tables_action', array($xcloner_api, 'get_database_tables_action')); |
|
547 | + add_action('wp_ajax_get_file_system_action', array($xcloner_api, 'get_file_system_action')); |
|
548 | + add_action('wp_ajax_scan_filesystem', array($xcloner_api, 'scan_filesystem')); |
|
549 | + add_action('wp_ajax_backup_database', array($xcloner_api, 'backup_database')); |
|
550 | + add_action('wp_ajax_backup_files', array($xcloner_api, 'backup_files')); |
|
551 | + add_action('wp_ajax_save_schedule', array($xcloner_api, 'save_schedule')); |
|
552 | + add_action('wp_ajax_get_schedule_by_id', array($xcloner_api, 'get_schedule_by_id')); |
|
553 | + add_action('wp_ajax_get_scheduler_list', array($xcloner_api, 'get_scheduler_list')); |
|
554 | + add_action('wp_ajax_delete_schedule_by_id', array($xcloner_api, 'delete_schedule_by_id')); |
|
555 | + add_action('wp_ajax_delete_backup_by_name', array($xcloner_api, 'delete_backup_by_name')); |
|
556 | + add_action('wp_ajax_download_backup_by_name', array($xcloner_api, 'download_backup_by_name')); |
|
557 | + add_action('wp_ajax_remote_storage_save_status', array($xcloner_api, 'remote_storage_save_status')); |
|
558 | + add_action('wp_ajax_upload_backup_to_remote', array($xcloner_api, 'upload_backup_to_remote')); |
|
559 | + add_action('wp_ajax_list_backup_files', array($xcloner_api, 'list_backup_files')); |
|
560 | + add_action('wp_ajax_restore_upload_backup', array($xcloner_api, 'restore_upload_backup')); |
|
561 | + add_action('wp_ajax_download_restore_script', array($xcloner_api, 'download_restore_script')); |
|
562 | + add_action('wp_ajax_copy_backup_remote_to_local', array($xcloner_api, 'copy_backup_remote_to_local')); |
|
563 | + add_action('wp_ajax_restore_backup', array($xcloner_api, 'restore_backup')); |
|
564 | + add_action('admin_notices', array($this, 'xcloner_error_admin_notices')); |
|
565 | 565 | |
566 | 566 | } |
567 | 567 | |
568 | 568 | //Do a pre-update backup of targeted files |
569 | - if($this->get_xcloner_settings()->get_xcloner_option('xcloner_enable_pre_update_backup')) |
|
569 | + if ($this->get_xcloner_settings()->get_xcloner_option('xcloner_enable_pre_update_backup')) |
|
570 | 570 | { |
571 | 571 | add_action("pre_auto_update", array($this, "pre_auto_update"), 1, 3); |
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | 575 | function add_plugin_action_links($links, $file) { |
576 | - if ($file == plugin_basename(dirname(dirname(__FILE__)) . '/xcloner.php')) |
|
576 | + if ($file == plugin_basename(dirname(dirname(__FILE__)).'/xcloner.php')) |
|
577 | 577 | { |
578 | 578 | $links[] = '<a href="admin.php?page=xcloner_settings_page">'.__('Settings', 'xcloner-backup-and-restore').'</a>'; |
579 | 579 | $links[] = '<a href="admin.php?page=xcloner_generate_backups_page">'.__('Generate Backup', 'xcloner-backup-and-restore').'</a>'; |
@@ -583,13 +583,13 @@ discard block |
||
583 | 583 | } |
584 | 584 | |
585 | 585 | public function xcloner_error_admin_notices() { |
586 | - settings_errors( 'xcloner_error_message' ); |
|
586 | + settings_errors('xcloner_error_message'); |
|
587 | 587 | } |
588 | 588 | |
589 | 589 | public function define_cron_hooks() |
590 | 590 | { |
591 | 591 | //registering new schedule intervals |
592 | - add_filter( 'cron_schedules', array($this, 'add_new_intervals')); |
|
592 | + add_filter('cron_schedules', array($this, 'add_new_intervals')); |
|
593 | 593 | |
594 | 594 | |
595 | 595 | $xcloner_scheduler = $this->get_xcloner_scheduler(); |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | |
671 | 671 | $page = sanitize_key($_GET['page']); |
672 | 672 | |
673 | - if($page) |
|
673 | + if ($page) |
|
674 | 674 | { |
675 | 675 | $this->display($page); |
676 | 676 | } |