@@ -97,7 +97,16 @@ |
||
97 | 97 | <p><label for="ldap_group_display_name"><?php p($l->t('Group Display Name Field'));?></label><input type="text" id="ldap_group_display_name" name="ldap_group_display_name" data-default="<?php p($_['ldap_group_display_name_default']); ?>" title="<?php p($l->t('The LDAP attribute to use to generate the groups\'s display name.'));?>" /></p> |
98 | 98 | <p><label for="ldap_base_groups"><?php p($l->t('Base Group Tree'));?></label><textarea id="ldap_base_groups" name="ldap_base_groups" placeholder="<?php p($l->t('One Group Base DN per line'));?>" data-default="<?php p($_['ldap_base_groups_default']); ?>" title="<?php p($l->t('Base Group Tree'));?>"></textarea></p> |
99 | 99 | <p><label for="ldap_attributes_for_group_search"><?php p($l->t('Group Search Attributes'));?></label><textarea id="ldap_attributes_for_group_search" name="ldap_attributes_for_group_search" placeholder="<?php p($l->t('Optional; one attribute per line'));?>" data-default="<?php p($_['ldap_attributes_for_group_search_default']); ?>" title="<?php p($l->t('Group Search Attributes'));?>"></textarea></p> |
100 | - <p><label for="ldap_group_member_assoc_attribute"><?php p($l->t('Group-Member association'));?></label><select id="ldap_group_member_assoc_attribute" name="ldap_group_member_assoc_attribute" data-default="<?php p($_['ldap_group_member_assoc_attribute_default']); ?>" ><option value="uniqueMember"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'uniqueMember')) p(' selected'); ?>>uniqueMember</option><option value="memberUid"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'memberUid')) p(' selected'); ?>>memberUid</option><option value="member"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'member')) p(' selected'); ?>>member (AD)</option></select></p> |
|
100 | + <p><label for="ldap_group_member_assoc_attribute"><?php p($l->t('Group-Member association'));?></label><select id="ldap_group_member_assoc_attribute" name="ldap_group_member_assoc_attribute" data-default="<?php p($_['ldap_group_member_assoc_attribute_default']); ?>" ><option value="uniqueMember"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'uniqueMember')) { |
|
101 | + p(' selected'); |
|
102 | +} |
|
103 | +?>>uniqueMember</option><option value="memberUid"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'memberUid')) { |
|
104 | + p(' selected'); |
|
105 | +} |
|
106 | +?>>memberUid</option><option value="member"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'member')) { |
|
107 | + p(' selected'); |
|
108 | +} |
|
109 | +?>>member (AD)</option></select></p> |
|
101 | 110 | <p><label for="ldap_dynamic_group_member_url"><?php p($l->t('Dynamic Group Member URL'));?></label><input type="text" id="ldap_dynamic_group_member_url" name="ldap_dynamic_group_member_url" title="<?php p($l->t('The LDAP attribute that on group objects contains an LDAP search URL that determines what objects belong to the group. (An empty setting disables dynamic group membership functionality.)'));?>" data-default="<?php p($_['ldap_dynamic_group_member_url_default']); ?>" /></p> |
102 | 111 | <p><label for="ldap_nested_groups"><?php p($l->t('Nested Groups'));?></label><input type="checkbox" id="ldap_nested_groups" name="ldap_nested_groups" value="1" data-default="<?php p($_['ldap_nested_groups_default']); ?>" title="<?php p($l->t('When switched on, groups that contain groups are supported. (Only works if the group member attribute contains DNs.)'));?>" /></p> |
103 | 112 | <p><label for="ldap_paging_size"><?php p($l->t('Paging chunksize'));?></label><input type="number" id="ldap_paging_size" name="ldap_paging_size" title="<?php p($l->t('Chunksize used for paged LDAP searches that may return bulky results like user or group enumeration. (Setting it 0 disables paged LDAP searches in those situations.)'));?>" data-default="<?php p($_['ldap_paging_size_default']); ?>" /></p> |
@@ -40,8 +40,7 @@ |
||
40 | 40 | $list[] = $folder; |
41 | 41 | $folder = dirname($folder); |
42 | 42 | } |
43 | -} |
|
44 | -else { |
|
43 | +} else { |
|
45 | 44 | $deleteAll = false; |
46 | 45 | $files = (string)$_POST['files']; |
47 | 46 | $list = json_decode($files); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | if(OCA\Files_Versions\Storage::rollback( $file, $revision )) { |
37 | 37 | OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file ))); |
38 | -}else{ |
|
38 | +} else{ |
|
39 | 39 | $l = \OC::$server->getL10N('files_versions'); |
40 | 40 | OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) )))); |
41 | 41 | } |
@@ -18,8 +18,11 @@ discard block |
||
18 | 18 | <?php if(is_array($err)):?> |
19 | 19 | <?php print_unescaped($err['error']); ?> |
20 | 20 | <span class='hint'><?php print_unescaped($err['hint']); ?></span> |
21 | - <?php else: ?> |
|
22 | - <?php print_unescaped($err); ?> |
|
21 | + <?php else { |
|
22 | + : ?> |
|
23 | + <?php print_unescaped($err); |
|
24 | +} |
|
25 | +?> |
|
23 | 26 | <?php endif; ?> |
24 | 27 | </p> |
25 | 28 | <?php endforeach; ?> |
@@ -75,8 +78,12 @@ discard block |
||
75 | 78 | |
76 | 79 | <?php if(!$_['dbIsSet'] OR count($_['errors']) > 0): ?> |
77 | 80 | <fieldset id='databaseBackend'> |
78 | - <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
79 | - $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> |
|
81 | + <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) { |
|
82 | + $hasOtherDB = true; |
|
83 | +} else { |
|
84 | + $hasOtherDB =false; |
|
85 | + } |
|
86 | + //other than SQLite ?> |
|
80 | 87 | <legend><?php p($l->t( 'Configure the database' )); ?></legend> |
81 | 88 | <div id="selectDbType"> |
82 | 89 | <?php foreach($_['databases'] as $type => $label): ?> |
@@ -88,11 +95,14 @@ discard block |
||
88 | 95 | <?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a> |
89 | 96 | </p> |
90 | 97 | <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>"> |
91 | - <?php else: ?> |
|
98 | + <?php else { |
|
99 | + : ?> |
|
92 | 100 | <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" |
93 | 101 | <?php print_unescaped($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/> |
94 | 102 | <label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label> |
95 | - <?php endif; ?> |
|
103 | + <?php endif; |
|
104 | +} |
|
105 | +?> |
|
96 | 106 | <?php endforeach; ?> |
97 | 107 | </div> |
98 | 108 | </fieldset> |
@@ -14,10 +14,13 @@ |
||
14 | 14 | ?> |
15 | 15 | <?php if (isset($_['content'])): ?> |
16 | 16 | <?php print_unescaped($_['content']) ?> |
17 | -<?php else: ?> |
|
17 | +<?php else { |
|
18 | + : ?> |
|
18 | 19 | <ul> |
19 | 20 | <li class="error"> |
20 | - <?php p($l->t('File not found')); ?><br> |
|
21 | + <?php p($l->t('File not found')); |
|
22 | +} |
|
23 | +?><br> |
|
21 | 24 | <p class="hint"><?php p($l->t('The specified document has not been found on the server.')); ?></p> |
22 | 25 | <p class="hint"><a href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>"><?php p($l->t('You can click here to return to %s.', array($theme->getName()))); ?></a></p> |
23 | 26 | </li> |
@@ -56,7 +56,6 @@ |
||
56 | 56 | if($query) { |
57 | 57 | $result = \OC::$server->getSearch()->searchPaged($query, $inApps, $page, $size); |
58 | 58 | OC_JSON::encodedPrint($result); |
59 | -} |
|
60 | -else { |
|
59 | +} else { |
|
61 | 60 | echo 'false'; |
62 | 61 | } |
@@ -46,28 +46,40 @@ discard block |
||
46 | 46 | <div id="userlistoptions"> |
47 | 47 | <p> |
48 | 48 | <input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation" |
49 | - class="checkbox" <?php if ($_['show_storage_location'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
49 | + class="checkbox" <?php if ($_['show_storage_location'] === 'true') { |
|
50 | + print_unescaped('checked="checked"'); |
|
51 | +} |
|
52 | +?> /> |
|
50 | 53 | <label for="CheckboxStorageLocation"> |
51 | 54 | <?php p($l->t('Show storage location')) ?> |
52 | 55 | </label> |
53 | 56 | </p> |
54 | 57 | <p> |
55 | 58 | <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin" |
56 | - class="checkbox" <?php if ($_['show_last_login'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
59 | + class="checkbox" <?php if ($_['show_last_login'] === 'true') { |
|
60 | + print_unescaped('checked="checked"'); |
|
61 | +} |
|
62 | +?> /> |
|
57 | 63 | <label for="CheckboxLastLogin"> |
58 | 64 | <?php p($l->t('Show last log in')) ?> |
59 | 65 | </label> |
60 | 66 | </p> |
61 | 67 | <p> |
62 | 68 | <input type="checkbox" name="UserBackend" value="UserBackend" id="CheckboxUserBackend" |
63 | - class="checkbox" <?php if ($_['show_backend'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
69 | + class="checkbox" <?php if ($_['show_backend'] === 'true') { |
|
70 | + print_unescaped('checked="checked"'); |
|
71 | +} |
|
72 | +?> /> |
|
64 | 73 | <label for="CheckboxUserBackend"> |
65 | 74 | <?php p($l->t('Show user backend')) ?> |
66 | 75 | </label> |
67 | 76 | </p> |
68 | 77 | <p> |
69 | 78 | <input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate" |
70 | - class="checkbox" <?php if ($_['send_email'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
79 | + class="checkbox" <?php if ($_['send_email'] === 'true') { |
|
80 | + print_unescaped('checked="checked"'); |
|
81 | +} |
|
82 | +?> /> |
|
71 | 83 | <label for="CheckboxMailOnUserCreate"> |
72 | 84 | <?php p($l->t('Send email to new user')) ?> |
73 | 85 | </label> |
@@ -77,7 +89,10 @@ discard block |
||
77 | 89 | </p> |
78 | 90 | <p> |
79 | 91 | <input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress" |
80 | - class="checkbox" <?php if ($_['show_email'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
92 | + class="checkbox" <?php if ($_['show_email'] === 'true') { |
|
93 | + print_unescaped('checked="checked"'); |
|
94 | +} |
|
95 | +?> /> |
|
81 | 96 | <label for="CheckboxEmailAddress"> |
82 | 97 | <?php p($l->t('Show email address')) ?> |
83 | 98 | </label> |
@@ -66,7 +66,7 @@ |
||
66 | 66 | // Return Success story |
67 | 67 | if($username) { |
68 | 68 | $targetUserObject->setQuota($quota); |
69 | -}else{//set the default quota when no username is specified |
|
69 | +} else{//set the default quota when no username is specified |
|
70 | 70 | if($quota === 'default') {//'default' as default quota makes no sense |
71 | 71 | $quota='none'; |
72 | 72 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | ]; |
83 | 83 | } |
84 | 84 | $subAdmins = $result; |
85 | -}else{ |
|
85 | +} else{ |
|
86 | 86 | /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */ |
87 | 87 | $gids = array(); |
88 | 88 | foreach($groups as $group) { |