Passed
Push — master ( 30e445...fdf7fd )
by Joas
26:25 queued 13s
created
apps/settings/templates/settings/admin/sharing.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -40,22 +40,22 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ?>
Please login to merge, or discard this patch.