|
@@ -28,21 +28,21 @@ discard block |
|
|
block discarded – undo |
|
28
|
28
|
?> |
|
29
|
29
|
|
|
30
|
30
|
<div class="section loading" id="shareAPI"> |
|
31
|
|
- <h2><?php p($l->t('Sharing'));?></h2> |
|
|
31
|
+ <h2><?php p($l->t('Sharing')); ?></h2> |
|
32
|
32
|
<?php if ($_['sharingAppEnabled'] === false) { ?> |
|
33
|
33
|
<p class="warning"><?php p($l->t('You need to enable the File sharing App.')); ?></p> |
|
34
|
34
|
<?php } else { ?> |
|
35
|
35
|
<a target="_blank" rel="noreferrer noopener" class="icon-info" |
|
36
|
|
- title="<?php p($l->t('Open documentation'));?>" |
|
|
36
|
+ title="<?php p($l->t('Open documentation')); ?>" |
|
37
|
37
|
href="<?php p(link_to_docs('admin-sharing')); ?>"></a> |
|
38
|
38
|
<div> |
|
39
|
|
- <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.'));?></p> |
|
|
39
|
+ <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.')); ?></p> |
|
40
|
40
|
<p id="enable"> |
|
41
|
41
|
<input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox" |
|
42
|
42
|
value="1" <?php if ($_['shareAPIEnabled'] === 'yes') { |
|
43
|
43
|
print_unescaped('checked="checked"'); |
|
44
|
44
|
} ?> /> |
|
45
|
|
- <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/> |
|
|
45
|
+ <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API')); ?></label><br/> |
|
46
|
46
|
</p> |
|
47
|
47
|
|
|
48
|
48
|
<p id="internalShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
|
@@ -52,12 +52,12 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') { |
|
53
|
53
|
print_unescaped('checked="checked"'); |
|
54
|
54
|
} ?> /> |
|
55
|
|
- <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares'));?></label><br/> |
|
|
55
|
+ <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares')); ?></label><br/> |
|
56
|
56
|
</p> |
|
57
|
57
|
<p id="setDefaultInternalExpireDate" class="double-indent <?php if ($_['shareDefaultInternalExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
|
58
|
58
|
p('hidden'); |
|
59
|
59
|
}?>"> |
|
60
|
|
- <?php p($l->t('Expire after') . ' '); ?> |
|
|
60
|
+ <?php p($l->t('Expire after').' '); ?> |
|
61
|
61
|
<input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>" |
|
62
|
62
|
value='<?php p($_['shareInternalExpireAfterNDays']) ?>' /> |
|
63
|
63
|
<?php p($l->t('day(s)')); ?> |
|
@@ -65,7 +65,7 @@ discard block |
|
|
block discarded – undo |
|
65
|
65
|
value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') { |
|
66
|
66
|
print_unescaped('checked="checked"'); |
|
67
|
67
|
} ?> /> |
|
68
|
|
- <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
|
68
|
+ <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
69
|
69
|
</p> |
|
70
|
70
|
|
|
71
|
71
|
<p id="remoteShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
|
@@ -75,12 +75,12 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
value="1" <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'yes') { |
|
76
|
76
|
print_unescaped('checked="checked"'); |
|
77
|
77
|
} ?> /> |
|
78
|
|
- <label for="shareapiDefaultRemoteExpireDate"><?php p($l->t('Set default expiration date for shares to other servers'));?></label><br/> |
|
|
78
|
+ <label for="shareapiDefaultRemoteExpireDate"><?php p($l->t('Set default expiration date for shares to other servers')); ?></label><br/> |
|
79
|
79
|
</p> |
|
80
|
80
|
<p id="setDefaultRemoteExpireDate" class="double-indent <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
|
81
|
81
|
p('hidden'); |
|
82
|
82
|
}?>"> |
|
83
|
|
- <?php p($l->t('Expire after'). ' '); ?> |
|
|
83
|
+ <?php p($l->t('Expire after').' '); ?> |
|
84
|
84
|
<input type="text" name='shareapi_remote_expire_after_n_days' id="shareapiRemoteExpireAfterNDays" placeholder="<?php p('7')?>" |
|
85
|
85
|
value='<?php p($_['shareRemoteExpireAfterNDays']) ?>' /> |
|
86
|
86
|
<?php p($l->t('day(s)')); ?> |
|
@@ -88,7 +88,7 @@ discard block |
|
|
block discarded – undo |
|
88
|
88
|
value="1" <?php if ($_['shareRemoteEnforceExpireDate'] === 'yes') { |
|
89
|
89
|
print_unescaped('checked="checked"'); |
|
90
|
90
|
} ?> /> |
|
91
|
|
- <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
|
91
|
+ <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
92
|
92
|
</p> |
|
93
|
93
|
|
|
94
|
94
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
|
@@ -98,7 +98,7 @@ discard block |
|
|
block discarded – undo |
|
98
|
98
|
value="1" <?php if ($_['allowLinks'] === 'yes') { |
|
99
|
99
|
print_unescaped('checked="checked"'); |
|
100
|
100
|
} ?> /> |
|
101
|
|
- <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails'));?></label><br/> |
|
|
101
|
+ <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails')); ?></label><br/> |
|
102
|
102
|
</p> |
|
103
|
103
|
|
|
104
|
104
|
<p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') { |
|
@@ -108,23 +108,23 @@ discard block |
|
|
block discarded – undo |
|
108
|
108
|
value="1" <?php if ($_['allowPublicUpload'] == 'yes') { |
|
109
|
109
|
print_unescaped('checked="checked"'); |
|
110
|
110
|
} ?> /> |
|
111
|
|
- <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/> |
|
|
111
|
+ <label for="allowPublicUpload"><?php p($l->t('Allow public uploads')); ?></label><br/> |
|
112
|
112
|
<input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox" |
|
113
|
113
|
value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') { |
|
114
|
114
|
print_unescaped('checked="checked"'); |
|
115
|
115
|
} ?> /> |
|
116
|
|
- <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/> |
|
|
116
|
+ <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password')); ?></label><br/> |
|
117
|
117
|
<input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox" |
|
118
|
118
|
value="1" <?php if ($_['enforceLinkPassword']) { |
|
119
|
119
|
print_unescaped('checked="checked"'); |
|
120
|
120
|
} ?> <?php if ($_['enableLinkPasswordByDefault'] !== 'yes') { |
|
121
|
121
|
print_unescaped('disabled'); |
|
122
|
122
|
} ?> /> |
|
123
|
|
- <label for="enforceLinkPassword" class="indent"><?php p($l->t('Enforce password protection'));?></label><br/> |
|
|
123
|
+ <label for="enforceLinkPassword" class="indent"><?php p($l->t('Enforce password protection')); ?></label><br/> |
|
124
|
124
|
|
|
125
|
125
|
<?php if ($_['passwordExcludedGroupsFeatureEnabled']) { ?> |
|
126
|
126
|
<span id="selectPasswordsExcludedGroups" class="double-indent <?php if (!$_['enforceLinkPassword']) { p('hidden'); } ?>"> |
|
127
|
|
- <label for="shareapi_enforce_links_password_excluded_groups"><?php p($l->t('Exclude groups from password requirements:'));?></label><br/> |
|
|
127
|
+ <label for="shareapi_enforce_links_password_excluded_groups"><?php p($l->t('Exclude groups from password requirements:')); ?></label><br/> |
|
128
|
128
|
<input name="shareapi_enforce_links_password_excluded_groups" id="passwordsExcludedGroups" value="<?php p($_['passwordExcludedGroups']) ?>" |
|
129
|
129
|
style="width: 400px" class="noJSAutoUpdate double-indent" <?php if ($_['enableLinkPasswordByDefault'] !== 'yes') { |
|
130
|
130
|
print_unescaped('disabled'); |
|
@@ -136,13 +136,13 @@ discard block |
|
|
block discarded – undo |
|
136
|
136
|
value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') { |
|
137
|
137
|
print_unescaped('checked="checked"'); |
|
138
|
138
|
} ?> /> |
|
139
|
|
- <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/> |
|
|
139
|
+ <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date')); ?></label><br/> |
|
140
|
140
|
|
|
141
|
141
|
</p> |
|
142
|
142
|
<p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
|
143
|
143
|
p('hidden'); |
|
144
|
144
|
}?>"> |
|
145
|
|
- <?php p($l->t('Expire after'). ' '); ?> |
|
|
145
|
+ <?php p($l->t('Expire after').' '); ?> |
|
146
|
146
|
<input type="text" name='shareapi_expire_after_n_days' id="shareapiExpireAfterNDays" placeholder="<?php p('7')?>" |
|
147
|
147
|
value='<?php p($_['shareExpireAfterNDays']) ?>' /> |
|
148
|
148
|
<?php p($l->t('day(s)')); ?> |
|
@@ -150,13 +150,13 @@ discard block |
|
|
block discarded – undo |
|
150
|
150
|
value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') { |
|
151
|
151
|
print_unescaped('checked="checked"'); |
|
152
|
152
|
} ?> /> |
|
153
|
|
- <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
|
153
|
+ <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
154
|
154
|
</p> |
|
155
|
155
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
|
156
|
156
|
p('hidden'); |
|
157
|
157
|
}?>"> |
|
158
|
158
|
<p class="indent"> |
|
159
|
|
- <?php p($l->t('Exclude groups from creating link shares:'));?> |
|
|
159
|
+ <?php p($l->t('Exclude groups from creating link shares:')); ?> |
|
160
|
160
|
</p> |
|
161
|
161
|
<p id="selectLinksExcludedGroups" class="indent <?php if ($_['allowLinks'] === 'no') { |
|
162
|
162
|
p('hidden'); |
|
@@ -167,7 +167,7 @@ discard block |
|
|
block discarded – undo |
|
167
|
167
|
value="1" <?php if ($_['allowResharing'] === 'yes') { |
|
168
|
168
|
print_unescaped('checked="checked"'); |
|
169
|
169
|
} ?> /> |
|
170
|
|
- <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> |
|
|
170
|
+ <label for="allowResharing"><?php p($l->t('Allow resharing')); ?></label><br/> |
|
171
|
171
|
</p> |
|
172
|
172
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
|
173
|
173
|
p('hidden'); |
|
@@ -176,7 +176,7 @@ discard block |
|
|
block discarded – undo |
|
176
|
176
|
value="1" <?php if ($_['allowGroupSharing'] === 'yes') { |
|
177
|
177
|
print_unescaped('checked="checked"'); |
|
178
|
178
|
} ?> /> |
|
179
|
|
- <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br /> |
|
|
179
|
+ <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups')); ?></label><br /> |
|
180
|
180
|
</p> |
|
181
|
181
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
|
182
|
182
|
p('hidden'); |
|
@@ -185,7 +185,7 @@ discard block |
|
|
block discarded – undo |
|
185
|
185
|
value="1" <?php if ($_['onlyShareWithGroupMembers']) { |
|
186
|
186
|
print_unescaped('checked="checked"'); |
|
187
|
187
|
} ?> /> |
|
188
|
|
- <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/> |
|
|
188
|
+ <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups')); ?></label><br/> |
|
189
|
189
|
</p> |
|
190
|
190
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
|
191
|
191
|
p('hidden'); |
|
@@ -194,7 +194,7 @@ discard block |
|
|
block discarded – undo |
|
194
|
194
|
value="1" <?php if ($_['shareExcludeGroups']) { |
|
195
|
195
|
print_unescaped('checked="checked"'); |
|
196
|
196
|
} ?> /> |
|
197
|
|
- <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/> |
|
|
197
|
+ <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing')); ?></label><br/> |
|
198
|
198
|
</p> |
|
199
|
199
|
<p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') { |
|
200
|
200
|
p('hidden'); |
|
@@ -211,7 +211,7 @@ discard block |
|
|
block discarded – undo |
|
211
|
211
|
<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') { |
|
212
|
212
|
print_unescaped('checked="checked"'); |
|
213
|
213
|
} ?> /> |
|
214
|
|
- <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog and allow access to the system address book'));?></label><br /> |
|
|
214
|
+ <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog and allow access to the system address book')); ?></label><br /> |
|
215
|
215
|
</p> |
|
216
|
216
|
|
|
217
|
217
|
<p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
|
@@ -221,7 +221,7 @@ discard block |
|
|
block discarded – undo |
|
221
|
221
|
<?php if ($_['restrictUserEnumerationToGroup'] === 'yes') { |
|
222
|
222
|
print_unescaped('checked="checked"'); |
|
223
|
223
|
} ?> /> |
|
224
|
|
- <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups and limit system address books to users in the same groups'));?></label><br /> |
|
|
224
|
+ <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups and limit system address books to users in the same groups')); ?></label><br /> |
|
225
|
225
|
</p> |
|
226
|
226
|
|
|
227
|
227
|
<p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
|
@@ -231,12 +231,12 @@ discard block |
|
|
block discarded – undo |
|
231
|
231
|
<?php if ($_['restrictUserEnumerationToPhone'] === 'yes') { |
|
232
|
232
|
print_unescaped('checked="checked"'); |
|
233
|
233
|
} ?> /> |
|
234
|
|
- <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration'));?></label><br /> |
|
|
234
|
+ <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration')); ?></label><br /> |
|
235
|
235
|
</p> |
|
236
|
236
|
<p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
|
237
|
237
|
p('hidden'); |
|
238
|
238
|
}?>"> |
|
239
|
|
- <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.'));?></em><br /> |
|
|
239
|
+ <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.')); ?></em><br /> |
|
240
|
240
|
</p> |
|
241
|
241
|
<p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
|
242
|
242
|
p('hidden'); |
|
@@ -245,7 +245,7 @@ discard block |
|
|
block discarded – undo |
|
245
|
245
|
<?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') { |
|
246
|
246
|
print_unescaped('checked="checked"'); |
|
247
|
247
|
} ?> /> |
|
248
|
|
- <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)'));?></label><br /> |
|
|
248
|
+ <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)')); ?></label><br /> |
|
249
|
249
|
</p> |
|
250
|
250
|
|
|
251
|
251
|
<p> |
|
@@ -253,7 +253,7 @@ discard block |
|
|
block discarded – undo |
|
253
|
253
|
<?php if ($_['publicShareDisclaimerText'] !== null) { |
|
254
|
254
|
print_unescaped('checked="checked"'); |
|
255
|
255
|
} ?> /> |
|
256
|
|
- <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)'));?></label> |
|
|
256
|
+ <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)')); ?></label> |
|
257
|
257
|
<span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span> |
|
258
|
258
|
<br/> |
|
259
|
259
|
<textarea placeholder="<?php p($l->t('This text will be shown on the public link upload page when the file list is hidden.')) ?>" id="publicShareDisclaimerText" <?php if ($_['publicShareDisclaimerText'] === null) { |
|
@@ -261,7 +261,7 @@ discard block |
|
|
block discarded – undo |
|
261
|
261
|
} ?>><?php p($_['publicShareDisclaimerText']) ?></textarea> |
|
262
|
262
|
</p> |
|
263
|
263
|
|
|
264
|
|
- <h3><?php p($l->t('Default share permissions'));?></h3> |
|
|
264
|
+ <h3><?php p($l->t('Default share permissions')); ?></h3> |
|
265
|
265
|
<input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox" |
|
266
|
266
|
value="<?php p($_['shareApiDefaultPermissions']) ?>" /> |
|
267
|
267
|
<p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
|
@@ -272,7 +272,7 @@ discard block |
|
|
block discarded – undo |
|
272
|
272
|
class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) { |
|
273
|
273
|
print_unescaped('checked="checked"'); |
|
274
|
274
|
} ?> /> |
|
275
|
|
- <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> |
|
|
275
|
+ <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']); ?></label> |
|
276
|
276
|
<?php endforeach ?> |
|
277
|
277
|
</p> |
|
278
|
278
|
</div> |