@@ -40,22 +40,22 @@ discard block |
||
| 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 | - print_unescaped('checked="checked"'); |
|
| 43 | + print_unescaped('checked="checked"'); |
|
| 44 | 44 | } ?> /> |
| 45 | 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') { |
| 49 | - p('hidden'); |
|
| 49 | + p('hidden'); |
|
| 50 | 50 | } ?>"> |
| 51 | 51 | <input type="checkbox" name="shareapi_default_internal_expire_date" id="shareapiDefaultInternalExpireDate" class="checkbox" |
| 52 | 52 | value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') { |
| 53 | - print_unescaped('checked="checked"'); |
|
| 53 | + print_unescaped('checked="checked"'); |
|
| 54 | 54 | } ?> /> |
| 55 | 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 | - p('hidden'); |
|
| 58 | + p('hidden'); |
|
| 59 | 59 | }?>"> |
| 60 | 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')?>" |
@@ -63,22 +63,22 @@ discard block |
||
| 63 | 63 | <?php p($l->t('day(s)')); ?> |
| 64 | 64 | <input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox" |
| 65 | 65 | value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') { |
| 66 | - print_unescaped('checked="checked"'); |
|
| 66 | + print_unescaped('checked="checked"'); |
|
| 67 | 67 | } ?> /> |
| 68 | 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') { |
| 72 | - p('hidden'); |
|
| 72 | + p('hidden'); |
|
| 73 | 73 | } ?>"> |
| 74 | 74 | <input type="checkbox" name="shareapi_default_remote_expire_date" id="shareapiDefaultRemoteExpireDate" class="checkbox" |
| 75 | 75 | value="1" <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'yes') { |
| 76 | - print_unescaped('checked="checked"'); |
|
| 76 | + print_unescaped('checked="checked"'); |
|
| 77 | 77 | } ?> /> |
| 78 | 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 | - p('hidden'); |
|
| 81 | + p('hidden'); |
|
| 82 | 82 | }?>"> |
| 83 | 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')?>" |
@@ -86,39 +86,39 @@ discard block |
||
| 86 | 86 | <?php p($l->t('day(s)')); ?> |
| 87 | 87 | <input type="checkbox" name="shareapi_enforce_remote_expire_date" id="shareapiRemoteEnforceExpireDate" class="checkbox" |
| 88 | 88 | value="1" <?php if ($_['shareRemoteEnforceExpireDate'] === 'yes') { |
| 89 | - print_unescaped('checked="checked"'); |
|
| 89 | + print_unescaped('checked="checked"'); |
|
| 90 | 90 | } ?> /> |
| 91 | 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') { |
| 95 | - p('hidden'); |
|
| 95 | + p('hidden'); |
|
| 96 | 96 | }?>"> |
| 97 | 97 | <input type="checkbox" name="shareapi_allow_links" id="allowLinks" class="checkbox" |
| 98 | 98 | value="1" <?php if ($_['allowLinks'] === 'yes') { |
| 99 | - print_unescaped('checked="checked"'); |
|
| 99 | + print_unescaped('checked="checked"'); |
|
| 100 | 100 | } ?> /> |
| 101 | 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') { |
| 105 | - p('hidden'); |
|
| 105 | + p('hidden'); |
|
| 106 | 106 | } ?>"> |
| 107 | 107 | <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" class="checkbox" |
| 108 | 108 | value="1" <?php if ($_['allowPublicUpload'] == 'yes') { |
| 109 | - print_unescaped('checked="checked"'); |
|
| 109 | + print_unescaped('checked="checked"'); |
|
| 110 | 110 | } ?> /> |
| 111 | 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 | - print_unescaped('checked="checked"'); |
|
| 114 | + print_unescaped('checked="checked"'); |
|
| 115 | 115 | } ?> /> |
| 116 | 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 | - print_unescaped('checked="checked"'); |
|
| 119 | + print_unescaped('checked="checked"'); |
|
| 120 | 120 | } ?> <?php if ($_['enableLinkPasswordByDefault'] !== 'yes') { |
| 121 | - print_unescaped('disabled'); |
|
| 121 | + print_unescaped('disabled'); |
|
| 122 | 122 | } ?> /> |
| 123 | 123 | <label for="enforceLinkPassword" class="indent"><?php p($l->t('Enforce password protection'));?></label><br/> |
| 124 | 124 | |
@@ -127,20 +127,20 @@ discard block |
||
| 127 | 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 | - print_unescaped('disabled'); |
|
| 130 | + print_unescaped('disabled'); |
|
| 131 | 131 | } ?> /> |
| 132 | 132 | </span><br/> |
| 133 | 133 | <?php } ?> |
| 134 | 134 | |
| 135 | 135 | <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox" |
| 136 | 136 | value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') { |
| 137 | - print_unescaped('checked="checked"'); |
|
| 137 | + print_unescaped('checked="checked"'); |
|
| 138 | 138 | } ?> /> |
| 139 | 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 | - p('hidden'); |
|
| 143 | + p('hidden'); |
|
| 144 | 144 | }?>"> |
| 145 | 145 | <?php p($l->t('Expire after'). ' '); ?> |
| 146 | 146 | <input type="text" name='shareapi_expire_after_n_days' id="shareapiExpireAfterNDays" placeholder="<?php p('7')?>" |
@@ -148,56 +148,56 @@ discard block |
||
| 148 | 148 | <?php p($l->t('day(s)')); ?> |
| 149 | 149 | <input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" class="checkbox" |
| 150 | 150 | value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') { |
| 151 | - print_unescaped('checked="checked"'); |
|
| 151 | + print_unescaped('checked="checked"'); |
|
| 152 | 152 | } ?> /> |
| 153 | 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 | - p('hidden'); |
|
| 156 | + p('hidden'); |
|
| 157 | 157 | }?>"> |
| 158 | 158 | <p class="indent"> |
| 159 | 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 | - p('hidden'); |
|
| 162 | + p('hidden'); |
|
| 163 | 163 | } ?>"> |
| 164 | 164 | <input name="shareapi_allow_links_exclude_groups" type="hidden" id="linksExcludedGroups" value="<?php p($_['allowLinksExcludeGroups']) ?>" style="width: 400px" class="noJSAutoUpdate"/> |
| 165 | 165 | </p> |
| 166 | 166 | <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" class="checkbox" |
| 167 | 167 | value="1" <?php if ($_['allowResharing'] === 'yes') { |
| 168 | - print_unescaped('checked="checked"'); |
|
| 168 | + print_unescaped('checked="checked"'); |
|
| 169 | 169 | } ?> /> |
| 170 | 170 | <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> |
| 171 | 171 | </p> |
| 172 | 172 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 173 | - p('hidden'); |
|
| 173 | + p('hidden'); |
|
| 174 | 174 | }?>"> |
| 175 | 175 | <input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox" |
| 176 | 176 | value="1" <?php if ($_['allowGroupSharing'] === 'yes') { |
| 177 | - print_unescaped('checked="checked"'); |
|
| 177 | + print_unescaped('checked="checked"'); |
|
| 178 | 178 | } ?> /> |
| 179 | 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 | - p('hidden'); |
|
| 182 | + p('hidden'); |
|
| 183 | 183 | }?>"> |
| 184 | 184 | <input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox" |
| 185 | 185 | value="1" <?php if ($_['onlyShareWithGroupMembers']) { |
| 186 | - print_unescaped('checked="checked"'); |
|
| 186 | + print_unescaped('checked="checked"'); |
|
| 187 | 187 | } ?> /> |
| 188 | 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 | - p('hidden'); |
|
| 191 | + p('hidden'); |
|
| 192 | 192 | }?>"> |
| 193 | 193 | <input type="checkbox" name="shareapi_exclude_groups" id="shareapiExcludeGroups" class="checkbox" |
| 194 | 194 | value="1" <?php if ($_['shareExcludeGroups']) { |
| 195 | - print_unescaped('checked="checked"'); |
|
| 195 | + print_unescaped('checked="checked"'); |
|
| 196 | 196 | } ?> /> |
| 197 | 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 | - p('hidden'); |
|
| 200 | + p('hidden'); |
|
| 201 | 201 | } ?>"> |
| 202 | 202 | <input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/> |
| 203 | 203 | <br /> |
@@ -205,45 +205,45 @@ discard block |
||
| 205 | 205 | </p> |
| 206 | 206 | |
| 207 | 207 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 208 | - p('hidden'); |
|
| 208 | + p('hidden'); |
|
| 209 | 209 | }?>"> |
| 210 | 210 | <input type="checkbox" name="shareapi_allow_share_dialog_user_enumeration" value="1" id="shareapi_allow_share_dialog_user_enumeration" class="checkbox" |
| 211 | 211 | <?php if ($_['allowShareDialogUserEnumeration'] === 'yes') { |
| 212 | - print_unescaped('checked="checked"'); |
|
| 212 | + print_unescaped('checked="checked"'); |
|
| 213 | 213 | } ?> /> |
| 214 | 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') { |
| 218 | - p('hidden'); |
|
| 218 | + p('hidden'); |
|
| 219 | 219 | }?>"> |
| 220 | 220 | <input type="checkbox" name="shareapi_restrict_user_enumeration_to_group" value="1" id="shareapi_restrict_user_enumeration_to_group" class="checkbox" |
| 221 | 221 | <?php if ($_['restrictUserEnumerationToGroup'] === 'yes') { |
| 222 | - print_unescaped('checked="checked"'); |
|
| 222 | + print_unescaped('checked="checked"'); |
|
| 223 | 223 | } ?> /> |
| 224 | 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') { |
| 228 | - p('hidden'); |
|
| 228 | + p('hidden'); |
|
| 229 | 229 | }?>"> |
| 230 | 230 | <input type="checkbox" name="shareapi_restrict_user_enumeration_to_phone" value="1" id="shareapi_restrict_user_enumeration_to_phone" class="checkbox" |
| 231 | 231 | <?php if ($_['restrictUserEnumerationToPhone'] === 'yes') { |
| 232 | - print_unescaped('checked="checked"'); |
|
| 232 | + print_unescaped('checked="checked"'); |
|
| 233 | 233 | } ?> /> |
| 234 | 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 | - p('hidden'); |
|
| 237 | + p('hidden'); |
|
| 238 | 238 | }?>"> |
| 239 | 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 | - p('hidden'); |
|
| 242 | + p('hidden'); |
|
| 243 | 243 | }?>"> |
| 244 | 244 | <input type="checkbox" name="shareapi_restrict_user_enumeration_full_match" value="1" id="shareapi_restrict_user_enumeration_full_match" class="checkbox" |
| 245 | 245 | <?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') { |
| 246 | - print_unescaped('checked="checked"'); |
|
| 246 | + print_unescaped('checked="checked"'); |
|
| 247 | 247 | } ?> /> |
| 248 | 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> |
@@ -251,13 +251,13 @@ discard block |
||
| 251 | 251 | <p> |
| 252 | 252 | <input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate" |
| 253 | 253 | <?php if ($_['publicShareDisclaimerText'] !== null) { |
| 254 | - print_unescaped('checked="checked"'); |
|
| 254 | + print_unescaped('checked="checked"'); |
|
| 255 | 255 | } ?> /> |
| 256 | 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) { |
| 260 | - print_unescaped('class="hidden"'); |
|
| 260 | + print_unescaped('class="hidden"'); |
|
| 261 | 261 | } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea> |
| 262 | 262 | </p> |
| 263 | 263 | |
@@ -265,12 +265,12 @@ discard block |
||
| 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') { |
| 268 | - p('hidden'); |
|
| 268 | + p('hidden'); |
|
| 269 | 269 | } ?>"> |
| 270 | 270 | <?php foreach ($_['shareApiDefaultPermissionsCheckboxes'] as $perm): ?> |
| 271 | 271 | <input type="checkbox" name="shareapi_default_permission_<?php p($perm['id']) ?>" id="shareapi_default_permission_<?php p($perm['id']) ?>" |
| 272 | 272 | class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) { |
| 273 | - print_unescaped('checked="checked"'); |
|
| 273 | + print_unescaped('checked="checked"'); |
|
| 274 | 274 | } ?> /> |
| 275 | 275 | <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> |
| 276 | 276 | <?php endforeach ?> |
@@ -28,21 +28,21 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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> |