PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 1.3.0
Backup Migration v1.3.0
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / includes / dashboard / chapter / store_config.php
backup-backup / includes / dashboard / chapter Last commit date
AA-Template.php 2 years ago other_config.php 2 years ago save-button.php 2 years ago staging.php 2 years ago store_config.php 2 years ago troubleshooting.php 2 years ago what_backed_up.php 2 years ago where_config.php 2 years ago
store_config.php
160 lines
1 <?php
2
3 // Namespace
4 namespace BMI\Plugin\Dashboard;
5
6 // Exit on direct access
7 if (!defined('ABSPATH')) exit;
8
9 $urlparts = parse_url(home_url());
10 $domain = $urlparts['host'];
11
12 ?>
13
14 <div class="mm mt mb">
15
16 <div class="lh30">
17 <div class="f20 semibold"><?php _e("File name", 'backup-backup'); ?></div>
18 <div class="f20"><?php _e("Your backup(s) will be given the following file name(s)", 'backup-backup'); ?></div>
19 </div>
20
21 <div class="center mtl f18">
22 <div class="">
23 <input type="text" id="backup_filename" class="bmi-text-input" value="<?php echo sanitize_text_field(bmi_get_config('BACKUP:NAME')); ?>">
24 <span class="oll mrr">.zip </span><a href="#" id="show-format-tip" class="nodec secondary hoverable"><?php _e("Huh? Explain this please", 'backup-backup'); ?></a>
25 </div>
26 </div>
27
28 </div>
29
30 <div class="mm lh30 f16 bg-second mtl mbl" id="format-tip-wrp" style="display: none;">
31
32 <div class="lh30 f18">
33 <?php _e("We’re giving you maximum flexibility to automatically name your backup files in the way you want. Simply use below keys:", 'backup-backup'); ?>
34 </div>
35 <div class="mm mtl">
36 <div class="format-entry"><b>%Y</b> = <?php _e("A full numeric representation of a year, 4 digits", 'backup-backup'); ?></div>
37 <div class="format-entry"><b>%M</b> = <?php _e("A short textual representation of a month, three letters", 'backup-backup'); ?></div>
38 <div class="format-entry"><b>%D</b> = <?php _e("A textual representation of a day, three letters", 'backup-backup'); ?></div>
39 <div class="format-entry"><b>%d</b> = <?php _e("Day of the month, 2 digits with leading zeros", 'backup-backup'); ?></div>
40 <div class="format-entry"><b>%j</b> = <?php _e("Day of the month without leading zeros", 'backup-backup'); ?></div>
41 <div class="format-entry"><b>%m</b> = <?php _e("Numeric representation of a month, with leading zeros", 'backup-backup'); ?></div>
42 <div class="format-entry"><b>%n</b> = <?php _e("Numeric representation of a month, without leading zeros", 'backup-backup'); ?></div>
43 <div class="format-entry"><b>%Y</b> = <?php _e("A full numeric representation of a year, 4 digits", 'backup-backup'); ?></div>
44 <div class="format-entry"><b>%y</b> = <?php _e("A two digit representation of a year", 'backup-backup'); ?></div>
45 <div class="format-entry"><b>%a</b> = <?php _e("Lowercase Ante meridiem and Post meridiem", 'backup-backup'); ?></div>
46 <div class="format-entry"><b>%A</b> = <?php _e("Uppercase Ante meridiem and Post meridiem", 'backup-backup'); ?></div>
47 <div class="format-entry"><b>%B</b> = <?php _e("Swatch Internet time", 'backup-backup'); ?></div>
48 <div class="format-entry"><b>%g</b> = <?php _e("12-hour format of an hour without leading zeros", 'backup-backup'); ?></div>
49 <div class="format-entry"><b>%G</b> = <?php _e("24-hour format of an hour without leading zeros", 'backup-backup'); ?></div>
50 <div class="format-entry"><b>%h</b> = <?php _e("12-hour format of an hour with leading zeros", 'backup-backup'); ?></div>
51 <div class="format-entry"><b>%H</b> = <?php _e("24-hour format of an hour with leading zeros", 'backup-backup'); ?></div>
52 <div class="format-entry"><b>%i</b> = <?php _e("Minutes with leading zeros", 'backup-backup'); ?></div>
53 <div class="format-entry"><b>%s</b> = <?php _e("Seconds with leading zeros", 'backup-backup'); ?></div>
54 <div class="format-entry"><b>%hash</b> = <?php _e("16 character random hash", 'backup-backup'); ?></div>
55 <div class="format-entry"><b>%domain</b> = <?php _e("Current domain name of the website.", 'backup-backup'); ?><?php echo " (" . str_replace('.', '-', sanitize_text_field($domain)) . ") "; ?></div>
56 </div>
57 <div class="right-align">
58 <a href="#" class="hoverable nodec secondary" id="hide-format-tip"><?php _e("Hide", 'backup-backup'); ?></a>
59 </div>
60
61 </div>
62
63 <div class="mm mb">
64
65 <div class="lh30">
66 <div class="f20 semibold"><?php _e("Zipping", 'backup-backup'); ?></div>
67 <div class="f20"><?php _e("Please select the compression method of your backup files:", 'backup-backup'); ?></div>
68 </div>
69
70 <table class="f20 mtl">
71 <tbody>
72 <tr>
73
74 <td>
75 <div class="lh30">
76
77 <div class="mbll">
78 <label class="container-radio">
79 Zip
80 <input type="radio" name="smart_exclusion_db" value="false" checked>
81 <span class="checkmark-radio"></span>
82 </label>
83 </div>
84
85 <div class="mbll">
86 <span class="cf premium-wrapper">
87 <label class="left container-radio ml25 not-allowed">
88 Tar
89 <input type="radio" disabled name="smart_exclusion_db" value="true">
90 <span class="checkmark-radio"></span>
91 </label>
92 <span class="left premium premium-img premium-nt"></span>
93 </span>
94 </div>
95
96 <div class="">
97 <span class="cf premium-wrapper">
98 <label class="left container-radio ml25 not-allowed">
99 Tar GZip
100 <input type="radio" disabled name="smart_exclusion_db" value="true">
101 <span class="checkmark-radio"></span>
102 </label>
103 <span class="left premium premium-img premium-nt"></span>
104 </span>
105 </div>
106
107 </div>
108 </td>
109
110 <td>
111 <div class="f16 mw850 bol lh30">
112 <i><?php _e('“ZIP” is the standard choice (compression level 1). Use “Tar” (compression level 2) or Tar.gz (compression level 5) if you want to have more compression (i.e. smaller file sizes). However, this will also put more load on the backup creation.', 'backup-backup'); ?></i>
113 </div>
114 </td>
115
116 </tr>
117 </tbody>
118 </table>
119
120 </div>
121
122 <div class="mm mt mb overlayed">
123
124 <?php include BMI_INCLUDES . '/dashboard/templates/premium-overlay.php'; ?>
125
126 <div class="">
127 <div class="lh30">
128 <div class="f20 semibold">
129 <span class="cf premium-wrapper">
130 <div class="left"><?php _e("Encryption", 'backup-backup'); ?></div>
131 <span class="left premium premium-img"></span>
132 </span>
133 </div>
134 <div class="f20"><?php _e("Do you want to encrypt and password protect your files?", 'backup-backup'); ?></div>
135 </div>
136
137 <div class="mtl">
138 <div class="left d-flex mr60 ia-center">
139 <label class="container-radio">
140 <?php _e("No", 'backup-backup'); ?>
141 <input type="radio" name="" value="false" checked>
142 <span class="checkmark-radio"></span>
143 </label>
144 <label class="left container-radio ml25 not-allowed">
145 <?php _e("Yes", 'backup-backup'); ?>
146 <input type="radio" disabled name="" value="true">
147 <span class="checkmark-radio"></span>
148 </label>
149 </div>
150 </div>
151 </div>
152
153 </div>
154
155 <div class="mm f16 mtl mbl">
156 <i><?php _e("For other security settings, e.g. who can access your backup directories, please go to the", 'backup-backup'); ?> <a href="#" class="hoverable secondary nodec collapser-openner" data-el="#other-options"><?php _e("Other options", 'backup-backup'); ?></a> <?php _e("chapter.", 'backup-backup'); ?></i>
157 </div>
158
159 <?php include BMI_INCLUDES . '/dashboard/chapter/save-button.php'; ?>
160