GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 32d40a...da35b6 )
by Liuta
06:41
created
includes/class-xcloner-scheduler.php 1 patch
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Xcloner_Scheduler{
3
+class Xcloner_Scheduler {
4 4
 	
5 5
 	private $db;
6 6
 	private $scheduler_table = "xcloner_scheduler";
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 	{
22 22
 		global $wpdb;
23 23
 		
24
-		$this->db 					= $wpdb;
25
-		$wpdb->show_errors			= false;
24
+		$this->db = $wpdb;
25
+		$wpdb->show_errors = false;
26 26
 		
27 27
 		$this->xcloner_container	= $xcloner_container;
28 28
 		$this->xcloner_settings 	= $xcloner_container->get_xcloner_settings();
@@ -40,18 +40,18 @@  discard block
 block discarded – undo
40 40
 		$this->xcloner_container = $container;
41 41
 	}
42 42
 	
43
-	public function get_scheduler_list($return_only_enabled = 0 )
43
+	public function get_scheduler_list($return_only_enabled = 0)
44 44
 	{
45 45
 		$list = $this->db->get_results("SELECT * FROM ".$this->scheduler_table);
46 46
 		
47
-		if($return_only_enabled)
47
+		if ($return_only_enabled)
48 48
 		{
49
-			$new_list= array();
49
+			$new_list = array();
50 50
 			
51
-			foreach($list as $res)
52
-				if($res->status)
51
+			foreach ($list as $res)
52
+				if ($res->status)
53 53
 				{
54
-					$res->next_run_time = wp_next_scheduled('xcloner_scheduler_'.$res->id, array($res->id))+(get_option( 'gmt_offset' ) * HOUR_IN_SECONDS);
54
+					$res->next_run_time = wp_next_scheduled('xcloner_scheduler_'.$res->id, array($res->id)) + (get_option('gmt_offset') * HOUR_IN_SECONDS);
55 55
 					$new_list[] = $res;
56 56
 				}
57 57
 			$list = $new_list;	
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	{
78 78
 		$data = $this->db->get_row("SELECT * FROM ".$this->scheduler_table." WHERE id=".$id, ARRAY_A);
79 79
 		
80
-		if(!$data)
80
+		if (!$data)
81 81
 			return false;
82 82
 		
83 83
 		$params = json_decode($data['params']);
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
 	
95 95
 	public function delete_schedule_by_id($id)
96 96
 	{
97
-		$hook =  'xcloner_scheduler_'.$id;
98
-		wp_clear_scheduled_hook( $hook, array($id) );
97
+		$hook = 'xcloner_scheduler_'.$id;
98
+		wp_clear_scheduled_hook($hook, array($id));
99 99
 		
100
-		$data = $this->db->delete( $this->scheduler_table , array( 'id' => $id ) );
100
+		$data = $this->db->delete($this->scheduler_table, array('id' => $id));
101 101
 		
102 102
 		return $data;
103 103
 	}
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
 	{
107 107
 		$list = $this->get_scheduler_list();
108 108
 		
109
-		foreach($list as $schedule)
109
+		foreach ($list as $schedule)
110 110
 		{
111
-			$hook =  'xcloner_scheduler_'.$schedule->id;
111
+			$hook = 'xcloner_scheduler_'.$schedule->id;
112 112
 			
113
-			$timestamp = wp_next_scheduled( $hook , array($schedule->id) );
114
-			wp_unschedule_event( $timestamp, $hook, array($schedule->id) );
113
+			$timestamp = wp_next_scheduled($hook, array($schedule->id));
114
+			wp_unschedule_event($timestamp, $hook, array($schedule->id));
115 115
 		}
116 116
 	}
117 117
 	
@@ -119,26 +119,26 @@  discard block
 block discarded – undo
119 119
 	{
120 120
 		$list = $this->get_scheduler_list();
121 121
 		
122
-		foreach($list as $schedule)
122
+		foreach ($list as $schedule)
123 123
 		{
124
-			$hook =  'xcloner_scheduler_'.$schedule->id;
124
+			$hook = 'xcloner_scheduler_'.$schedule->id;
125 125
 			
126 126
 			//adding the xcloner_scheduler hook with xcloner_scheduler_callback callback
127
-			add_action( $hook, array($this, 'xcloner_scheduler_callback'), 10,  1 );
127
+			add_action($hook, array($this, 'xcloner_scheduler_callback'), 10, 1);
128 128
 			
129
-			if ( ! wp_next_scheduled( $hook, array($schedule->id) ) and $schedule->status) {
129
+			if (!wp_next_scheduled($hook, array($schedule->id)) and $schedule->status) {
130 130
 				
131
-				if($schedule->recurrence == "single")
131
+				if ($schedule->recurrence == "single")
132 132
 				{
133
-					wp_schedule_single_event( strtotime($schedule->start_at), $hook, array($schedule->id));
134
-				}else{	
135
-					wp_schedule_event( strtotime($schedule->start_at), $schedule->recurrence, $hook, array($schedule->id) );
133
+					wp_schedule_single_event(strtotime($schedule->start_at), $hook, array($schedule->id));
134
+				} else {	
135
+					wp_schedule_event(strtotime($schedule->start_at), $schedule->recurrence, $hook, array($schedule->id));
136 136
 				}
137 137
 					
138
-			}elseif(!$schedule->status)
138
+			}elseif (!$schedule->status)
139 139
 			{
140
-				$timestamp = wp_next_scheduled( $hook , array($schedule->id) );
141
-				wp_unschedule_event( $timestamp, $hook, array($schedule->id) );
140
+				$timestamp = wp_next_scheduled($hook, array($schedule->id));
141
+				wp_unschedule_event($timestamp, $hook, array($schedule->id));
142 142
 			}
143 143
 		}
144 144
 	
@@ -147,18 +147,18 @@  discard block
 block discarded – undo
147 147
 	public function update_cron_hook($id)
148 148
 	{
149 149
 		$schedule = $this->get_schedule_by_id_object($id);
150
-		$hook =  'xcloner_scheduler_'.$schedule->id;
150
+		$hook = 'xcloner_scheduler_'.$schedule->id;
151 151
 		
152
-		$timestamp = wp_next_scheduled( $hook , array($schedule->id) );
153
-		wp_unschedule_event( $timestamp, $hook, array($schedule->id) );
152
+		$timestamp = wp_next_scheduled($hook, array($schedule->id));
153
+		wp_unschedule_event($timestamp, $hook, array($schedule->id));
154 154
 		
155 155
 		if ($schedule->status) {
156 156
 			
157
-			if($schedule->recurrence == "single")
157
+			if ($schedule->recurrence == "single")
158 158
 			{
159
-				wp_schedule_single_event( strtotime($schedule->start_at), $hook, array($schedule->id));
160
-			}else{	
161
-				wp_schedule_event( strtotime($schedule->start_at), $schedule->recurrence, $hook, array($schedule->id) );
159
+				wp_schedule_single_event(strtotime($schedule->start_at), $hook, array($schedule->id));
160
+			} else {	
161
+				wp_schedule_event(strtotime($schedule->start_at), $schedule->recurrence, $hook, array($schedule->id));
162 162
 			}
163 163
 				
164 164
 		}
@@ -166,16 +166,16 @@  discard block
 block discarded – undo
166 166
 	
167 167
 	public function disable_single_cron($schedule_id)
168 168
 	{
169
-		$hook =  'xcloner_scheduler_'.$schedule_id;
170
-		$timestamp = wp_next_scheduled( $hook , array($schedule_id) );
171
-		wp_unschedule_event( $timestamp, $hook, array($schedule_id) );
169
+		$hook = 'xcloner_scheduler_'.$schedule_id;
170
+		$timestamp = wp_next_scheduled($hook, array($schedule_id));
171
+		wp_unschedule_event($timestamp, $hook, array($schedule_id));
172 172
 		
173 173
 		$schedule['status'] = 0;
174 174
 		
175 175
 		$update = $this->db->update( 
176 176
 				$this->scheduler_table, 
177 177
 				$schedule, 
178
-				array( 'id' => $schedule_id ), 
178
+				array('id' => $schedule_id), 
179 179
 				array( 
180 180
 					'%s', 
181 181
 					'%s' 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 		$update = $this->db->update( 
192 192
 				$this->scheduler_table, 
193 193
 				$schedule, 
194
-				array( 'id' => $schedule_id ), 
194
+				array('id' => $schedule_id), 
195 195
 				array( 
196 196
 					'%s', 
197 197
 					'%s' 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 		$update = $this->db->update( 
208 208
 				$this->scheduler_table, 
209 209
 				$schedule, 
210
-				array( 'id' => $schedule_id ), 
210
+				array('id' => $schedule_id), 
211 211
 				array( 
212 212
 					'%s', 
213 213
 					'%s' 
@@ -228,25 +228,25 @@  discard block
 block discarded – undo
228 228
 		#$this->get_xcloner_container()->get_xcloner_settings()->set_hash($hash);
229 229
 		
230 230
 		//$this->xcloner_settings 		= $this->get_xcloner_container()->get_xcloner_settings();		
231
-		$this->xcloner_file_system 		= $this->get_xcloner_container()->get_xcloner_filesystem();
232
-		$this->xcloner_database 		= $this->get_xcloner_container()->get_xcloner_database();
233
-		$this->archive_system 			= $this->get_xcloner_container()->get_archive_system();
234
-		$this->logger 					= $this->get_xcloner_container()->get_xcloner_logger()->withName("xcloner_scheduler");
235
-		$this->xcloner_remote_storage 	= $this->get_xcloner_container()->get_xcloner_remote_storage();
231
+		$this->xcloner_file_system = $this->get_xcloner_container()->get_xcloner_filesystem();
232
+		$this->xcloner_database = $this->get_xcloner_container()->get_xcloner_database();
233
+		$this->archive_system = $this->get_xcloner_container()->get_archive_system();
234
+		$this->logger = $this->get_xcloner_container()->get_xcloner_logger()->withName("xcloner_scheduler");
235
+		$this->xcloner_remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage();
236 236
 		
237 237
 		$this->logger->info(sprintf("New schedule hash is %s", $this->xcloner_settings->get_hash()));
238 238
 		
239
-		if(isset($schedule['backup_params']->diff_start_date) && $schedule['backup_params']->diff_start_date)
239
+		if (isset($schedule['backup_params']->diff_start_date) && $schedule['backup_params']->diff_start_date)
240 240
 		{
241 241
 			$this->xcloner_file_system->set_diff_timestamp_start($schedule['backup_params']->diff_start_date);
242 242
 		}
243 243
 				
244
-		if($schedule['recurrence'] == "single")
244
+		if ($schedule['recurrence'] == "single")
245 245
 		{
246 246
 			$this->disable_single_cron($schedule['id']);
247 247
 		}
248 248
 		
249
-		if(!$schedule)
249
+		if (!$schedule)
250 250
 		{
251 251
 			$this->logger->info(sprintf("Could not load schedule with id'%s'", $id), array("CRON"));
252 252
 			return;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		$init = 1;
264 264
 		$continue = 1;
265 265
 
266
-		while($continue)
266
+		while ($continue)
267 267
 		{
268 268
 			$continue = $this->xcloner_file_system->start_file_recursion($init);
269 269
 			
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
 		$init = 1;
278 278
 		$return['finished'] = 0;
279 279
 		
280
-		while(!$return['finished'])
280
+		while (!$return['finished'])
281 281
 		{
282
-			$return  = $this->xcloner_database->start_database_recursion((array)json_decode($schedule['table_params']), $return, $init);
282
+			$return = $this->xcloner_database->start_database_recursion((array)json_decode($schedule['table_params']), $return, $init);
283 283
 			$init = 0;
284 284
 		}
285 285
 		
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$return['finished'] = 0;
292 292
 		$return['extra'] = array();
293 293
 		
294
-		while(!$return['finished'])
294
+		while (!$return['finished'])
295 295
 		{
296 296
 			$return = $this->archive_system->start_incremental_backup((array)$schedule['backup_params'], $return['extra'], $init);
297 297
 			$init = 0;
@@ -300,30 +300,30 @@  discard block
 block discarded – undo
300 300
 		
301 301
 		//getting the last backup archive file
302 302
 		$return['extra']['backup_parent'] = $this->archive_system->get_archive_name_with_extension();
303
-		if($this->xcloner_file_system->is_part($this->archive_system->get_archive_name_with_extension()))
303
+		if ($this->xcloner_file_system->is_part($this->archive_system->get_archive_name_with_extension()))
304 304
 				$return['extra']['backup_parent'] = $this->archive_system->get_archive_name_multipart();
305 305
 				
306 306
 		$this->update_last_backup($schedule['id'], $return['extra']['backup_parent']);
307 307
 		
308
-		if(isset($schedule['remote_storage']) && $schedule['remote_storage'] && array_key_exists($schedule['remote_storage'], $this->xcloner_remote_storage->get_available_storages()))
308
+		if (isset($schedule['remote_storage']) && $schedule['remote_storage'] && array_key_exists($schedule['remote_storage'], $this->xcloner_remote_storage->get_available_storages()))
309 309
 		{
310 310
 			$backup_file = $return['extra']['backup_parent'];
311 311
 			
312 312
 			$this->logger->info(sprintf("Transferring backup to remote storage %s", strtoupper($schedule['remote_storage'])), array("CRON"));
313 313
 			
314
-			if(method_exists($this->xcloner_remote_storage, "upload_backup_to_storage"))
314
+			if (method_exists($this->xcloner_remote_storage, "upload_backup_to_storage"))
315 315
 				call_user_func_array(array($this->xcloner_remote_storage, "upload_backup_to_storage"), array($backup_file, $schedule['remote_storage']));
316 316
 		}
317 317
 		
318
-		if(isset($schedule['backup_params']->email_notification) and $to=$schedule['backup_params']->email_notification)
318
+		if (isset($schedule['backup_params']->email_notification) and $to = $schedule['backup_params']->email_notification)
319 319
 		{	
320
-			try{
320
+			try {
321 321
 				$from = "";
322 322
 				$additional['lines_total'] = $return['extra']['lines_total'];
323
-				$subject = sprintf(__("%s - new backup generated %s") , $schedule['name'], $return['extra']['backup_parent']);
323
+				$subject = sprintf(__("%s - new backup generated %s"), $schedule['name'], $return['extra']['backup_parent']);
324 324
 				
325 325
 				$this->archive_system->send_notification($to, $from, $subject, $return['extra']['backup_parent'], $schedule, "", $additional);
326
-			}catch(Exception $e)
326
+			}catch (Exception $e)
327 327
 			{
328 328
 				$this->logger->error($e->getMessage());
329 329
 			}
@@ -336,27 +336,27 @@  discard block
 block discarded – undo
336 336
 	
337 337
 	public function xcloner_scheduler_callback($id, $schedule = "")
338 338
 	{
339
-		if($id)
339
+		if ($id)
340 340
 		{
341 341
 			$schedule = $this->get_schedule_by_id($id);
342 342
 		}
343 343
 		
344
-		try{
344
+		try {
345 345
 
346 346
 			$this->__xcloner_scheduler_callback($id, $schedule);
347 347
 			
348
-		}catch(Exception $e){
348
+		}catch (Exception $e) {
349 349
 			
350 350
 			//send email to site admin if email notification is not set in the scheduler
351
-			if(!isset($schedule['backup_params']->email_notification) || !$schedule['backup_params']->email_notification)
351
+			if (!isset($schedule['backup_params']->email_notification) || !$schedule['backup_params']->email_notification)
352 352
 			{
353 353
 				$schedule['backup_params']->email_notification = get_option('admin_email');
354 354
 			}
355 355
 				
356
-			if(isset($schedule['backup_params']->email_notification) && $to=$schedule['backup_params']->email_notification)
356
+			if (isset($schedule['backup_params']->email_notification) && $to = $schedule['backup_params']->email_notification)
357 357
 			{
358 358
 				$from = "";
359
-				$this->archive_system->send_notification($to, $from, $schedule['name']." - backup error","", "", $e->getMessage());
359
+				$this->archive_system->send_notification($to, $from, $schedule['name']." - backup error", "", "", $e->getMessage());
360 360
 			}
361 361
 			
362 362
 		}
@@ -369,10 +369,10 @@  discard block
 block discarded – undo
369 369
 		$new_schedules = array();
370 370
 		
371 371
 		foreach ($schedules as $key => $row) {
372
-			if(in_array($key, $this->allowed_schedules))
372
+			if (in_array($key, $this->allowed_schedules))
373 373
 			{
374 374
 				$new_schedules[$key] = $row;
375
-				$intervals[$key]  = $row['interval'];
375
+				$intervals[$key] = $row['interval'];
376 376
 			}
377 377
 		}
378 378
 		
Please login to merge, or discard this patch.
includes/class-xcloner-archive.php 1 patch
Spacing   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 	/*
9 9
 	 * bytes
10 10
 	 */ 
11
-	private $file_size_per_request_limit	= 52428800 ; //50MB = 52428800; 1MB = 1048576
12
-	private $files_to_process_per_request 	= 250; //block of 512 bytes
13
-	private $compression_level 				= 0; //0-9 , 0 uncompressed
11
+	private $file_size_per_request_limit	= 52428800; //50MB = 52428800; 1MB = 1048576
12
+	private $files_to_process_per_request = 250; //block of 512 bytes
13
+	private $compression_level = 0; //0-9 , 0 uncompressed
14 14
 	private $xcloner_split_backup_limit		= 2048; //2048MB
15
-	private $processed_size_bytes			= 0 ;
15
+	private $processed_size_bytes = 0;
16 16
 	
17 17
 	private $archive_name;
18 18
 	private $backup_archive;
@@ -22,25 +22,25 @@  discard block
 block discarded – undo
22 22
 	
23 23
 	public function __construct(Xcloner $xcloner_container, $archive_name = "")
24 24
 	{
25
-		$this->filesystem 		= $xcloner_container->get_xcloner_filesystem();
26
-		$this->logger 			= $xcloner_container->get_xcloner_logger()->withName("xcloner_archive");
25
+		$this->filesystem = $xcloner_container->get_xcloner_filesystem();
26
+		$this->logger = $xcloner_container->get_xcloner_logger()->withName("xcloner_archive");
27 27
 		$this->xcloner_settings = $xcloner_container->get_xcloner_settings();
28 28
 		
29
-		if($value = $this->xcloner_settings->get_xcloner_option('xcloner_size_limit_per_request'))
30
-			$this->file_size_per_request_limit = $value*1024*1024; //MB
29
+		if ($value = $this->xcloner_settings->get_xcloner_option('xcloner_size_limit_per_request'))
30
+			$this->file_size_per_request_limit = $value * 1024 * 1024; //MB
31 31
 			
32
-		if($value = $this->xcloner_settings->get_xcloner_option('xcloner_files_to_process_per_request'))
32
+		if ($value = $this->xcloner_settings->get_xcloner_option('xcloner_files_to_process_per_request'))
33 33
 			$this->files_to_process_per_request = $value;
34 34
 		
35
-		if($value = get_option('xcloner_backup_compression_level'))
35
+		if ($value = get_option('xcloner_backup_compression_level'))
36 36
 			$this->compression_level = $value;
37 37
 		
38
-		if($value = get_option('xcloner_split_backup_limit'))
38
+		if ($value = get_option('xcloner_split_backup_limit'))
39 39
 			$this->xcloner_split_backup_limit = $value;
40 40
 		
41
-		$this->xcloner_split_backup_limit = $this->xcloner_split_backup_limit * 1024*1024; //transform to bytes
41
+		$this->xcloner_split_backup_limit = $this->xcloner_split_backup_limit * 1024 * 1024; //transform to bytes
42 42
 			
43
-		if(isset($archive_name) && $archive_name)
43
+		if (isset($archive_name) && $archive_name)
44 44
 		{
45 45
 			$this->set_archive_name($archive_name);
46 46
 		}
@@ -68,23 +68,23 @@  discard block
 block discarded – undo
68 68
 		
69 69
 		$this->archive_name = $this->filesystem->process_backup_name($name);
70 70
 		
71
-		if($diff_timestamp_start = $this->filesystem->get_diff_timestamp_start())
71
+		if ($diff_timestamp_start = $this->filesystem->get_diff_timestamp_start())
72 72
 		{
73 73
 			//$this->archive_name = $this->archive_name."-diff-".date("Y-m-d_H-i",$diff_timestamp_start);
74 74
 			$new_name = $this->archive_name;
75 75
 			
76
-			if(!stristr($new_name, "-diff"))
77
-				$new_name = $this->archive_name . "-diff".date("Y-m-d_H-i",$diff_timestamp_start);
76
+			if (!stristr($new_name, "-diff"))
77
+				$new_name = $this->archive_name."-diff".date("Y-m-d_H-i", $diff_timestamp_start);
78 78
 			
79 79
 			$this->archive_name = $new_name;
80 80
 			
81 81
 		}
82 82
 		
83
-		if(isset($part) and $part)
83
+		if (isset($part) and $part)
84 84
 		{
85
-			$new_name =  preg_replace('/-part(\d*)/', "-part".$part, $this->archive_name);
86
-			if(!stristr($new_name, "-part"))
87
-				$new_name = $this->archive_name . "-part".$part;
85
+			$new_name = preg_replace('/-part(\d*)/', "-part".$part, $this->archive_name);
86
+			if (!stristr($new_name, "-part"))
87
+				$new_name = $this->archive_name."-part".$part;
88 88
 			
89 89
 			$this->archive_name = $new_name;	
90 90
 		}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */ 
110 110
 	public function get_archive_name_multipart()
111 111
 	{
112
-		$new_name =  preg_replace('/-part(\d*)/', "", $this->archive_name);
112
+		$new_name = preg_replace('/-part(\d*)/', "", $this->archive_name);
113 113
 		return $new_name."-multipart".$this->xcloner_settings->get_backup_extension_name(".csv");
114 114
 	}
115 115
 	
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 		$body .= sprintf(__("Backup Site Url: %s"), get_site_url());
136 136
 		$body .= "<br /><>";
137 137
 		
138
-		$body  .= sprintf(__("Error Message: %s"), $error_message); 
138
+		$body .= sprintf(__("Error Message: %s"), $error_message); 
139 139
 		
140 140
 		$this->logger->info(sprintf("Sending backup error notification to %s", $to));
141 141
 		
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
 		
144 144
 		$headers = array('Content-Type: text/html; charset=UTF-8');
145 145
 		
146
-		if($admin_email and $from )
146
+		if ($admin_email and $from)
147 147
 			$headers[] = 'From: '.$from.' <'.$admin_email.'>';
148 148
 
149
-		$return = wp_mail( $to, $subject, $body, $headers );
149
+		$return = wp_mail($to, $subject, $body, $headers);
150 150
 		
151 151
 		return $return;
152 152
 	}
@@ -156,29 +156,29 @@  discard block
 block discarded – undo
156 156
 	 * Send backup archive notfication by E-Mail
157 157
 	 * 
158 158
 	 */ 
159
-	public function send_notification($to, $from, $subject, $backup_name, $params, $error_message="", $additional = array())
159
+	public function send_notification($to, $from, $subject, $backup_name, $params, $error_message = "", $additional = array())
160 160
 	{
161
-		if(!$from)
161
+		if (!$from)
162 162
 		{
163 163
 			$from = "XCloner Backup";
164 164
 		}
165 165
 			
166
-		if(($error_message))
166
+		if (($error_message))
167 167
 		{
168 168
 			return $this->send_notification_error($to, $from, $subject, $backup_name, $params, $error_message);
169 169
 		}
170 170
 		
171 171
 		$params = (array)$params;
172 172
 		
173
-		if(!$subject)
173
+		if (!$subject)
174 174
 		{
175
-			$subject = sprintf(__("New backup generated %s") ,$backup_name);
175
+			$subject = sprintf(__("New backup generated %s"), $backup_name);
176 176
 		}
177 177
 			
178 178
 		$body = sprintf(__("Generated Backup Size: %s"), size_format($this->filesystem->get_backup_size($backup_name)));
179 179
 		$body .= "<br /><br />";
180 180
 		
181
-		if(isset($additional['lines_total']))
181
+		if (isset($additional['lines_total']))
182 182
 		{
183 183
 			$body .= sprintf(__("Total files added: %s"), $additional['lines_total']);
184 184
 			$body .= "<br /><br />";
@@ -186,30 +186,30 @@  discard block
 block discarded – undo
186 186
 		
187 187
 		$backup_parts = $this->filesystem->get_multipart_files($backup_name);
188 188
 		
189
-		if(!$backups_counter = sizeof($backup_parts))
189
+		if (!$backups_counter = sizeof($backup_parts))
190 190
 			$backups_counter = 1;
191 191
 		
192 192
 		$body .= sprintf(__("Backup Parts: %s"), $backups_counter);
193 193
 		$body .= "<br />";
194 194
 		
195
-		if(sizeof($backup_parts))
195
+		if (sizeof($backup_parts))
196 196
 		{
197
-			$body .= implode("<br />",$backup_parts);
197
+			$body .= implode("<br />", $backup_parts);
198 198
 			$body .= "<br />";
199 199
 		}
200 200
 		
201
-		$body.= "<br />";
201
+		$body .= "<br />";
202 202
 		
203 203
 		$body .= sprintf(__("Backup Site Url: %s"), get_site_url());
204 204
 		$body .= "<br />";
205 205
 		
206
-		if(isset($params['backup_params']->backup_comments))
206
+		if (isset($params['backup_params']->backup_comments))
207 207
 		{
208 208
 			$body .= __("Backup Comments: ").$params['backup_params']->backup_comments;
209 209
 			$body .= "<br /><br />";
210 210
 		}
211 211
 		
212
-		if($this->xcloner_settings->get_xcloner_option('xcloner_enable_log'))
212
+		if ($this->xcloner_settings->get_xcloner_option('xcloner_enable_log'))
213 213
 			$body .= __("Latest 50 Log Lines: ")."<br />".implode("<br />\n", $this->logger->getLastDebugLines(50));
214 214
 		
215 215
 		$attachments = $this->filesystem->get_backup_attachments();
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 		$tar = new Tar();
220 220
 		$tar->create($attachments_archive);
221 221
 			
222
-		foreach($attachments as $key => $file)
222
+		foreach ($attachments as $key => $file)
223 223
 		{
224 224
 			$tar->addFile($file, basename($file));
225 225
 		}
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		
232 232
 		$headers = array('Content-Type: text/html; charset=UTF-8', 'From: '.$from.' <'.$admin_email.'>');
233 233
 		
234
-		$return = wp_mail( $to, $subject, $body, $headers, array($attachments_archive) );
234
+		$return = wp_mail($to, $subject, $body, $headers, array($attachments_archive));
235 235
 	
236 236
 		return $return;
237 237
 	}
@@ -245,17 +245,17 @@  discard block
 block discarded – undo
245 245
 	{
246 246
 		$return = array();
247 247
 		
248
-		if(!isset($extra_params['backup_part']))
248
+		if (!isset($extra_params['backup_part']))
249 249
 			$extra_params['backup_part'] = 0;
250 250
 		
251 251
 		$return['extra']['backup_part'] = $extra_params['backup_part'];
252 252
 					
253
-		if(isset( $extra_params['backup_archive_name']))
253
+		if (isset($extra_params['backup_archive_name']))
254 254
 			$this->set_archive_name($extra_params['backup_archive_name'], $return['extra']['backup_part']);
255 255
 		else
256 256
 			$this->set_archive_name($backup_params['backup_name']);
257 257
 			
258
-		if(!$this->get_archive_name())
258
+		if (!$this->get_archive_name())
259 259
 			$this->set_archive_name();
260 260
 		
261 261
 		$this->backup_archive = new Tar();
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		
264 264
 		$archive_info = $this->filesystem->get_storage_path_file_info($this->get_archive_name_with_extension());
265 265
 		
266
-		if($init)
266
+		if ($init)
267 267
 		{
268 268
 			$this->logger->info(sprintf(__("Initializing the backup archive %s"), $this->get_archive_name()));
269 269
 		
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 			
272 272
 			$return['extra']['backup_init'] = 1;
273 273
 			
274
-		}else{
274
+		} else {
275 275
 			$this->logger->info(sprintf(__("Opening for append the backup archive %s"), $this->get_archive_name()));
276 276
 			
277 277
 			$this->backup_archive->openForAppend($archive_info->getPath().DS.$archive_info->getFilename());
@@ -283,13 +283,13 @@  discard block
 block discarded – undo
283 283
 		$return['extra']['backup_archive_name'] = $this->get_archive_name();
284 284
 		$return['extra']['backup_archive_name_full'] = $this->get_archive_name_with_extension();
285 285
 		
286
-		if(!isset($extra_params['start_at_line']))
286
+		if (!isset($extra_params['start_at_line']))
287 287
 			$extra_params['start_at_line'] = 0;
288 288
 		
289
-		if(!isset($extra_params['start_at_byte']))
289
+		if (!isset($extra_params['start_at_byte']))
290 290
 			$extra_params['start_at_byte'] = 0;
291 291
 		
292
-		if(!$this->filesystem->get_tmp_filesystem()->has($this->filesystem->get_included_files_handler()))
292
+		if (!$this->filesystem->get_tmp_filesystem()->has($this->filesystem->get_included_files_handler()))
293 293
 		{
294 294
 			$this->logger->error(sprintf("Missing the includes file handler %s, aborting...", $this->filesystem->get_included_files_handler()));
295 295
 			
@@ -303,14 +303,14 @@  discard block
 block discarded – undo
303 303
 		
304 304
 		$file->seek(PHP_INT_MAX);
305 305
 
306
-		$return['extra']['lines_total'] = ($file->key()-1);
306
+		$return['extra']['lines_total'] = ($file->key() - 1);
307 307
 		
308 308
 		//we skip the first CSV line with headers 
309
-		if(!$extra_params['start_at_line'])
309
+		if (!$extra_params['start_at_line'])
310 310
 		{
311 311
 			$file->seek(1);
312
-		}else{
313
-			$file->seek($extra_params['start_at_line']+1);
312
+		} else {
313
+			$file->seek($extra_params['start_at_line'] + 1);
314 314
 		}
315 315
 		
316 316
 		$this->processed_size_bytes = 0;
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 		
322 322
 		$byte_limit = 0;
323 323
 		
324
-		while(!$file->eof() and $counter<=$this->files_to_process_per_request)
324
+		while (!$file->eof() and $counter <= $this->files_to_process_per_request)
325 325
 		{
326 326
 			$current_line_str = $file->current();
327 327
 			
@@ -331,15 +331,15 @@  discard block
 block discarded – undo
331 331
 			
332 332
 			$start_filesystem = "start_filesystem";
333 333
 			
334
-			if(isset($line[4])){
334
+			if (isset($line[4])) {
335 335
 				$start_filesystem = $line[4];
336 336
 			}
337 337
 			
338 338
 			//$adapter = $this->filesystem->get_adapter($start_filesystem);
339 339
 			
340
-			if(!$relative_path || !$this->filesystem->get_filesystem($start_filesystem)->has($relative_path))
340
+			if (!$relative_path || !$this->filesystem->get_filesystem($start_filesystem)->has($relative_path))
341 341
 			{
342
-				if($relative_path != "")
342
+				if ($relative_path != "")
343 343
 				{
344 344
 					$this->logger->error(sprintf("Could not add file %b to backup archive, file not found", $relative_path));
345 345
 				}
@@ -351,37 +351,37 @@  discard block
 block discarded – undo
351 351
 			
352 352
 			$file_info = $this->filesystem->get_filesystem($start_filesystem)->getMetadata($relative_path);
353 353
 			
354
-			if(!isset($file_info['size']))
354
+			if (!isset($file_info['size']))
355 355
 				$file_info['size'] = 0;
356 356
 			
357
-			if($start_filesystem == "tmp_filesystem")
357
+			if ($start_filesystem == "tmp_filesystem")
358 358
 			{	
359 359
 				$file_info['archive_prefix_path'] = $this->xcloner_settings->get_xcloner_tmp_path_suffix();
360 360
 			}
361 361
 			
362
-			$byte_limit = (int)$this->file_size_per_request_limit/512;
362
+			$byte_limit = (int)$this->file_size_per_request_limit / 512;
363 363
 			
364 364
 			$append = 0;
365 365
 			
366
-			if($file_info['size'] > $byte_limit*512 or $start_byte)
366
+			if ($file_info['size'] > $byte_limit * 512 or $start_byte)
367 367
 				$append = 1;
368 368
 						
369
-			if(!isset($return['extra']['backup_size']))
370
-				$return['extra']['backup_size'] =0;
369
+			if (!isset($return['extra']['backup_size']))
370
+				$return['extra']['backup_size'] = 0;
371 371
 			
372 372
 			$return['extra']['backup_size'] = $archive_info->getSize();
373 373
 			
374 374
 			$estimated_new_size = $return['extra']['backup_size'] + $file_info['size'];
375 375
 			
376 376
 			//we create a new backup part if we reach the Split Achive Limit
377
-			if($this->xcloner_split_backup_limit and ($estimated_new_size > $this->xcloner_split_backup_limit) and (!$start_byte))
377
+			if ($this->xcloner_split_backup_limit and ($estimated_new_size > $this->xcloner_split_backup_limit) and (!$start_byte))
378 378
 			{
379
-				$this->logger->info(sprintf("Backup size limit %s bytes reached, file add estimate %s, attempt to create a new archive ",$this->xcloner_split_backup_limit, $estimated_new_size));
379
+				$this->logger->info(sprintf("Backup size limit %s bytes reached, file add estimate %s, attempt to create a new archive ", $this->xcloner_split_backup_limit, $estimated_new_size));
380 380
 				list($archive_info, $return['extra']['backup_part']) = $this->create_new_backup_part($return['extra']['backup_part']);
381 381
 				
382
-				if($file_info['size'] > $this->xcloner_split_backup_limit)
382
+				if ($file_info['size'] > $this->xcloner_split_backup_limit)
383 383
 				{
384
-					$this->logger->info(sprintf("Excluding %s file as it's size(%s) is bigger than the backup split limit of %s and it won't fit a single backup file",$file_info['path'], $file_info['size'], $this->xcloner_split_backup_limit));
384
+					$this->logger->info(sprintf("Excluding %s file as it's size(%s) is bigger than the backup split limit of %s and it won't fit a single backup file", $file_info['path'], $file_info['size'], $this->xcloner_split_backup_limit));
385 385
 					$extra_params['start_at_line']++;
386 386
 				}
387 387
 				
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 				return $return;
394 394
 			}
395 395
 			
396
-			list($bytes_wrote, $last_position) = $this->add_file_to_archive( $file_info, $start_byte, $byte_limit, $append, $start_filesystem);
396
+			list($bytes_wrote, $last_position) = $this->add_file_to_archive($file_info, $start_byte, $byte_limit, $append, $start_filesystem);
397 397
 			$this->processed_size_bytes += $bytes_wrote;
398 398
 			
399 399
 			//echo" - processed ".$this->processed_size_bytes." bytes ".$this->file_size_per_request_limit." last_position:".$last_position." \n";
@@ -401,17 +401,17 @@  discard block
 block discarded – undo
401 401
 			$return['extra']['processed_file_size'] = $file_info['size'];
402 402
 			$return['extra']['backup_size'] = $archive_info->getSize();
403 403
 			
404
-			if($last_position>0){	
404
+			if ($last_position > 0) {	
405 405
 				$start_byte = $last_position;
406 406
 			}
407
-			else{	
407
+			else {	
408 408
 				$extra_params['start_at_line']++;
409 409
 				$file->next();
410 410
 				$start_byte = 0;
411 411
 				$counter++;
412 412
 			}
413 413
 			
414
-			if($this->processed_size_bytes >= $this->file_size_per_request_limit)
414
+			if ($this->processed_size_bytes >= $this->file_size_per_request_limit)
415 415
 			{
416 416
 				clearstatcache();
417 417
 				$return['extra']['backup_size'] = $archive_info->getSize();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 			}
425 425
 		}
426 426
 		
427
-		if(!$file->eof())
427
+		if (!$file->eof())
428 428
 		{
429 429
 			clearstatcache();
430 430
 			$return['extra']['backup_size'] = $archive_info->getSize();
@@ -441,12 +441,12 @@  discard block
 block discarded – undo
441 441
 		$this->logger->info(sprintf("Closing the backup archive %s with 2*512 zero bytes blocks.", $this->get_archive_name_with_extension()));
442 442
 		$this->backup_archive->close();
443 443
 				
444
-		if($return['extra']['backup_part'])
444
+		if ($return['extra']['backup_part'])
445 445
 			$this->write_multipart_file($this->get_archive_name_with_extension());
446 446
 		
447
-		$return['extra']['start_at_line'] = $extra_params['start_at_line']-1;
447
+		$return['extra']['start_at_line'] = $extra_params['start_at_line'] - 1;
448 448
 		
449
-		if(isset($file_info))
449
+		if (isset($file_info))
450 450
 		{
451 451
 			$return['extra']['processed_file'] = $file_info['path'];
452 452
 			$return['extra']['processed_file_size'] = $file_info['size'];
@@ -488,20 +488,20 @@  discard block
 block discarded – undo
488 488
 		$this->logger->info(sprintf("Closing the backup archive %s with 2*512 zero bytes blocks.", $this->get_archive_name_with_extension()));
489 489
 		$this->backup_archive->close();		
490 490
 		
491
-		if(!$part)
491
+		if (!$part)
492 492
 		{
493 493
 			$old_name = $this->get_archive_name_with_extension();
494 494
 			$this->set_archive_name($this->get_archive_name(), ++$part);
495 495
 			$this->rename_archive($old_name, $this->get_archive_name_with_extension());
496 496
 			
497
-			if($this->filesystem->get_storage_filesystem()->has($this->get_archive_name_multipart()))
497
+			if ($this->filesystem->get_storage_filesystem()->has($this->get_archive_name_multipart()))
498 498
 				$this->filesystem->get_storage_filesystem()->delete($this->get_archive_name_multipart());
499 499
 				
500 500
 			$this->write_multipart_file($this->get_archive_name_with_extension());
501 501
 			
502
-		}else
502
+		} else
503 503
 		{
504
-			$this->logger->info(sprintf("Creating new multipart info file %s",$this->get_archive_name_with_extension()));
504
+			$this->logger->info(sprintf("Creating new multipart info file %s", $this->get_archive_name_with_extension()));
505 505
 			$this->write_multipart_file($this->get_archive_name_with_extension());
506 506
 		}
507 507
 				
@@ -529,10 +529,10 @@  discard block
 block discarded – undo
529 529
 		$start_adapter = $this->filesystem->get_adapter($filesystem);
530 530
 		$start_filesystem = $this->filesystem->get_adapter($filesystem);
531 531
 		
532
-		if(!$file_info['path'])
532
+		if (!$file_info['path'])
533 533
 			return;
534 534
 		
535
-		if(isset($file_info['archive_prefix_path']))	
535
+		if (isset($file_info['archive_prefix_path']))	
536 536
 			$file_info['target_path'] = $file_info['archive_prefix_path']."/".$file_info['path'];
537 537
 		else
538 538
 			$file_info['target_path'] = $file_info['path'];
@@ -541,36 +541,36 @@  discard block
 block discarded – undo
541 541
 		
542 542
 		//$start_adapter = $this->filesystem->get_start_adapter();
543 543
 
544
-		if(!$append){
544
+		if (!$append) {
545 545
 			$bytes_wrote = $file_info['size'];
546 546
 			$this->logger->info(sprintf("Adding %s bytes of file %s to archive %s ", $bytes_wrote, $file_info['target_path'], $this->get_archive_name_with_extension()));
547 547
 			$this->backup_archive->addFile($start_adapter->applyPathPrefix($file_info['path']), $file_info['target_path']);
548 548
 		}
549
-		else{	
549
+		else {	
550 550
 			$tmp_file = md5($file_info['path']);
551 551
 			
552 552
 			//we isolate file to tmp if we are at byte 0, the starting point of file reading
553
-			if(!$start_at_byte)
553
+			if (!$start_at_byte)
554 554
 			{
555 555
 				$this->logger->info(sprintf("Copying %s file to tmp filesystem file %s to prevent reading changes", $file_info['path'], $tmp_file));
556 556
 				$file_stream = $start_filesystem->readStream($file_info['path']);
557 557
 				
558
-				if(is_resource($file_stream['stream']))
558
+				if (is_resource($file_stream['stream']))
559 559
 					$this->filesystem->get_tmp_filesystem()->writeStream($tmp_file, $file_stream['stream']);
560 560
 			}
561 561
 			
562
-			if($this->filesystem->get_tmp_filesystem()->has($tmp_file))
562
+			if ($this->filesystem->get_tmp_filesystem()->has($tmp_file))
563 563
 			{
564 564
 				$is_tmp = 1;
565 565
 				$last_position = $this->backup_archive->appendFileData($this->filesystem->get_tmp_filesystem_adapter()->applyPathPrefix($tmp_file), $file_info['target_path'], $start_at_byte, $byte_limit);
566 566
 			}
567
-			else{
567
+			else {
568 568
 				$is_tmp = 0;
569 569
 				$last_position = $this->backup_archive->appendFileData($start_adapter->applyPathPrefix($file_info['path']), $file_info['target_path'], $start_at_byte, $byte_limit);
570 570
 			}
571 571
 				
572 572
 			
573
-			if($last_position == -1)
573
+			if ($last_position == -1)
574 574
 			{
575 575
 				$bytes_wrote = $file_info['size'] - $start_at_byte;
576 576
 			}
@@ -580,18 +580,18 @@  discard block
 block discarded – undo
580 580
 			}
581 581
 			
582 582
 			
583
-			if($is_tmp)
583
+			if ($is_tmp)
584 584
 			{
585 585
 				$this->logger->info(sprintf("Appended %s bytes, starting position %s, of tmp file %s (%s) to archive %s ", $bytes_wrote, $start_at_byte, $tmp_file, $file_info['target_path'], $this->get_archive_name()));
586 586
 			}
587
-			else{
587
+			else {
588 588
 				$this->logger->info(sprintf("Appended %s bytes, starting position %s, of original file %s to archive %s ", $bytes_wrote, $start_at_byte, $file_info['target_path'], $tmp_file, $this->get_archive_name()));
589 589
 			}
590 590
 			
591 591
 			//we delete here the isolated tmp file
592
-			if($last_position == -1)
592
+			if ($last_position == -1)
593 593
 			{
594
-				if($this->filesystem->get_tmp_filesystem_adapter()->has($tmp_file))
594
+				if ($this->filesystem->get_tmp_filesystem_adapter()->has($tmp_file))
595 595
 				{
596 596
 					$this->logger->info(sprintf("Deleting %s from the tmp filesystem", $tmp_file));
597 597
 					$this->filesystem->get_tmp_filesystem_adapter()->delete($tmp_file);
Please login to merge, or discard this patch.
admin/partials/xcloner_init_page.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
  * @subpackage Xcloner/admin/partials
13 13
  */
14 14
 
15
-$requirements	 		= $this->get_xcloner_container()->get_xcloner_requirements();
16
-$xcloner_settings 		= $this->get_xcloner_container()->get_xcloner_settings();
17
-$xcloner_file_system 	= $this->get_xcloner_container()->get_xcloner_filesystem();
18
-$logger					= $this->get_xcloner_container()->get_xcloner_logger();
19
-$xcloner_scheduler 		= $this->get_xcloner_container()->get_xcloner_scheduler();
15
+$requirements = $this->get_xcloner_container()->get_xcloner_requirements();
16
+$xcloner_settings = $this->get_xcloner_container()->get_xcloner_settings();
17
+$xcloner_file_system = $this->get_xcloner_container()->get_xcloner_filesystem();
18
+$logger = $this->get_xcloner_container()->get_xcloner_logger();
19
+$xcloner_scheduler = $this->get_xcloner_container()->get_xcloner_scheduler();
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
-if($requirements->check_backup_ready_status())
26
+if ($requirements->check_backup_ready_status())
27 27
 {
28
-	$latest_backup =  $xcloner_file_system->get_latest_backup();
28
+	$latest_backup = $xcloner_file_system->get_latest_backup();
29 29
 	$xcloner_file_system->backup_storage_cleanup();
30 30
 }
31 31
 ?>
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	</div>
39 39
 </div>
40 40
 
41
-<?php if(isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?>
41
+<?php if (isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?>
42 42
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
43 43
 		<p><strong>
44 44
 			<?php echo __('Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	</div>
48 48
 <?php endif?>
49 49
 
50
-<?php if(!isset($latest_backup['timestamp']) ): ?>
50
+<?php if (!isset($latest_backup['timestamp'])): ?>
51 51
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
52 52
 		<p><strong>
53 53
 			<?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,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	</div>
57 57
 <?php endif?>
58 58
 
59
-<?php if(!$requirements->check_backup_ready_status()):?>
59
+<?php if (!$requirements->check_backup_ready_status()):?>
60 60
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
61 61
 		<p><strong>
62 62
 			<?php echo __('Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore') ?>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 							<div class="row">
84 84
 								<h5><?php echo __("Latest Backup", 'xcloner-backup-and-restore')?></h5>
85 85
 								<blockquote>
86
-								<?php if($latest_backup):?>
86
+								<?php if ($latest_backup):?>
87 87
 									<div class="item">
88 88
 										<div class="title"><?php echo __("Backup Name", 'xcloner-backup-and-restore')?>:</div>
89 89
 										<?php echo $latest_backup['basename']?>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 									<div class="item">
98 98
 										<div class="title"><?php echo __("Backup Date", 'xcloner-backup-and-restore')?>:</div>
99 99
 										<?php 
100
-										echo date($date_format." ".$time_format, $latest_backup['timestamp']+(get_option( 'gmt_offset' ) * HOUR_IN_SECONDS))
100
+										echo date($date_format." ".$time_format, $latest_backup['timestamp'] + (get_option('gmt_offset') * HOUR_IN_SECONDS))
101 101
 										?>
102 102
 									</div> 
103 103
 								<?php else:?>
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 								<blockquote>
112 112
 								<div class="item">
113 113
 									<div class="title"><?php echo __("Total Size", 'xcloner-backup-and-restore')?>:</div>
114
-									<?php echo size_format($xcloner_file_system->get_storage_usage());?>
114
+									<?php echo size_format($xcloner_file_system->get_storage_usage()); ?>
115 115
 								</div>
116 116
 								</blockquote>
117 117
 							<h5><?php echo __("Next Scheduled Backup", 'xcloner-backup-and-restore')?></h5>
@@ -120,25 +120,25 @@  discard block
 block discarded – undo
120 120
 									<?php
121 121
 									$list = ($xcloner_scheduler->get_next_run_schedule());
122 122
 										
123
-										if(is_array($list))
123
+										if (is_array($list))
124 124
 										{
125
-											$xcloner_file_system->sort_by($list, "next_run_time","asc");
125
+											$xcloner_file_system->sort_by($list, "next_run_time", "asc");
126 126
 										}
127 127
 										
128
-										if(isset($list[0]))
128
+										if (isset($list[0]))
129 129
 											$latest_schedule = $list[0];
130 130
 									?>
131
-									<?php if(isset($latest_schedule->name)):?>
131
+									<?php if (isset($latest_schedule->name)):?>
132 132
 									<div class="title"><?php echo __("Schedule Name", 'xcloner-backup-and-restore')?>:</div>
133
-										<?php	echo $latest_schedule->name;?>
134
-									<?php endif;?>	
133
+										<?php	echo $latest_schedule->name; ?>
134
+									<?php endif; ?>	
135 135
 								</div>
136 136
 								<div class="item">
137 137
 									<div class="title"><?php echo __("Next Call", 'xcloner-backup-and-restore')?>:</div>
138
-									<?php if(isset($latest_schedule->next_run_time))	
138
+									<?php if (isset($latest_schedule->next_run_time))	
139 139
 											echo date($date_format." ".$time_format, $latest_schedule->next_run_time);
140 140
 										  else
141
-											echo __("Unscheduled",'xcloner-backup-and-restore');
141
+											echo __("Unscheduled", 'xcloner-backup-and-restore');
142 142
 									?>
143 143
 								</div>
144 144
 								</blockquote>
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 					</div>
147 147
 				</li>
148 148
 				
149
-				<?php if($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
149
+				<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
150 150
 				<li class="active">
151 151
 					<div class="collapsible-header active">
152 152
 						<i class="material-icons">bug_report</i><?php echo __('XCloner Debugger', 'xcloner-backup-and-restore')?>
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 						</div>
158 158
 					</div>
159 159
 					<div class="collapsible-body">
160
-						<div class="console" id="xcloner-console"><?php if($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
160
+						<div class="console" id="xcloner-console"><?php if ($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
161 161
 					</div>
162 162
 				</li>
163 163
 				<script>
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 					}, 2000);*/
170 170
 				})
171 171
 				</script>
172
-				<?php endif;?>
172
+				<?php endif; ?>
173 173
 			
174 174
 			</ul>
175 175
 		
@@ -181,59 +181,59 @@  discard block
 block discarded – undo
181 181
 	  
182 182
 	  <div class="card blue-grey darken-1 z-depth-4 backup-ready">
183 183
 		<div class="card-content white-text">
184
-		  <span class="card-title"><?php echo __("System Check",'xcloner-backup-and-restore')?></span>
184
+		  <span class="card-title"><?php echo __("System Check", 'xcloner-backup-and-restore')?></span>
185 185
 		  <ul>
186
-				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1)?"teal":"red")?> lighten-2" >
187
-					<?php echo __('Backup Start Location','xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path();?></span>
186
+				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1) ? "teal" : "red")?> lighten-2" >
187
+					<?php echo __('Backup Start Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path(); ?></span>
188 188
 				</li>
189
-				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1)?"teal":"red")?> lighten-2" >
190
-					<?php echo __('Backup Storage Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path();?></span>
189
+				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1) ? "teal" : "red")?> lighten-2" >
190
+					<?php echo __('Backup Storage Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path(); ?></span>
191 191
 				</li>
192
-				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1)?"teal":"red")?> lighten-2" >
193
-					<?php echo __('Temporary Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path();?></span>
192
+				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1) ? "teal" : "red")?> lighten-2" >
193
+					<?php echo __('Temporary Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path(); ?></span>
194 194
 				</li>
195 195
 				
196
-				<li class="card-panel <?php echo ($requirements->check_min_php_version(1)?"teal":"red")?> lighten-2" >
197
-					<?php echo __('PHP Version Check','xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version();?>
196
+				<li class="card-panel <?php echo ($requirements->check_min_php_version(1) ? "teal" : "red")?> lighten-2" >
197
+					<?php echo __('PHP Version Check', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version(); ?>
198 198
 					( >= <?php echo $requirements->get_constant('min_php_version')?>)
199 199
 				</li>
200
-				<li class="card-panel <?php echo ($requirements->check_safe_mode(1)?"teal":"orange")?> lighten-2" >
201
-					<?php echo __('PHP Safe Mode','xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode();?>
200
+				<li class="card-panel <?php echo ($requirements->check_safe_mode(1) ? "teal" : "orange")?> lighten-2" >
201
+					<?php echo __('PHP Safe Mode', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode(); ?>
202 202
 					( <?php echo $requirements->get_constant('safe_mode')?>)
203 203
 				</li>
204
-				<li class="card-panel <?php echo ($requirements->check_backup_ready_status()?"teal":"red")?> lighten-2">
205
-					<?php echo ($requirements->check_backup_ready_status()?__('BACKUP READY','xcloner-backup-and-restore'):__('Backup not ready, please check above requirements','xcloner-backup-and-restore'))?>
206
-					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status()?'thumb_up':'thumb_down')?></i>
204
+				<li class="card-panel <?php echo ($requirements->check_backup_ready_status() ? "teal" : "red")?> lighten-2">
205
+					<?php echo ($requirements->check_backup_ready_status() ?__('BACKUP READY', 'xcloner-backup-and-restore') : __('Backup not ready, please check above requirements', 'xcloner-backup-and-restore'))?>
206
+					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down')?></i>
207 207
 				</li>
208 208
 		  </ul>
209 209
 		  <ul class="additional_system_info">
210 210
 				<li class="card-panel grey darken-1" >
211
-					<?php echo __('PHP max_execution_time','xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time();?>
211
+					<?php echo __('PHP max_execution_time', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time(); ?>
212 212
 				</li>
213 213
 				<li class="card-panel grey darken-1" >
214
-					<?php echo __('PHP memory_limit','xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit();?>
214
+					<?php echo __('PHP memory_limit', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit(); ?>
215 215
 				</li>
216 216
 				<li class="card-panel grey darken-1" >
217
-					<?php echo __('PHP open_basedir','xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir();?>
217
+					<?php echo __('PHP open_basedir', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir(); ?>
218 218
 				</li>
219 219
 				<?php 
220 220
 				$data = array();
221
-				if($requirements->check_backup_ready_status())
221
+				if ($requirements->check_backup_ready_status())
222 222
 					$data = $xcloner_file_system->estimate_read_write_time();
223 223
 				?>
224 224
 				<li class="card-panel grey darken-1" >
225
-					<?php echo __('Reading Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time'])?$data['reading_time']:__("unknown"));?>
225
+					<?php echo __('Reading Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time']) ? $data['reading_time'] : __("unknown")); ?>
226 226
 				</li>
227 227
 				<li class="card-panel grey darken-1" >
228
-					<?php echo __('Writing Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time'])?$data['writing_time']:__("unknown"));?>
228
+					<?php echo __('Writing Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time']) ? $data['writing_time'] : __("unknown")); ?>
229 229
 				</li>
230 230
 				<li class="card-panel grey darken-1" >
231
-					<?php echo __('Free Disk Space','xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space();;?>
231
+					<?php echo __('Free Disk Space', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space(); ;?>
232 232
 				</li>
233 233
 		  </ul>
234 234
 		</div>
235 235
 		<div class="card-action">
236
-		  <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')?></a>
236
+		  <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')?></a>
237 237
 		</div>
238 238
 	  </div>
239 239
 
Please login to merge, or discard this patch.
admin/partials/xcloner_remote_storage_page.php 1 patch
Spacing   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
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
 $gdrive_construct = $remote_storage->gdrive_construct();
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 			<!-- FTP STORAGE-->
21 21
 			<li id="ftp">
22 22
 				<div class="collapsible-header">
23
-					<i class="material-icons">computer</i><?php echo __("FTP Storage",'xcloner-backup-and-restore')?>
23
+					<i class="material-icons">computer</i><?php echo __("FTP Storage", 'xcloner-backup-and-restore')?>
24 24
 					<div class="switch right">
25 25
 						<label>
26 26
 						Off
27
-						<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if(get_option("xcloner_ftp_enable")) echo "checked"?> \>
27
+						<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if (get_option("xcloner_ftp_enable")) echo "checked"?> \>
28 28
 						<span class="lever"></span>
29 29
 						On
30 30
 						</label>
@@ -33,96 +33,96 @@  discard block
 block discarded – undo
33 33
 				<div class="collapsible-body">
34 34
 					<div class="row">
35 35
 						<div class="col s12 m3 label">
36
-							<label for="ftp_host"><?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?></label>
36
+							<label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?></label>
37 37
 						</div>
38 38
 						<div class="col s12 m6">
39
-							<input placeholder="<?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>">
39
+							<input placeholder="<?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>">
40 40
 				        </div>
41 41
 				        <div class=" col s12 m2">
42
-							<input placeholder="<?php echo __("Ftp Port",'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>">
42
+							<input placeholder="<?php echo __("Ftp Port", 'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>">
43 43
 				        </div>
44 44
 			        </div>
45 45
 			        
46 46
 			        <div class="row">
47 47
 						<div class="col s12 m3 label">
48
-							<label for="ftp_username"><?php echo __("Ftp Username",'xcloner-backup-and-restore')?></label>
48
+							<label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore')?></label>
49 49
 						</div>	
50 50
 						<div class=" col s12 m6">
51
-							<input placeholder="<?php echo __("Ftp Username",'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" >
51
+							<input placeholder="<?php echo __("Ftp Username", 'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" >
52 52
 				        </div>
53 53
 			        </div>
54 54
 			        
55 55
 			        
56 56
 			        <div class="row">
57 57
 						<div class="col s12 m3 label">
58
-							<label for="ftp_password"><?php echo __("Ftp Password",'xcloner-backup-and-restore')?></label>
58
+							<label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore')?></label>
59 59
 						</div>
60 60
 						<div class=" col s12 m6">
61
-							<input placeholder="<?php echo __("Ftp Password",'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" >
61
+							<input placeholder="<?php echo __("Ftp Password", 'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" >
62 62
 				        </div>
63 63
 			        </div>
64 64
 			        
65 65
 			        <div class="row">
66 66
 						<div class="col s12 m3 label">
67
-							<label for="ftp_root"><?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?></label>
67
+							<label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?></label>
68 68
 						</div>
69 69
 						<div class=" col s12 m6">
70
-							<input placeholder="<?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>">
70
+							<input placeholder="<?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>">
71 71
 						</div>	
72 72
 			        </div>
73 73
 			        
74 74
 			        <div class="row">
75 75
 						<div class="col s12 m3 label">
76
-							<label for="ftp_root"><?php echo __("Ftp Transfer Mode",'xcloner-backup-and-restore')?></label>
76
+							<label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore')?></label>
77 77
 						</div>
78 78
 						<div class=" col s12 m6 input-field inline">
79
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if(get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
80
-							<label for="passive"><?php echo __("Passive",'xcloner-backup-and-restore')?></label>
79
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
80
+							<label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore')?></label>
81 81
 
82
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if(!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
83
-							<label for="active"><?php echo __("Active",'xcloner-backup-and-restore')?></label>
82
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
83
+							<label for="active"><?php echo __("Active", 'xcloner-backup-and-restore')?></label>
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_ssl_mode"><?php echo __("Ftp Secure Connection",'xcloner-backup-and-restore')?></label>
89
+							<label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore')?></label>
90 90
 						</div>
91 91
 						<div class=" col s12 m6 input-field inline">
92
-							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if(!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
93
-							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable",'xcloner-backup-and-restore')?></label>
92
+							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if (!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
93
+							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore')?></label>
94 94
 
95
-							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if(get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
96
-							<label for="ftp_ssl_mode_active"><?php echo __("Enable",'xcloner-backup-and-restore')?></label>
95
+							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if (get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
96
+							<label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore')?></label>
97 97
 						</div>	
98 98
 			        </div>
99 99
 			        
100 100
 			        <div class="row">
101 101
 						<div class="col s12 m3 label">
102
-							<label for="ftp_timeout"><?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?></label>
102
+							<label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?></label>
103 103
 						</div>
104 104
 						<div class=" col s12 m2">
105
-							<input placeholder="<?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>">
105
+							<input placeholder="<?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>">
106 106
 				        </div>
107 107
 			        </div>
108 108
 			        
109 109
 			        <div class="row">
110 110
 						<div class="col s12 m3 label">
111
-							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)",'xcloner-backup-and-restore')?></label>
111
+							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore')?></label>
112 112
 						</div>
113 113
 						<div class=" col s12 m6">
114
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>">
114
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>">
115 115
 				        </div>
116 116
 			        </div>
117 117
 			        
118 118
 			        <div class="row">
119 119
 						<div class="col s6 m4">
120
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
120
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
121 121
 								<i class="material-icons right">save</i>
122 122
 							</button>
123 123
 						</div>	
124 124
 						<div class="col s6 m4">
125
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
125
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
126 126
 								<i class="material-icons right">import_export</i>
127 127
 							</button>
128 128
 						</div>
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
 			<!-- SFTP STORAGE-->
134 134
 			<li id="sftp">
135 135
 				<div class="collapsible-header">
136
-					<i class="material-icons">computer</i><?php echo __("SFTP Storage",'xcloner-backup-and-restore')?>
136
+					<i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore')?>
137 137
 					<div class="switch right">
138 138
 						<label>
139 139
 						Off
140
-						<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if(get_option("xcloner_sftp_enable")) echo "checked"?> \>
140
+						<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if (get_option("xcloner_sftp_enable")) echo "checked"?> \>
141 141
 						<span class="lever"></span>
142 142
 						On
143 143
 						</label>
@@ -146,79 +146,79 @@  discard block
 block discarded – undo
146 146
 				<div class="collapsible-body">
147 147
 					<div class="row">
148 148
 						<div class="col s12 m3 label">
149
-							<label for="sftp_host"><?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?></label>
149
+							<label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?></label>
150 150
 						</div>
151 151
 						<div class="col s12 m6">
152
-							<input placeholder="<?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>">
152
+							<input placeholder="<?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>">
153 153
 				        </div>
154 154
 				        <div class=" col s12 m2">
155
-							<input placeholder="<?php echo __("SFTP Port",'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>">
155
+							<input placeholder="<?php echo __("SFTP Port", 'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>">
156 156
 				        </div>
157 157
 			        </div>
158 158
 			        
159 159
 			        <div class="row">
160 160
 						<div class="col s12 m3 label">
161
-							<label for="sftp_username"><?php echo __("SFTP Username",'xcloner-backup-and-restore')?></label>
161
+							<label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore')?></label>
162 162
 						</div>	
163 163
 						<div class=" col s12 m6">
164
-							<input placeholder="<?php echo __("SFTP Username",'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" >
164
+							<input placeholder="<?php echo __("SFTP Username", 'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" >
165 165
 				        </div>
166 166
 			        </div>
167 167
 			        
168 168
 			        
169 169
 			        <div class="row">
170 170
 						<div class="col s12 m3 label">
171
-							<label for="sftp_password"><?php echo __("SFTP or Private Key Password",'xcloner-backup-and-restore')?></label>
171
+							<label for="sftp_password"><?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?></label>
172 172
 						</div>
173 173
 						<div class=" col s12 m6">
174
-							<input placeholder="<?php echo __("SFTP or Private Key Password",'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
174
+							<input placeholder="<?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
175 175
 				        </div>
176 176
 			        </div>
177 177
 			        
178 178
 			        <div class="row">
179 179
 						<div class="col s12 m3 label">
180
-							<label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)",'xcloner-backup-and-restore')?></label>
180
+							<label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)", 'xcloner-backup-and-restore')?></label>
181 181
 						</div>
182 182
 						<div class=" col s12 m6">
183
-							<textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File",'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea>
183
+							<textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea>
184 184
 						</div>
185 185
 			        </div>
186 186
 			        
187 187
 			        <div class="row">
188 188
 						<div class="col s12 m3 label">
189
-							<label for="sftp_root"><?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?></label>
189
+							<label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?></label>
190 190
 						</div>
191 191
 						<div class=" col s12 m6">
192
-							<input placeholder="<?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>">
192
+							<input placeholder="<?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>">
193 193
 						</div>	
194 194
 			        </div>
195 195
 			        
196 196
 			        <div class="row">
197 197
 						<div class="col s12 m3 label">
198
-							<label for="sftp_timeout"><?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?></label>
198
+							<label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?></label>
199 199
 						</div>
200 200
 						<div class=" col s12 m2">
201
-							<input placeholder="<?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>">
201
+							<input placeholder="<?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>">
202 202
 				        </div>
203 203
 			        </div>
204 204
 			        
205 205
 			        <div class="row">
206 206
 						<div class="col s12 m3 label">
207
-							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)",'xcloner-backup-and-restore')?></label>
207
+							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore')?></label>
208 208
 						</div>
209 209
 						<div class=" col s12 m6">
210
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>">
210
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>">
211 211
 				        </div>
212 212
 			        </div>
213 213
 			        
214 214
 			        <div class="row">
215 215
 						<div class="col s6 m4">
216
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
216
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
217 217
 								<i class="material-icons right">save</i>
218 218
 							</button>
219 219
 						</div>	
220 220
 						<div class="col s6 m4">
221
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
221
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
222 222
 								<i class="material-icons right">import_export</i>
223 223
 							</button>
224 224
 						</div>
@@ -230,11 +230,11 @@  discard block
 block discarded – undo
230 230
 			<!-- AWS STORAGE-->
231 231
 			<li id="aws">
232 232
 				<div class="collapsible-header">
233
-					<i class="material-icons">computer</i><?php echo __("AWS Storage",'xcloner-backup-and-restore')?>
233
+					<i class="material-icons">computer</i><?php echo __("AWS Storage", 'xcloner-backup-and-restore')?>
234 234
 					<div class="switch right">
235 235
 						<label>
236 236
 						Off
237
-						<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if(get_option("xcloner_aws_enable")) echo "checked"?> \>
237
+						<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if (get_option("xcloner_aws_enable")) echo "checked"?> \>
238 238
 						<span class="lever"></span>
239 239
 						On
240 240
 						</label>
@@ -255,35 +255,35 @@  discard block
 block discarded – undo
255 255
 			        
256 256
 			        <div class="row">
257 257
 						<div class="col s12 m3 label">
258
-							<label for="aws_key"><?php echo __("AWS Key",'xcloner-backup-and-restore')?></label>
258
+							<label for="aws_key"><?php echo __("AWS Key", 'xcloner-backup-and-restore')?></label>
259 259
 						</div>	
260 260
 						<div class=" col s12 m6">
261
-							<input placeholder="<?php echo __("AWS Key",'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" >
261
+							<input placeholder="<?php echo __("AWS Key", 'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" >
262 262
 				        </div>
263 263
 			        </div>
264 264
 			        
265 265
 			        <div class="row">
266 266
 						<div class="col s12 m3 label">
267
-							<label for="aws_secret"><?php echo __("AWS Secret",'xcloner-backup-and-restore')?></label>
267
+							<label for="aws_secret"><?php echo __("AWS Secret", 'xcloner-backup-and-restore')?></label>
268 268
 						</div>	
269 269
 						<div class=" col s12 m6">
270
-							<input placeholder="<?php echo __("AWS Secret",'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" >
270
+							<input placeholder="<?php echo __("AWS Secret", 'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" >
271 271
 				        </div>
272 272
 			        </div>
273 273
 			        
274 274
 			        <div class="row">
275 275
 						<div class="col s12 m3 label">
276
-							<label for="aws_region"><?php echo __("AWS Region",'xcloner-backup-and-restore')?></label>
276
+							<label for="aws_region"><?php echo __("AWS Region", 'xcloner-backup-and-restore')?></label>
277 277
 						</div>	
278 278
 						<div class=" col s12 m6">
279
-							<select placeholder="<?php echo __("example: us-east-1",'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" >
279
+							<select placeholder="<?php echo __("example: us-east-1", 'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" >
280 280
 							<option readonly value=""><?php echo __("Please Select AWS Region")?></option>
281 281
 							<?php 							
282 282
 							$aws_regions = $remote_storage->get_aws_regions();
283 283
 							
284
-							foreach($aws_regions as $key=>$region){
284
+							foreach ($aws_regions as $key=>$region) {
285 285
 								?>
286
-								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region')?"selected":"")?>><?php echo $region?> = <?php echo $key?></option>
286
+								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region') ? "selected" : "")?>><?php echo $region?> = <?php echo $key?></option>
287 287
 								<?php
288 288
 								}
289 289
 							?>
@@ -293,30 +293,30 @@  discard block
 block discarded – undo
293 293
 			        
294 294
 			        <div class="row">
295 295
 						<div class="col s12 m3 label">
296
-							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?></label>
296
+							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?></label>
297 297
 						</div>	
298 298
 						<div class=" col s12 m6">
299
-							<input placeholder="<?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" >
299
+							<input placeholder="<?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" >
300 300
 				        </div>
301 301
 			        </div>
302 302
 			        
303 303
 			        <div class="row">
304 304
 						<div class="col s12 m3 label">
305
-							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)",'xcloner-backup-and-restore')?></label>
305
+							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)", 'xcloner-backup-and-restore')?></label>
306 306
 						</div>
307 307
 						<div class=" col s12 m6">
308
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>">
308
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>">
309 309
 				        </div>
310 310
 			        </div>
311 311
 			        
312 312
 			        <div class="row">
313 313
 						<div class="col s6 m4">
314
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
314
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
315 315
 								<i class="material-icons right">save</i>
316 316
 							</button>
317 317
 						</div>	
318 318
 						<div class="col s6 m4">
319
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
319
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
320 320
 								<i class="material-icons right">import_export</i>
321 321
 							</button>
322 322
 						</div>
@@ -328,11 +328,11 @@  discard block
 block discarded – undo
328 328
 			<!-- DROPBOX STORAGE-->
329 329
 			<li id="dropbox">
330 330
 				<div class="collapsible-header">
331
-					<i class="material-icons">computer</i><?php echo __("Dropbox Storage",'xcloner-backup-and-restore')?>
331
+					<i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore')?>
332 332
 					<div class="switch right">
333 333
 						<label>
334 334
 						Off
335
-						<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if(get_option("xcloner_dropbox_enable")) echo "checked"?> \>
335
+						<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if (get_option("xcloner_dropbox_enable")) echo "checked"?> \>
336 336
 						<span class="lever"></span>
337 337
 						On
338 338
 						</label>
@@ -353,49 +353,49 @@  discard block
 block discarded – undo
353 353
 			        
354 354
 			        <div class="row">
355 355
 						<div class="col s12 m3 label">
356
-							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?></label>
356
+							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?></label>
357 357
 						</div>	
358 358
 						<div class=" col s12 m6">
359
-							<input placeholder="<?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" >
359
+							<input placeholder="<?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" >
360 360
 				        </div>
361 361
 			        </div>
362 362
 			        
363 363
 			        
364 364
 			        <div class="row">
365 365
 						<div class="col s12 m3 label">
366
-							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?></label>
366
+							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?></label>
367 367
 						</div>
368 368
 						<div class=" col s12 m6">
369
-							<input placeholder="<?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" >
369
+							<input placeholder="<?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" >
370 370
 				        </div>
371 371
 			        </div>
372 372
 			        
373 373
 			        <div class="row">
374 374
 						<div class="col s12 m3 label">
375
-							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?></label>
375
+							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?></label>
376 376
 						</div>
377 377
 						<div class=" col s12 m6">
378
-							<input placeholder="<?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>">
378
+							<input placeholder="<?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>">
379 379
 						</div>	
380 380
 			        </div>
381 381
 			        
382 382
 			        <div class="row">
383 383
 						<div class="col s12 m3 label">
384
-							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)",'xcloner-backup-and-restore')?></label>
384
+							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore')?></label>
385 385
 						</div>
386 386
 						<div class=" col s12 m6">
387
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>">
387
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>">
388 388
 				        </div>
389 389
 			        </div>
390 390
 			        
391 391
 			        <div class="row">
392 392
 						<div class="col s6 m4">
393
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
393
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
394 394
 								<i class="material-icons right">save</i>
395 395
 							</button>
396 396
 						</div>	
397 397
 						<div class="col s6 m4">
398
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
398
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
399 399
 								<i class="material-icons right">import_export</i>
400 400
 							</button>
401 401
 						</div>
@@ -407,11 +407,11 @@  discard block
 block discarded – undo
407 407
 			<!-- AZURE STORAGE-->
408 408
 			<li id="azure">
409 409
 				<div class="collapsible-header">
410
-					<i class="material-icons">computer</i><?php echo __("Azure Blob Storage",'xcloner-backup-and-restore')?>
410
+					<i class="material-icons">computer</i><?php echo __("Azure Blob Storage", 'xcloner-backup-and-restore')?>
411 411
 					<div class="switch right">
412 412
 						<label>
413 413
 						Off
414
-						<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if(get_option("xcloner_azure_enable")) echo "checked"?> \>
414
+						<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if (get_option("xcloner_azure_enable")) echo "checked"?> \>
415 415
 						<span class="lever"></span>
416 416
 						On
417 417
 						</label>
@@ -425,56 +425,56 @@  discard block
 block discarded – undo
425 425
 						</div>	
426 426
 						<div class=" col s12 m6">
427 427
 							<p>
428
-								<?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>')?>
428
+								<?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>')?>
429 429
 							</p>
430 430
 				        </div>
431 431
 			        </div>
432 432
 			        
433 433
 			        <div class="row">
434 434
 						<div class="col s12 m3 label">
435
-							<label for="azure_account_name"><?php echo __("Azure Account Name",'xcloner-backup-and-restore')?></label>
435
+							<label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?></label>
436 436
 						</div>	
437 437
 						<div class=" col s12 m6">
438
-							<input placeholder="<?php echo __("Azure Account Name",'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" >
438
+							<input placeholder="<?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" >
439 439
 				        </div>
440 440
 			        </div>
441 441
 			        
442 442
 			        
443 443
 			        <div class="row">
444 444
 						<div class="col s12 m3 label">
445
-							<label for="azure_api_key"><?php echo __("Azure Api Key",'xcloner-backup-and-restore')?></label>
445
+							<label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?></label>
446 446
 						</div>
447 447
 						<div class=" col s12 m6">
448
-							<input placeholder="<?php echo __("Azure Api Key",'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" >
448
+							<input placeholder="<?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" >
449 449
 				        </div>
450 450
 			        </div>
451 451
 			        
452 452
 			        <div class="row">
453 453
 						<div class="col s12 m3 label">
454
-							<label for="azure_container"><?php echo __("Azure Container",'xcloner-backup-and-restore')?></label>
454
+							<label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore')?></label>
455 455
 						</div>
456 456
 						<div class=" col s12 m6">
457
-							<input placeholder="<?php echo __("Azure Container",'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>">
457
+							<input placeholder="<?php echo __("Azure Container", 'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>">
458 458
 						</div>	
459 459
 			        </div>
460 460
 			        
461 461
 			        <div class="row">
462 462
 						<div class="col s12 m3 label">
463
-							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)",'xcloner-backup-and-restore')?></label>
463
+							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore')?></label>
464 464
 						</div>
465 465
 						<div class=" col s12 m6">
466
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>">
466
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>">
467 467
 				        </div>
468 468
 			        </div>
469 469
 			        
470 470
 			        <div class="row">
471 471
 						<div class="col s6 m4">
472
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
472
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
473 473
 								<i class="material-icons right">save</i>
474 474
 							</button>
475 475
 						</div>	
476 476
 						<div class="col s6 m4">
477
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
477
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
478 478
 								<i class="material-icons right">import_export</i>
479 479
 							</button>
480 480
 						</div>
@@ -486,11 +486,11 @@  discard block
 block discarded – undo
486 486
 			<!-- BACKBLAZE STORAGE-->
487 487
 			<li id="backblaze">
488 488
 				<div class="collapsible-header">
489
-					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage",'xcloner-backup-and-restore')?>
489
+					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage", 'xcloner-backup-and-restore')?>
490 490
 					<div class="switch right">
491 491
 						<label>
492 492
 						Off
493
-						<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if(get_option("xcloner_backblaze_enable")) echo "checked"?> \>
493
+						<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if (get_option("xcloner_backblaze_enable")) echo "checked"?> \>
494 494
 						<span class="lever"></span>
495 495
 						On
496 496
 						</label>
@@ -504,56 +504,56 @@  discard block
 block discarded – undo
504 504
 						</div>	
505 505
 						<div class=" col s12 m6">
506 506
 							<p>
507
-								<?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>')?>
507
+								<?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>')?>
508 508
 							</p>
509 509
 				        </div>
510 510
 			        </div>
511 511
 			        
512 512
 			        <div class="row">
513 513
 						<div class="col s12 m3 label">
514
-							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id",'xcloner-backup-and-restore')?></label>
514
+							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id", 'xcloner-backup-and-restore')?></label>
515 515
 						</div>	
516 516
 						<div class=" col s12 m6">
517
-							<input placeholder="<?php echo __("BackBlaze Account Id",'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" >
517
+							<input placeholder="<?php echo __("BackBlaze Account Id", 'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" >
518 518
 				        </div>
519 519
 			        </div>
520 520
 			        
521 521
 			        
522 522
 			        <div class="row">
523 523
 						<div class="col s12 m3 label">
524
-							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key",'xcloner-backup-and-restore')?></label>
524
+							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key", 'xcloner-backup-and-restore')?></label>
525 525
 						</div>
526 526
 						<div class=" col s12 m6">
527
-							<input placeholder="<?php echo __("BackBlaze Application Key",'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" >
527
+							<input placeholder="<?php echo __("BackBlaze Application Key", 'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" >
528 528
 				        </div>
529 529
 			        </div>
530 530
 			        
531 531
 			        <div class="row">
532 532
 						<div class="col s12 m3 label">
533
-							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name",'xcloner-backup-and-restore')?></label>
533
+							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name", 'xcloner-backup-and-restore')?></label>
534 534
 						</div>
535 535
 						<div class=" col s12 m6">
536
-							<input placeholder="<?php echo __("BackBlaze Bucket Name",'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" >
536
+							<input placeholder="<?php echo __("BackBlaze Bucket Name", 'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" >
537 537
 				        </div>
538 538
 			        </div>
539 539
 			        
540 540
 			        <div class="row">
541 541
 						<div class="col s12 m3 label">
542
-							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)",'xcloner-backup-and-restore')?></label>
542
+							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)", 'xcloner-backup-and-restore')?></label>
543 543
 						</div>
544 544
 						<div class=" col s12 m6">
545
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>">
545
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>">
546 546
 				        </div>
547 547
 			        </div>
548 548
 			        
549 549
 			        <div class="row">
550 550
 						<div class="col s6 m4">
551
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
551
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
552 552
 								<i class="material-icons right">save</i>
553 553
 							</button>
554 554
 						</div>	
555 555
 						<div class="col s6 m4">
556
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
556
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
557 557
 								<i class="material-icons right">import_export</i>
558 558
 							</button>
559 559
 						</div>
@@ -565,11 +565,11 @@  discard block
 block discarded – undo
565 565
 			<!-- WEBDAV STORAGE-->
566 566
 			<li id="webdav">
567 567
 				<div class="collapsible-header">
568
-					<i class="material-icons">computer</i><?php echo __("WebDAV Storage",'xcloner-backup-and-restore')?>
568
+					<i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore')?>
569 569
 					<div class="switch right">
570 570
 						<label>
571 571
 						Off
572
-						<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if(get_option("xcloner_webdav_enable")) echo "checked"?> \>
572
+						<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if (get_option("xcloner_webdav_enable")) echo "checked"?> \>
573 573
 						<span class="lever"></span>
574 574
 						On
575 575
 						</label>
@@ -590,57 +590,57 @@  discard block
 block discarded – undo
590 590
 			        
591 591
 			        <div class="row">
592 592
 						<div class="col s12 m3 label">
593
-							<label for="webdav_url"><?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?></label>
593
+							<label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?></label>
594 594
 						</div>	
595 595
 						<div class=" col s12 m6">
596
-							<input placeholder="<?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" >
596
+							<input placeholder="<?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" >
597 597
 				        </div>
598 598
 			        </div>
599 599
 			        
600 600
 			        <div class="row">
601 601
 						<div class="col s12 m3 label">
602
-							<label for="webdav_username"><?php echo __("WebDAV Username",'xcloner-backup-and-restore')?></label>
602
+							<label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?></label>
603 603
 						</div>
604 604
 						<div class=" col s12 m6">
605
-							<input placeholder="<?php echo __("WebDAV Username",'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" >
605
+							<input placeholder="<?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" >
606 606
 				        </div>
607 607
 			        </div>
608 608
 			        
609 609
 			        <div class="row">
610 610
 						<div class="col s12 m3 label">
611
-							<label for="webdav_password"><?php echo __("WebDAV Password",'xcloner-backup-and-restore')?></label>
611
+							<label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?></label>
612 612
 						</div>
613 613
 						<div class=" col s12 m6">
614
-							<input placeholder="<?php echo __("WebDAV Password",'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" >
614
+							<input placeholder="<?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" >
615 615
 				        </div>
616 616
 			        </div>
617 617
 			        
618 618
 			        <div class="row">
619 619
 						<div class="col s12 m3 label">
620
-							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?></label>
620
+							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?></label>
621 621
 						</div>	
622 622
 						<div class=" col s12 m6">
623
-							<input placeholder="<?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" >
623
+							<input placeholder="<?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" >
624 624
 				        </div>
625 625
 			        </div>
626 626
 			        
627 627
 			        <div class="row">
628 628
 						<div class="col s12 m3 label">
629
-							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)",'xcloner-backup-and-restore')?></label>
629
+							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore')?></label>
630 630
 						</div>
631 631
 						<div class=" col s12 m6">
632
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>">
632
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>">
633 633
 				        </div>
634 634
 			        </div>
635 635
 			        
636 636
 			        <div class="row">
637 637
 						<div class="col s6 m4">
638
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
638
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
639 639
 								<i class="material-icons right">save</i>
640 640
 							</button>
641 641
 						</div>	
642 642
 						<div class="col s6 m4">
643
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
643
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
644 644
 								<i class="material-icons right">import_export</i>
645 645
 							</button>
646 646
 						</div>
@@ -652,12 +652,12 @@  discard block
 block discarded – undo
652 652
 			<!-- Google DRIVE STORAGE-->
653 653
 			<li id="gdrive">
654 654
 				<div class="collapsible-header">
655
-					<i class="material-icons">computer</i><?php echo __("Google Drive Storage",'xcloner-backup-and-restore')?>
656
-					<?php if($gdrive_construct):?>
655
+					<i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore')?>
656
+					<?php if ($gdrive_construct):?>
657 657
 					<div class="switch right">
658 658
 						<label>
659 659
 						Off
660
-						<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if(get_option("xcloner_gdrive_enable")) echo "checked"?> \>
660
+						<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if (get_option("xcloner_gdrive_enable")) echo "checked"?> \>
661 661
 						<span class="lever"></span>
662 662
 						On
663 663
 						</label>
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 				</div>
667 667
 				<div class="collapsible-body">
668 668
 			        
669
-			        <?php if($gdrive_construct) : ?>
669
+			        <?php if ($gdrive_construct) : ?>
670 670
 			        
671 671
 				        <div class="row">
672 672
 							<div class="col s12 m3 label">
@@ -674,28 +674,28 @@  discard block
 block discarded – undo
674 674
 							</div>	
675 675
 							<div class=" col s12 m9">
676 676
 								<p>
677
-									<?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>')?>
677
+									<?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>')?>
678 678
 									<a href="https://youtu.be/YXUVPUVgG8k" target="_blank" class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" 
679
-									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")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
679
+									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")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
680 680
 								</p>
681 681
 					        </div>
682 682
 				        </div>
683 683
 			        
684 684
 						<div class="row">
685 685
 							<div class="col s12 m3 label">
686
-								<label for="gdrive_client_id"><?php echo __("Client ID",'xcloner-backup-and-restore')?></label>
686
+								<label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore')?></label>
687 687
 							</div>
688 688
 							<div class=" col s12 m6">
689
-								<input placeholder="<?php echo __("Google Client ID",'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>">
689
+								<input placeholder="<?php echo __("Google Client ID", 'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>">
690 690
 					        </div>
691 691
 				        </div>
692 692
 				        
693 693
 				        <div class="row">
694 694
 							<div class="col s12 m3 label">
695
-								<label for="gdrive_client_secret"><?php echo __("Client Secret",'xcloner-backup-and-restore')?></label>
695
+								<label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore')?></label>
696 696
 							</div>
697 697
 							<div class=" col s12 m6">
698
-								<input placeholder="<?php echo __("Google Client Secret",'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>">
698
+								<input placeholder="<?php echo __("Google Client Secret", 'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>">
699 699
 					        </div>
700 700
 				        </div>
701 701
 				        
@@ -705,41 +705,41 @@  discard block
 block discarded – undo
705 705
 								&nbsp;
706 706
 							</div>	
707 707
 							<div class=" col s12 m6">
708
-									<a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive','xcloner-backup-and-restore'))?></a>
709
-									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here","xcloner-backup-and-restore")?>">
708
+									<a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive', 'xcloner-backup-and-restore'))?></a>
709
+									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore")?>">
710 710
 					        </div>
711 711
 				        </div>
712 712
 				        
713 713
 				        <div class="row">
714 714
 							<div class="col s12 m3 label">
715
-								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path",'xcloner-backup-and-restore')?>
715
+								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore')?>
716 716
 									<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" \
717 717
 									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 />
718 718
 									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')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
719 719
 								</label>
720 720
 							</div>	
721 721
 							<div class=" col s12 m6">
722
-								<input placeholder="<?php echo __("Target Folder ID or Root Path",'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" >
722
+								<input placeholder="<?php echo __("Target Folder ID or Root Path", 'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" >
723 723
 					        </div>
724 724
 				        </div>
725 725
 				        
726 726
 				        <div class="row">
727 727
 							<div class="col s12 m3 label">
728
-								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)",'xcloner-backup-and-restore')?></label>
728
+								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore')?></label>
729 729
 							</div>
730 730
 							<div class=" col s12 m6">
731
-								<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>">
731
+								<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>">
732 732
 					        </div>
733 733
 				        </div>
734 734
 				        
735 735
 				        <div class="row">
736 736
 							<div class="col s6 m4">
737
-								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
737
+								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
738 738
 									<i class="material-icons right">save</i>
739 739
 								</button>
740 740
 							</div>	
741 741
 							<div class="col s6 m4">
742
-								<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
742
+								<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
743 743
 									<i class="material-icons right">import_export</i>
744 744
 								</button>
745 745
 							</div>
@@ -755,15 +755,15 @@  discard block
 block discarded – undo
755 755
 									<h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.")?></h6>
756 756
 									<h6><?php echo __("PHP 5.5 minimum version is required.")?></h6>
757 757
 									<br />
758
-									<a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url;?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0">
759
-										<?php echo sprintf(__('Install Now','xcloner-backup-and-restore'))?>
758
+									<a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url; ?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0">
759
+										<?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore'))?>
760 760
 									</a>
761 761
 									
762 762
 									<a href="<?php echo admin_url("plugin-install.php")?>?tab=plugin-information&amp;plugin=xcloner-google-drive&amp;TB_iframe=true&amp;width=772&amp;height=499" class="btn thickbox open-plugin-details-modal" aria-label="More information about Theme Check 20160523.1" data-title="Theme Check 20160523.1">
763 763
 									<!--
764 764
 									<a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip">
765 765
 									-->
766
-										<?php echo sprintf(__('More Details','xcloner-backup-and-restore'))?>
766
+										<?php echo sprintf(__('More Details', 'xcloner-backup-and-restore'))?>
767 767
 									</a>
768 768
 								</div>
769 769
 					        </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_generate_backups_page.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 <h1><?= esc_html(get_admin_page_title()); ?></h1>
12 12
          
13 13
 <ul class="nav-tab-wrapper content row">
14
-	<li><a href="#backup_options" class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab.". ".__('Backup Options','xcloner-backup-and-restore')?></a></li>
15
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
16
-		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options','xcloner-backup-and-restore')?></a></li>
14
+	<li><a href="#backup_options" class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab.". ".__('Backup Options', 'xcloner-backup-and-restore')?></a></li>
15
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
16
+		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options', 'xcloner-backup-and-restore')?></a></li>
17 17
 	<?php endif?>
18
-	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options','xcloner-backup-and-restore')?></a></li>
19
-	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup','xcloner-backup-and-restore')?></a></li>
20
-	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup','xcloner-backup-and-restore')?></a></li>
18
+	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options', 'xcloner-backup-and-restore')?></a></li>
19
+	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup', 'xcloner-backup-and-restore')?></a></li>
20
+	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup', 'xcloner-backup-and-restore')?></a></li>
21 21
 </ul>
22 22
 
23 23
 <form action="" method="POST" id="generate_backup_form">
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 		        <div class="input-field inline col s12 m10 l6">
29 29
 					<i class="material-icons prefix">input</i>
30 30
 					<input name="backup_name" id="backup_name" type="text" value=<?php echo $xcloner_settings->get_default_backup_name() ?> >
31
-					<label for="backup_name"><?php echo __('Backup Name','xcloner-backup-and-restore')?></label>
31
+					<label for="backup_name"><?php echo __('Backup Name', 'xcloner-backup-and-restore')?></label>
32 32
 				</div>
33 33
 				<div class="hide-on-small-only m2">
34
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('The default backup name, supported tags [time], [hostname], [domain]','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
34
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('The default backup name, supported tags [time], [hostname], [domain]', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
35 35
 				</div>
36 36
 		     </div>
37 37
 		     
38 38
 		     <div class="row">
39 39
 		        <div class="input-field inline col s12 m10 l6">
40 40
 					<i class="material-icons prefix">email</i>
41
-					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email');?>" >
42
-					<label for="email_notification"><?php echo __('Send Email Notification To','xcloner-backup-and-restore')?></label>
41
+					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email'); ?>" >
42
+					<label for="email_notification"><?php echo __('Send Email Notification To', 'xcloner-backup-and-restore')?></label>
43 43
 				</div>
44 44
 				<div class="hide-on-small-only m2">
45
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('If left blank, no notification will be sent','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
45
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('If left blank, no notification will be sent', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
46 46
 				</div>
47 47
 		     </div>
48 48
 		     
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 				<div class="input-field inline col s10 m10 l6">
51 51
 					<i class="material-icons prefix">access_time</i>
52 52
 					<input type="datetime-local" id="diff_start_date" class="datepicker_max_today" name="diff_start_date" >
53
-					<label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After','xcloner-backup-and-restore')?></label>
53
+					<label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After', 'xcloner-backup-and-restore')?></label>
54 54
 				</div>
55 55
 				<div class="hide-on-small-only m2">	
56 56
 					<a class="btn-floating tooltipped btn-small" data-html="true" data-position="center" data-delay="50" 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 class="material-icons">help_outline</i></a>
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 				<div class="input-field col s12 m10 l6">
62 62
 					<i class="material-icons prefix">input</i>
63 63
 					<textarea name="backup_comments" id="backup_comments" class="materialize-textarea"></textarea>
64
-					<label for="backup_comments"><?php echo __('Backup Comments','xcloner-backup-and-restore')?></label>
64
+					<label for="backup_comments"><?php echo __('Backup Comments', 'xcloner-backup-and-restore')?></label>
65 65
 				</div>
66 66
 				<div class="hide-on-small-only m2">
67
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Some default backup comments that will be stored inside the backup archive','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
67
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Some default backup comments that will be stored inside the backup archive', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
68 68
 				</div>
69 69
 		     </div>
70 70
 		     
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 			 </div>
76 76
 		</div>
77 77
 		
78
-		<?php if($xcloner_settings->get_enable_mysql_backup()):?>
78
+		<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
79 79
 		<div id="database_options" class="tab-content">
80 80
 			<h2><?php echo __('Select database data to include in the backup', 'xcloner-backup-and-restore')?>:
81
-				<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" 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');?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
81
+				<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" 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'); ?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
82 82
 			</h2>
83 83
 			
84 84
 			<!-- database/tables tree -->
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
 		<?php endif ?>
99 99
 		
100 100
 		<div id="files_options" class="tab-content">
101
-			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive','xcloner-backup-and-restore')?>:
102
-				<a class="btn-floating tooltipped btn-small" data-position="bottom" data-delay="50" data-html="true" 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');?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
101
+			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive', 'xcloner-backup-and-restore')?>:
102
+				<a class="btn-floating tooltipped btn-small" data-position="bottom" data-delay="50" data-html="true" 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'); ?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
103 103
 			</h2>
104 104
 			
105 105
 			<!-- Files System Container -->
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 					<ul class="backup-status collapsible" data-collapsible="accordion">
128 128
 					    <li class="file-system">
129 129
 						      <div class="collapsible-header">
130
-									<i class="material-icons">folder</i><?php echo __('Scanning The File System...','xcloner-backup-and-restore')?>
130
+									<i class="material-icons">folder</i><?php echo __('Scanning The File System...', 'xcloner-backup-and-restore')?>
131 131
 									
132 132
 									<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>
133 133
 
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
 								</div>	
142 142
 						      <div class="collapsible-body status-body"></div>
143 143
 					    </li>
144
-					    <?php if($xcloner_settings->get_enable_mysql_backup()):?>
144
+					    <?php if ($xcloner_settings->get_enable_mysql_backup()):?>
145 145
 					    <li class="database-backup">
146 146
 						      <div class="collapsible-header">
147
-									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...','xcloner-backup-and-restore')?>
147
+									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...', 'xcloner-backup-and-restore')?>
148 148
 									
149
-									<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>
149
+									<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>
150 150
 									
151 151
 									<div>
152 152
 										<p class="right"><span class="last-logged-table"></span></p>
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
 					    <?php endif?>
171 171
 					    <li class="files-backup">
172 172
 						      <div class="collapsible-header">
173
-									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...','xcloner-backup-and-restore')?>
173
+									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...', 'xcloner-backup-and-restore')?>
174 174
 									
175
-									<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>
175
+									<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>
176 176
 
177 177
 									<div>
178 178
 										<p class="right"><span class="last-logged-file"></span></p>
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 						      <div class="collapsible-body status-body">
186 186
 									<div class="row">
187 187
 										<div class="col l3 s12">
188
-											<h2><?php echo __("Backup Parts",'xcloner-backup-and-restore')?>: </h2>
188
+											<h2><?php echo __("Backup Parts", 'xcloner-backup-and-restore')?>: </h2>
189 189
 										</div>	
190 190
 										<div class="col l9 s12">
191 191
 											<ul class="backup-name"></ul>
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
 					    </li>
196 196
 					    <li class="backup-done">
197 197
 						      <div class="collapsible-header">
198
-									<i class="material-icons">done</i><?php echo __('Backup Done','xcloner-backup-and-restore')?>
198
+									<i class="material-icons">done</i><?php echo __('Backup Done', 'xcloner-backup-and-restore')?>
199 199
 									
200 200
 									<p class="right">
201
-										 <?php if(sizeof($available_storages)):?>
202
-											<a href="#" class="cloud-upload" title="<?php echo __("Send Backup To Remote Storage",'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
201
+										 <?php if (sizeof($available_storages)):?>
202
+											<a href="#" class="cloud-upload" title="<?php echo __("Send Backup To Remote Storage", 'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
203 203
 										 <?php endif?>
204
-										 <a href="#" class="download" title="<?php echo __("Download Backup",'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
205
-										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content",'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
204
+										 <a href="#" class="download" title="<?php echo __("Download Backup", 'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
205
+										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content", 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
206 206
 									</p>
207 207
 									
208 208
 									<div class="progress">
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
 								</div>	
213 213
 						      <div class="collapsible-body center-align">
214 214
 									<div class="row">
215
-										<h5><?php echo __("Thank you for using XCloner.",'xcloner-backup-and-restore')?></h5>
216
-										<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>
215
+										<h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore')?></h5>
216
+										<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>
217 217
 										<a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow @thinkovi</a>
218 218
 										<script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
219 219
 										
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 			<div class="row">
235 235
 				<div id="schedule_backup_success" class="col s12 l6 updated settings-error notice is-dismissible"> 
236 236
 					<p><strong><?php echo __('Schedule Saved', 'xcloner-backup-and-restore')?></strong></p>
237
-					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.','xcloner-backup-and-restore')?></span></button>
237
+					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.', 'xcloner-backup-and-restore')?></span></button>
238 238
 				</div>
239 239
 			</div>
240 240
 			
@@ -248,11 +248,11 @@  discard block
 block discarded – undo
248 248
 			<div class="row">
249 249
 				 <div class="input-field inline col s12 m8 l4">
250 250
 					  <input type="datetime-local" id="datepicker" class="datepicker" name="schedule_start_date" >
251
-					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:','xcloner-backup-and-restore')?></label>
251
+					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:', 'xcloner-backup-and-restore')?></label>
252 252
 				</div>
253 253
 				 <div class="input-field inline col s12 m4 l3">
254 254
 					  <input id="timepicker_ampm_dark" class="timepicker" type="time" name="schedule_start_time">
255
-					  <label for="timepicker_ampm_dark"><?php echo __('At:','xcloner-backup-and-restore')?></label>
255
+					  <label for="timepicker_ampm_dark"><?php echo __('At:', 'xcloner-backup-and-restore')?></label>
256 256
 				</div>
257 257
 			</div>
258 258
 			
@@ -260,17 +260,17 @@  discard block
 block discarded – undo
260 260
 			<div class="row">
261 261
 				<div class="input-field inline col s10 m11 l7">
262 262
 					<select id="backup_type" class="" name="backup_type">
263
-						<option value=""><?php echo __("Full Backup","xcloner-backup-and-restore");?></option>
264
-						<option value="diff"><?php echo __("Differential Backups","xcloner-backup-and-restore");?></option>
265
-						<option value="full_diff"><?php echo __("Full Backup + Differential Backups","xcloner-backup-and-restore");?></option>
263
+						<option value=""><?php echo __("Full Backup", "xcloner-backup-and-restore"); ?></option>
264
+						<option value="diff"><?php echo __("Differential Backups", "xcloner-backup-and-restore"); ?></option>
265
+						<option value="full_diff"><?php echo __("Full Backup + Differential Backups", "xcloner-backup-and-restore"); ?></option>
266 266
 					</select>
267
-					<label for="backup_type"><?php echo __('Scheduled Backup Type','xcloner-backup-and-restore')?></label>
267
+					<label for="backup_type"><?php echo __('Scheduled Backup Type', 'xcloner-backup-and-restore')?></label>
268 268
 				</div>
269 269
 				<div class="col s2 m1">	
270 270
 					<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;'>
271
-						<li><?php echo __("Full Backup = it will generate a full backup of all included files each time schedule runs","xcloner-backup-and-restore");?></li>
272
-						<li><?php echo __("Differentials Backups = backups will include only changed files since the schedule started to run","xcloner-backup-and-restore");?></li>
273
-						<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>
271
+						<li><?php echo __("Full Backup = it will generate a full backup of all included files each time schedule runs", "xcloner-backup-and-restore"); ?></li>
272
+						<li><?php echo __("Differentials Backups = backups will include only changed files since the schedule started to run", "xcloner-backup-and-restore"); ?></li>
273
+						<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>
274 274
 					</ul>"><i class="material-icons">help_outline</i></a>
275 275
 				</div>
276 276
 			</div>	
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 						<?php
283 283
 						$schedules = $xcloner_scheduler->get_available_intervals();
284 284
 						
285
-						foreach($schedules as $key=>$schedule)
285
+						foreach ($schedules as $key=>$schedule)
286 286
 						{
287 287
 						?>
288 288
 							<option value="<?php echo $key?>"><?php echo $schedule['display']?></option>
@@ -294,12 +294,12 @@  discard block
 block discarded – undo
294 294
 				</div>
295 295
 			</div>	
296 296
 			
297
-			<?php if(sizeof($available_storages)):?>
297
+			<?php if (sizeof($available_storages)):?>
298 298
 			<div class="row">
299 299
 				<div class="input-field col s12 m12 l7">
300 300
 					<select name="schedule_storage" id="schedule_storage" class="validate">
301 301
 						<option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option>
302
-						<?php foreach($available_storages as $storage=>$text):?>
302
+						<?php foreach ($available_storages as $storage=>$text):?>
303 303
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
304 304
 						<?php endforeach?>
305 305
 						</select>
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 			<?php endif?>
310 310
 			<div class="row">
311 311
 				<div class="col s12 l7">
312
-					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit" ,'xcloner-backup-and-restore')?>
312
+					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit", 'xcloner-backup-and-restore')?>
313 313
 						<i class="material-icons right">send</i>
314 314
 					</button>
315 315
 				</div>
@@ -328,14 +328,14 @@  discard block
 block discarded – undo
328 328
 		<textarea  class="body" rows="5"></textarea>
329 329
 	</div>
330 330
 	<div class="modal-footer">
331
-		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close','xcloner-backup-and-restore')?></a>
331
+		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close', 'xcloner-backup-and-restore')?></a>
332 332
 	</div>
333 333
 </div>
334 334
 
335 335
 <!-- List Backup Content Modal-->
336 336
 <div id="backup_cotent_modal" class="modal">
337 337
 	<div class="modal-content">
338
-		<h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4>
338
+		<h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4>
339 339
 		<h5 class="backup-name"></h5>
340 340
 		
341 341
 		<div class="progress">
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
 	<form method="POST" class="remote-storage-form">
351 351
 	<input type="hidden" name="file" class="backup_name">	  
352 352
 	<div class="modal-content">
353
-	  <h4><?php echo __("Remote Storage Transfer",'xcloner-backup-and-restore')?></h4>
353
+	  <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore')?></h4>
354 354
 	  <p>
355
-	  <?php if(sizeof($available_storages)):?>
355
+	  <?php if (sizeof($available_storages)):?>
356 356
 			<div class="row">
357 357
 				<div class="col s12 label">
358 358
 					<label><?php echo __(sprintf('Send %s to remote storage', "<span class='backup_name'></span>"), 'xcloner-backup-and-restore') ?></label>
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 				<div class="input-field col s8 m10">
361 361
 					<select name="transfer_storage" id="transfer_storage" class="validate" required >
362 362
 						<option value="" selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option>
363
-						<?php foreach($available_storages as $storage=>$text):?>
363
+						<?php foreach ($available_storages as $storage=>$text):?>
364 364
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
365 365
 						<?php endforeach?>
366 366
 						</select>
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 				</div>
372 372
 			</div>
373 373
 			<div class="row status">
374
-				<?php echo __("Uploading backup to the selected remote storage...",'xcloner-backup-and-restore')?> <span class="status-text"></span>
374
+				<?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore')?> <span class="status-text"></span>
375 375
 				<div class="progress">
376 376
 					<div class="indeterminate"></div>
377 377
 				</div>
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 		}
455 455
 	});
456 456
 	
457
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
457
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
458 458
 	jQuery('#jstree_database_container').jstree({
459 459
 			'core' : {
460 460
 				'check_callback' : true,
Please login to merge, or discard this patch.