@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | |
28 | 28 | // If uninstall not called from WordPress, then exit. |
29 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
29 | +if (!defined('WP_UNINSTALL_PLUGIN')) { |
|
30 | 30 | exit; |
31 | 31 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if(!isset($argv)) |
|
3 | +if (!isset($argv)) |
|
4 | 4 | die('Access denied from web.'); |
5 | 5 | |
6 | 6 | $file = 'restore/vendor.phar'; |
7 | 7 | |
8 | -if(file_exists($file)) |
|
8 | +if (file_exists($file)) |
|
9 | 9 | unlink($file); |
10 | 10 | $phar2 = new Phar($file, 0, 'vendor.phar'); |
11 | 11 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param string $plugin_name The name of the plugin. |
48 | 48 | * @param string $version The version of this plugin. |
49 | 49 | */ |
50 | - public function __construct( $plugin_name, $version ) { |
|
50 | + public function __construct($plugin_name, $version) { |
|
51 | 51 | |
52 | 52 | $this->plugin_name = $plugin_name; |
53 | 53 | $this->version = $version; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * class. |
74 | 74 | */ |
75 | 75 | |
76 | - wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/xcloner-public.css', array(), $this->version, 'all' ); |
|
76 | + wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__).'css/xcloner-public.css', array(), $this->version, 'all'); |
|
77 | 77 | |
78 | 78 | } |
79 | 79 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * class. |
97 | 97 | */ |
98 | 98 | |
99 | - wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/xcloner-public.js', array( 'jquery' ), $this->version, false ); |
|
99 | + wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__).'js/xcloner-public.js', array('jquery'), $this->version, false); |
|
100 | 100 | |
101 | 101 | } |
102 | 102 |
@@ -22,14 +22,14 @@ |
||
22 | 22 | { |
23 | 23 | $path = filter_var($option, FILTER_SANITIZE_URL); |
24 | 24 | |
25 | - try{ |
|
25 | + try { |
|
26 | 26 | $option = Util::normalizePath($path); |
27 | - }catch(Exception $e){ |
|
27 | + }catch (Exception $e) { |
|
28 | 28 | add_settings_error('xcloner_error_message', '', __($e->getMessage()), 'error'); |
29 | 29 | } |
30 | 30 | |
31 | - if($path and !is_dir($path)){ |
|
32 | - add_settings_error('xcloner_error_message', '', __(sprintf('Invalid Server Path %s',$option)), 'error'); |
|
31 | + if ($path and !is_dir($path)) { |
|
32 | + add_settings_error('xcloner_error_message', '', __(sprintf('Invalid Server Path %s', $option)), 'error'); |
|
33 | 33 | return false; |
34 | 34 | } |
35 | 35 |
@@ -35,22 +35,22 @@ discard block |
||
35 | 35 | |
36 | 36 | global $wpdb; |
37 | 37 | |
38 | - if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) |
|
38 | + if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) |
|
39 | 39 | { |
40 | - wp_die('<p>'.sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s"),Xcloner_Activator::xcloner_minimum_version, phpversion()).'</p>', __("XCloner Activation Error"), array( 'response'=>500, 'back_link'=>TRUE ) ); |
|
40 | + wp_die('<p>'.sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s"), Xcloner_Activator::xcloner_minimum_version, phpversion()).'</p>', __("XCloner Activation Error"), array('response'=>500, 'back_link'=>TRUE)); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $charset_collate = $wpdb->get_charset_collate(); |
44 | 44 | |
45 | - $installed_ver = get_option( "xcloner_db_version" ); |
|
45 | + $installed_ver = get_option("xcloner_db_version"); |
|
46 | 46 | |
47 | 47 | $xcloner_db_version = Xcloner_Activator::xcloner_db_version; |
48 | 48 | |
49 | - if($installed_ver != $xcloner_db_version) |
|
49 | + if ($installed_ver != $xcloner_db_version) |
|
50 | 50 | { |
51 | - $table_name = $wpdb->prefix . "xcloner_scheduler"; |
|
51 | + $table_name = $wpdb->prefix."xcloner_scheduler"; |
|
52 | 52 | |
53 | - $xcloner_schedule_sql="CREATE TABLE IF NOT EXISTS `".$table_name."` ( |
|
53 | + $xcloner_schedule_sql = "CREATE TABLE IF NOT EXISTS `".$table_name."` ( |
|
54 | 54 | `id` int(11) NOT NULL AUTO_INCREMENT, |
55 | 55 | `name` varchar(255) NOT NULL, |
56 | 56 | `recurrence` varchar(10) NOT NULL, |
@@ -63,49 +63,49 @@ discard block |
||
63 | 63 | PRIMARY KEY (`id`) |
64 | 64 | ) ".$charset_collate."; |
65 | 65 | "; |
66 | - require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
|
67 | - dbDelta( $xcloner_schedule_sql ); |
|
66 | + require_once(ABSPATH.'wp-admin/includes/upgrade.php'); |
|
67 | + dbDelta($xcloner_schedule_sql); |
|
68 | 68 | |
69 | - update_option( "xcloner_db_version", $xcloner_db_version ); |
|
69 | + update_option("xcloner_db_version", $xcloner_db_version); |
|
70 | 70 | } |
71 | 71 | |
72 | - if(!get_option('xcloner_backup_compression_level')) |
|
72 | + if (!get_option('xcloner_backup_compression_level')) |
|
73 | 73 | update_option('xcloner_backup_compression_level', 0); |
74 | 74 | |
75 | - if(!get_option('xcloner_enable_log')) |
|
75 | + if (!get_option('xcloner_enable_log')) |
|
76 | 76 | update_option('xcloner_enable_log', 1); |
77 | 77 | |
78 | - if(!get_option('xcloner_enable_mysql_backup')) |
|
78 | + if (!get_option('xcloner_enable_mysql_backup')) |
|
79 | 79 | update_option('xcloner_enable_mysql_backup', 1); |
80 | 80 | |
81 | - if(!get_option('xcloner_system_settings_page')) |
|
81 | + if (!get_option('xcloner_system_settings_page')) |
|
82 | 82 | update_option('xcloner_system_settings_page', 100); |
83 | 83 | |
84 | - if(!get_option('xcloner_files_to_process_per_request')) |
|
84 | + if (!get_option('xcloner_files_to_process_per_request')) |
|
85 | 85 | update_option('xcloner_files_to_process_per_request', 250); |
86 | 86 | |
87 | - if(!get_option('xcloner_database_records_per_request')) |
|
87 | + if (!get_option('xcloner_database_records_per_request')) |
|
88 | 88 | update_option('xcloner_database_records_per_request', 10000); |
89 | 89 | |
90 | - if(!get_option('xcloner_exclude_files_larger_than_mb')) |
|
90 | + if (!get_option('xcloner_exclude_files_larger_than_mb')) |
|
91 | 91 | update_option('xcloner_exclude_files_larger_than_mb', 0); |
92 | 92 | |
93 | - if(!get_option('xcloner_split_backup_limit')) |
|
93 | + if (!get_option('xcloner_split_backup_limit')) |
|
94 | 94 | update_option('xcloner_split_backup_limit', 2048); |
95 | 95 | |
96 | - if(!get_option('xcloner_size_limit_per_request')) |
|
96 | + if (!get_option('xcloner_size_limit_per_request')) |
|
97 | 97 | update_option('xcloner_size_limit_per_request', 50); |
98 | 98 | |
99 | - if(!get_option('xcloner_cleanup_retention_limit_days')) |
|
99 | + if (!get_option('xcloner_cleanup_retention_limit_days')) |
|
100 | 100 | update_option('xcloner_cleanup_retention_limit_days', 60); |
101 | 101 | |
102 | - if(!get_option('xcloner_cleanup_retention_limit_archives')) |
|
102 | + if (!get_option('xcloner_cleanup_retention_limit_archives')) |
|
103 | 103 | update_option('xcloner_cleanup_retention_limit_archives', 100); |
104 | 104 | |
105 | - if(!get_option('xcloner_directories_to_scan_per_request')) |
|
105 | + if (!get_option('xcloner_directories_to_scan_per_request')) |
|
106 | 106 | update_option('xcloner_directories_to_scan_per_request', 25); |
107 | 107 | |
108 | - if(!get_option('xcloner_regex_exclude')) |
|
108 | + if (!get_option('xcloner_regex_exclude')) |
|
109 | 109 | update_option('xcloner_regex_exclude', "(wp-content\/updraft|wp-content\/uploads\/wp_all_backup)(.*)$".PHP_EOL."(.*)\.(svn|git)(.*)$".PHP_EOL."wp-content\/cache(.*)$"); |
110 | 110 | |
111 | 111 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @since 1.0.0 |
31 | 31 | */ |
32 | 32 | public static function deactivate() { |
33 | - if(class_exists('Xcloner_Scheduler')) |
|
33 | + if (class_exists('Xcloner_Scheduler')) |
|
34 | 34 | { |
35 | 35 | $xcloner_scheduler = new Xcloner_Scheduler(); |
36 | 36 | $xcloner_scheduler->deactivate_wp_cron_hooks(); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | load_plugin_textdomain( |
38 | 38 | 'xcloner-backup-and-restore', |
39 | 39 | false, |
40 | - dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' |
|
40 | + dirname(dirname(plugin_basename(__FILE__))).'/languages/' |
|
41 | 41 | ); |
42 | 42 | |
43 | 43 | } |
@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | */ |
27 | 27 | |
28 | 28 | // If this file is called directly, abort. |
29 | -if ( ! defined( 'WPINC' ) ) { |
|
29 | +if (!defined('WPINC')) { |
|
30 | 30 | die; |
31 | 31 | } |
32 | 32 | |
33 | 33 | //i will not load the plugin outside admin or cron |
34 | -if(!is_admin() and !defined('DOING_CRON')) |
|
34 | +if (!is_admin() and !defined('DOING_CRON')) |
|
35 | 35 | return; |
36 | 36 | |
37 | 37 | define("DS", DIRECTORY_SEPARATOR); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | function activate_xcloner() |
44 | 44 | { |
45 | - require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php'; |
|
45 | + require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php'; |
|
46 | 46 | Xcloner_Activator::activate(); |
47 | 47 | } |
48 | 48 | |
@@ -52,31 +52,31 @@ discard block |
||
52 | 52 | */ |
53 | 53 | function deactivate_xcloner() |
54 | 54 | { |
55 | - require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php'; |
|
55 | + require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php'; |
|
56 | 56 | Xcloner_Deactivator::deactivate(); |
57 | 57 | } |
58 | 58 | |
59 | -register_activation_hook( __FILE__, 'activate_xcloner' ); |
|
60 | -register_deactivation_hook( __FILE__, 'deactivate_xcloner' ); |
|
59 | +register_activation_hook(__FILE__, 'activate_xcloner'); |
|
60 | +register_deactivation_hook(__FILE__, 'deactivate_xcloner'); |
|
61 | 61 | |
62 | -require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php'; |
|
62 | +require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php'; |
|
63 | 63 | |
64 | -if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) |
|
64 | +if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) |
|
65 | 65 | { |
66 | 66 | ?> |
67 | 67 | <div class="error notice"> |
68 | - <p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."),Xcloner_Activator::xcloner_minimum_version, phpversion())?></p> |
|
68 | + <p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."), Xcloner_Activator::xcloner_minimum_version, phpversion())?></p> |
|
69 | 69 | </div> |
70 | 70 | <?php |
71 | - require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
|
72 | - deactivate_plugins( plugin_basename( __FILE__ ) ); |
|
71 | + require_once(ABSPATH.'wp-admin/includes/plugin.php'); |
|
72 | + deactivate_plugins(plugin_basename(__FILE__)); |
|
73 | 73 | return; |
74 | 74 | } |
75 | 75 | |
76 | -$db_installed_ver = get_option( "xcloner_db_version" ); |
|
76 | +$db_installed_ver = get_option("xcloner_db_version"); |
|
77 | 77 | $xcloner_db_version = Xcloner_Activator::xcloner_db_version; |
78 | 78 | |
79 | -if($db_installed_ver != $xcloner_db_version) |
|
79 | +if ($db_installed_ver != $xcloner_db_version) |
|
80 | 80 | { |
81 | 81 | Xcloner_Activator::activate(); |
82 | 82 | } |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | wp_deregister_script('heartbeat'); |
92 | 92 | } |
93 | 93 | |
94 | -if(isset($_GET['page']) and stristr($_GET['page'] , "xcloner_")) |
|
94 | +if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_")) |
|
95 | 95 | { |
96 | - add_action( 'init', 'stop_heartbeat', 1 ); |
|
96 | + add_action('init', 'stop_heartbeat', 1); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | function xcloner_display() |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | $page = sanitize_key($_GET['page']); |
107 | 107 | $plugin = new Xcloner(); |
108 | - if($page) |
|
108 | + if ($page) |
|
109 | 109 | { |
110 | 110 | $plugin->display($page); |
111 | 111 | } |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | |
131 | 131 | } |
132 | 132 | |
133 | -require_once(plugin_dir_path( __FILE__ ) . '/vendor/autoload.php'); |
|
134 | -require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php'; |
|
133 | +require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php'); |
|
134 | +require plugin_dir_path(__FILE__).'includes/class-xcloner.php'; |
|
135 | 135 | |
136 | -try{ |
|
136 | +try { |
|
137 | 137 | run_xcloner(); |
138 | -}catch(Exception $e) |
|
138 | +}catch (Exception $e) |
|
139 | 139 | { |
140 | 140 | echo $e->getMessage(); |
141 | 141 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$xcloner_file_system = new Xcloner_File_System(); |
|
3 | +$xcloner_file_system = new Xcloner_File_System(); |
|
4 | 4 | |
5 | 5 | $backup_list = $xcloner_file_system->get_backup_archives_list(); |
6 | 6 | |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | <label for="select_all"> </label> |
20 | 20 | </p> |
21 | 21 | </th> |
22 | - <th data-field="id"><?php echo __("Backup Name",'xcloner-backup-and-restore')?></th> |
|
23 | - <th data-field="name"><?php echo __("Created Time",'xcloner-backup-and-restore')?></th> |
|
24 | - <th data-field="name"><?php echo __("Size",'xcloner-backup-and-restore')?></th> |
|
25 | - <th class="no-sort" data-field="price"><?php echo __("Action",'xcloner-backup-and-restore')?></th> |
|
22 | + <th data-field="id"><?php echo __("Backup Name", 'xcloner-backup-and-restore')?></th> |
|
23 | + <th data-field="name"><?php echo __("Created Time", 'xcloner-backup-and-restore')?></th> |
|
24 | + <th data-field="name"><?php echo __("Size", 'xcloner-backup-and-restore')?></th> |
|
25 | + <th class="no-sort" data-field="price"><?php echo __("Action", 'xcloner-backup-and-restore')?></th> |
|
26 | 26 | |
27 | 27 | </tr> |
28 | 28 | </thead> |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | |
33 | 33 | <?php |
34 | 34 | $i = 0; |
35 | -foreach($backup_list as $file_info):?> |
|
36 | -<?php if(!isset($file_info['parent'])):?> |
|
35 | +foreach ($backup_list as $file_info):?> |
|
36 | +<?php if (!isset($file_info['parent'])):?> |
|
37 | 37 | |
38 | 38 | <tr> |
39 | 39 | <td class="checkbox"> |
@@ -45,31 +45,31 @@ discard block |
||
45 | 45 | <td> |
46 | 46 | <?php echo $file_info['path']?> |
47 | 47 | <?php |
48 | - if(isset($file_info['childs']) and is_array($file_info['childs'])): |
|
48 | + if (isset($file_info['childs']) and is_array($file_info['childs'])): |
|
49 | 49 | ?> |
50 | 50 | <a href="#" title="expand" class="expand-multipart add"><i class="material-icons">add</i></a> |
51 | 51 | <a href="#" title="collapse" class="expand-multipart remove"><i class="material-icons">remove</i></a> |
52 | 52 | <ul class="multipart"> |
53 | - <?php foreach($file_info['childs'] as $child):?> |
|
53 | + <?php foreach ($file_info['childs'] as $child):?> |
|
54 | 54 | <?php #$download_file .= "|".$child[0];?> |
55 | 55 | <li> |
56 | 56 | <?php echo $child[0]?> (<?php echo size_format($child[2])?>) |
57 | - <a href="#<?php echo $child[0];?>" class="download" title="Download Backup"><i class="material-icons">file_download</i></a> |
|
58 | - <a href="#<?php echo $child[0]?>" class="list-backup-content" title="<?php echo __('List Backup Content','xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> |
|
57 | + <a href="#<?php echo $child[0]; ?>" class="download" title="Download Backup"><i class="material-icons">file_download</i></a> |
|
58 | + <a href="#<?php echo $child[0]?>" class="list-backup-content" title="<?php echo __('List Backup Content', 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> |
|
59 | 59 | </li> |
60 | - <?php endforeach;?> |
|
60 | + <?php endforeach; ?> |
|
61 | 61 | </ul> |
62 | - <?php endif;?> |
|
62 | + <?php endif; ?> |
|
63 | 63 | </td> |
64 | 64 | <td><?php echo date("d M, Y H:i", $file_info['timestamp'])?></td> |
65 | 65 | <td><?php echo size_format($file_info['size'])?></td> |
66 | 66 | <td> |
67 | - <a href="#<?php echo $file_info['path'];?>" class="download" title="<?php echo __('Download Backup','xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a> |
|
68 | - <?php if(sizeof($available_storages)):?> |
|
69 | - <a href="#<?php echo $file_info['path']?>" class="cloud-upload" title="<?php echo __('Send Backup To Remote Storage','xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a> |
|
67 | + <a href="#<?php echo $file_info['path']; ?>" class="download" title="<?php echo __('Download Backup', 'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a> |
|
68 | + <?php if (sizeof($available_storages)):?> |
|
69 | + <a href="#<?php echo $file_info['path']?>" class="cloud-upload" title="<?php echo __('Send Backup To Remote Storage', 'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a> |
|
70 | 70 | <?php endif?> |
71 | - <a href="#<?php echo $file_info['path']?>" class="list-backup-content" title="<?php echo __('List Backup Content','xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> |
|
72 | - <a href="#<?php echo $file_info['path']?>" class="delete" title="<?php echo __('Delete Backup','xcloner-backup-and-restore')?>"><i class="material-icons">delete</i></a> |
|
71 | + <a href="#<?php echo $file_info['path']?>" class="list-backup-content" title="<?php echo __('List Backup Content', 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> |
|
72 | + <a href="#<?php echo $file_info['path']?>" class="delete" title="<?php echo __('Delete Backup', 'xcloner-backup-and-restore')?>"><i class="material-icons">delete</i></a> |
|
73 | 73 | </td> |
74 | 74 | |
75 | 75 | </tr> |
@@ -80,13 +80,13 @@ discard block |
||
80 | 80 | </tbody> |
81 | 81 | </table> |
82 | 82 | |
83 | -<a class="waves-effect waves-light btn delete-all"><i class="material-icons left">delete</i><?php echo __("Delete",'xcloner-backup-and-restore')?></a> |
|
83 | +<a class="waves-effect waves-light btn delete-all"><i class="material-icons left">delete</i><?php echo __("Delete", 'xcloner-backup-and-restore')?></a> |
|
84 | 84 | |
85 | 85 | <!-- List Backup Content Modal--> |
86 | 86 | |
87 | 87 | <div id="backup_cotent_modal" class="modal"> |
88 | 88 | <div class="modal-content"> |
89 | - <h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4> |
|
89 | + <h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4> |
|
90 | 90 | <h5 class="backup-name"></h5> |
91 | 91 | |
92 | 92 | <div class="progress"> |
@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | <form method="POST" class="remote-storage-form"> |
102 | 102 | <input type="hidden" name="file" class="backup_name"> |
103 | 103 | <div class="modal-content"> |
104 | - <h4><?php echo __("Remote Storage Transfer",'xcloner-backup-and-restore')?></h4> |
|
104 | + <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore')?></h4> |
|
105 | 105 | <p> |
106 | - <?php if(sizeof($available_storages)):?> |
|
106 | + <?php if (sizeof($available_storages)):?> |
|
107 | 107 | <div class="row"> |
108 | 108 | <div class="col s12 label"> |
109 | - <label><?php echo sprintf(__('Send %s to remote storage','xcloner-backup-and-restore'), "<span class='backup_name'></span>") ?></label> |
|
109 | + <label><?php echo sprintf(__('Send %s to remote storage', 'xcloner-backup-and-restore'), "<span class='backup_name'></span>") ?></label> |
|
110 | 110 | </div> |
111 | 111 | <div class="input-field col s8 m10"> |
112 | 112 | <select name="transfer_storage" id="transfer_storage" class="validate" required > |
113 | 113 | <option value="" selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option> |
114 | - <?php foreach($available_storages as $storage=>$text):?> |
|
114 | + <?php foreach ($available_storages as $storage=>$text):?> |
|
115 | 115 | <option value="<?php echo $storage?>"><?php echo $text?></option> |
116 | 116 | <?php endforeach?> |
117 | 117 | </select> |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | </div> |
123 | 123 | </div> |
124 | 124 | <div class="row status"> |
125 | - <?php echo __("Uploading backup to the selected remote storage...",'xcloner-backup-and-restore')?> <span class="status-text"></span> |
|
125 | + <?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore')?> <span class="status-text"></span> |
|
126 | 126 | <div class="progress"> |
127 | 127 | <div class="indeterminate"></div> |
128 | 128 | </div> |