@@ -87,7 +87,7 @@ |
||
87 | 87 | $res['group'] = []; |
88 | 88 | $res['group']['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
89 | 89 | $res['group']['expire_date']['enabled'] = true; |
90 | - $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
90 | + $res['default_permissions'] = (int) $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | //Federated sharing |
@@ -34,91 +34,91 @@ |
||
34 | 34 | */ |
35 | 35 | class Capabilities implements ICapability { |
36 | 36 | |
37 | - /** @var IConfig */ |
|
38 | - private $config; |
|
39 | - |
|
40 | - public function __construct(IConfig $config) { |
|
41 | - $this->config = $config; |
|
42 | - } |
|
43 | - |
|
44 | - /** |
|
45 | - * Return this classes capabilities |
|
46 | - * |
|
47 | - * @return array |
|
48 | - */ |
|
49 | - public function getCapabilities() { |
|
50 | - $res = []; |
|
51 | - |
|
52 | - if ($this->config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') { |
|
53 | - $res['api_enabled'] = false; |
|
54 | - $res['public'] = ['enabled' => false]; |
|
55 | - $res['user'] = ['send_mail' => false]; |
|
56 | - $res['resharing'] = false; |
|
57 | - } else { |
|
58 | - $res['api_enabled'] = true; |
|
59 | - |
|
60 | - $public = []; |
|
61 | - $public['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes'; |
|
62 | - if ($public['enabled']) { |
|
63 | - $public['password'] = []; |
|
64 | - $public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes'); |
|
65 | - |
|
66 | - if ($public['password']['enforced']) { |
|
67 | - $public['password']['askForOptionalPassword'] = false; |
|
68 | - } else { |
|
69 | - $public['password']['askForOptionalPassword'] = ($this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no') === 'yes'); |
|
70 | - } |
|
71 | - |
|
72 | - $public['expire_date'] = []; |
|
73 | - $public['multiple_links'] = true; |
|
74 | - $public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes'; |
|
75 | - if ($public['expire_date']['enabled']) { |
|
76 | - $public['expire_date']['days'] = $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'); |
|
77 | - $public['expire_date']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no') === 'yes'; |
|
78 | - } |
|
79 | - |
|
80 | - $public['expire_date_internal'] = []; |
|
81 | - $public['expire_date_internal']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no') === 'yes'; |
|
82 | - if ($public['expire_date_internal']['enabled']) { |
|
83 | - $public['expire_date_internal']['days'] = $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); |
|
84 | - $public['expire_date_internal']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes'; |
|
85 | - } |
|
86 | - |
|
87 | - $public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes'; |
|
88 | - $public['upload'] = $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes'; |
|
89 | - $public['upload_files_drop'] = $public['upload']; |
|
90 | - } |
|
91 | - $res['public'] = $public; |
|
92 | - |
|
93 | - $res['resharing'] = $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes') === 'yes'; |
|
94 | - |
|
95 | - $res['user']['send_mail'] = false; |
|
96 | - $res['user']['expire_date']['enabled'] = true; |
|
97 | - |
|
98 | - // deprecated in favour of 'group', but we need to keep it for now |
|
99 | - // in order to stay compatible with older clients |
|
100 | - $res['group_sharing'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
|
101 | - |
|
102 | - $res['group'] = []; |
|
103 | - $res['group']['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
|
104 | - $res['group']['expire_date']['enabled'] = true; |
|
105 | - $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
106 | - } |
|
107 | - |
|
108 | - //Federated sharing |
|
109 | - $res['federation'] = [ |
|
110 | - 'outgoing' => $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'yes', |
|
111 | - 'incoming' => $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'yes', |
|
112 | - 'expire_date' => ['enabled' => true] |
|
113 | - ]; |
|
114 | - |
|
115 | - // Sharee searches |
|
116 | - $res['sharee'] = [ |
|
117 | - 'query_lookup_default' => $this->config->getSystemValueBool('gs.enabled', false) |
|
118 | - ]; |
|
119 | - |
|
120 | - return [ |
|
121 | - 'files_sharing' => $res, |
|
122 | - ]; |
|
123 | - } |
|
37 | + /** @var IConfig */ |
|
38 | + private $config; |
|
39 | + |
|
40 | + public function __construct(IConfig $config) { |
|
41 | + $this->config = $config; |
|
42 | + } |
|
43 | + |
|
44 | + /** |
|
45 | + * Return this classes capabilities |
|
46 | + * |
|
47 | + * @return array |
|
48 | + */ |
|
49 | + public function getCapabilities() { |
|
50 | + $res = []; |
|
51 | + |
|
52 | + if ($this->config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') { |
|
53 | + $res['api_enabled'] = false; |
|
54 | + $res['public'] = ['enabled' => false]; |
|
55 | + $res['user'] = ['send_mail' => false]; |
|
56 | + $res['resharing'] = false; |
|
57 | + } else { |
|
58 | + $res['api_enabled'] = true; |
|
59 | + |
|
60 | + $public = []; |
|
61 | + $public['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes'; |
|
62 | + if ($public['enabled']) { |
|
63 | + $public['password'] = []; |
|
64 | + $public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes'); |
|
65 | + |
|
66 | + if ($public['password']['enforced']) { |
|
67 | + $public['password']['askForOptionalPassword'] = false; |
|
68 | + } else { |
|
69 | + $public['password']['askForOptionalPassword'] = ($this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no') === 'yes'); |
|
70 | + } |
|
71 | + |
|
72 | + $public['expire_date'] = []; |
|
73 | + $public['multiple_links'] = true; |
|
74 | + $public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes'; |
|
75 | + if ($public['expire_date']['enabled']) { |
|
76 | + $public['expire_date']['days'] = $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'); |
|
77 | + $public['expire_date']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no') === 'yes'; |
|
78 | + } |
|
79 | + |
|
80 | + $public['expire_date_internal'] = []; |
|
81 | + $public['expire_date_internal']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no') === 'yes'; |
|
82 | + if ($public['expire_date_internal']['enabled']) { |
|
83 | + $public['expire_date_internal']['days'] = $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); |
|
84 | + $public['expire_date_internal']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes'; |
|
85 | + } |
|
86 | + |
|
87 | + $public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes'; |
|
88 | + $public['upload'] = $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes'; |
|
89 | + $public['upload_files_drop'] = $public['upload']; |
|
90 | + } |
|
91 | + $res['public'] = $public; |
|
92 | + |
|
93 | + $res['resharing'] = $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes') === 'yes'; |
|
94 | + |
|
95 | + $res['user']['send_mail'] = false; |
|
96 | + $res['user']['expire_date']['enabled'] = true; |
|
97 | + |
|
98 | + // deprecated in favour of 'group', but we need to keep it for now |
|
99 | + // in order to stay compatible with older clients |
|
100 | + $res['group_sharing'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
|
101 | + |
|
102 | + $res['group'] = []; |
|
103 | + $res['group']['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
|
104 | + $res['group']['expire_date']['enabled'] = true; |
|
105 | + $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
106 | + } |
|
107 | + |
|
108 | + //Federated sharing |
|
109 | + $res['federation'] = [ |
|
110 | + 'outgoing' => $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'yes', |
|
111 | + 'incoming' => $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'yes', |
|
112 | + 'expire_date' => ['enabled' => true] |
|
113 | + ]; |
|
114 | + |
|
115 | + // Sharee searches |
|
116 | + $res['sharee'] = [ |
|
117 | + 'query_lookup_default' => $this->config->getSystemValueBool('gs.enabled', false) |
|
118 | + ]; |
|
119 | + |
|
120 | + return [ |
|
121 | + 'files_sharing' => $res, |
|
122 | + ]; |
|
123 | + } |
|
124 | 124 | } |
@@ -40,186 +40,186 @@ |
||
40 | 40 | */ |
41 | 41 | class Defaults { |
42 | 42 | |
43 | - /** |
|
44 | - * \OC_Defaults instance to retrieve the defaults |
|
45 | - * @since 6.0.0 |
|
46 | - */ |
|
47 | - private $defaults; |
|
48 | - |
|
49 | - /** |
|
50 | - * creates a \OC_Defaults instance which is used in all methods to retrieve the |
|
51 | - * actual defaults |
|
52 | - * @since 6.0.0 |
|
53 | - */ |
|
54 | - public function __construct(\OC_Defaults $defaults = null) { |
|
55 | - if ($defaults === null) { |
|
56 | - $defaults = \OC::$server->getThemingDefaults(); |
|
57 | - } |
|
58 | - $this->defaults = $defaults; |
|
59 | - } |
|
60 | - |
|
61 | - /** |
|
62 | - * get base URL for the organisation behind your ownCloud instance |
|
63 | - * @return string |
|
64 | - * @since 6.0.0 |
|
65 | - */ |
|
66 | - public function getBaseUrl() { |
|
67 | - return $this->defaults->getBaseUrl(); |
|
68 | - } |
|
69 | - |
|
70 | - /** |
|
71 | - * link to the desktop sync client |
|
72 | - * @return string |
|
73 | - * @since 6.0.0 |
|
74 | - */ |
|
75 | - public function getSyncClientUrl() { |
|
76 | - return $this->defaults->getSyncClientUrl(); |
|
77 | - } |
|
78 | - |
|
79 | - /** |
|
80 | - * link to the iOS client |
|
81 | - * @return string |
|
82 | - * @since 8.0.0 |
|
83 | - */ |
|
84 | - public function getiOSClientUrl() { |
|
85 | - return $this->defaults->getiOSClientUrl(); |
|
86 | - } |
|
87 | - |
|
88 | - /** |
|
89 | - * link to the Android client |
|
90 | - * @return string |
|
91 | - * @since 8.0.0 |
|
92 | - */ |
|
93 | - public function getAndroidClientUrl() { |
|
94 | - return $this->defaults->getAndroidClientUrl(); |
|
95 | - } |
|
96 | - |
|
97 | - /** |
|
98 | - * base URL to the documentation of your ownCloud instance |
|
99 | - * @return string |
|
100 | - * @since 6.0.0 |
|
101 | - */ |
|
102 | - public function getDocBaseUrl() { |
|
103 | - return $this->defaults->getDocBaseUrl(); |
|
104 | - } |
|
105 | - |
|
106 | - /** |
|
107 | - * name of your ownCloud instance |
|
108 | - * @return string |
|
109 | - * @since 6.0.0 |
|
110 | - */ |
|
111 | - public function getName() { |
|
112 | - return $this->defaults->getName(); |
|
113 | - } |
|
114 | - |
|
115 | - /** |
|
116 | - * name of your ownCloud instance containing HTML styles |
|
117 | - * @return string |
|
118 | - * @since 8.0.0 |
|
119 | - */ |
|
120 | - public function getHTMLName() { |
|
121 | - return $this->defaults->getHTMLName(); |
|
122 | - } |
|
123 | - |
|
124 | - /** |
|
125 | - * Entity behind your onwCloud instance |
|
126 | - * @return string |
|
127 | - * @since 6.0.0 |
|
128 | - */ |
|
129 | - public function getEntity() { |
|
130 | - return $this->defaults->getEntity(); |
|
131 | - } |
|
132 | - |
|
133 | - /** |
|
134 | - * ownCloud slogan |
|
135 | - * @return string |
|
136 | - * @since 6.0.0 |
|
137 | - */ |
|
138 | - public function getSlogan() { |
|
139 | - return $this->defaults->getSlogan(); |
|
140 | - } |
|
141 | - |
|
142 | - /** |
|
143 | - * logo claim |
|
144 | - * @return string |
|
145 | - * @since 6.0.0 |
|
146 | - * @deprecated 13.0.0 |
|
147 | - */ |
|
148 | - public function getLogoClaim() { |
|
149 | - return ''; |
|
150 | - } |
|
151 | - |
|
152 | - /** |
|
153 | - * footer, short version |
|
154 | - * @return string |
|
155 | - * @since 6.0.0 |
|
156 | - */ |
|
157 | - public function getShortFooter() { |
|
158 | - return $this->defaults->getShortFooter(); |
|
159 | - } |
|
160 | - |
|
161 | - /** |
|
162 | - * footer, long version |
|
163 | - * @return string |
|
164 | - * @since 6.0.0 |
|
165 | - */ |
|
166 | - public function getLongFooter() { |
|
167 | - return $this->defaults->getLongFooter(); |
|
168 | - } |
|
169 | - |
|
170 | - /** |
|
171 | - * Returns the AppId for the App Store for the iOS Client |
|
172 | - * @return string AppId |
|
173 | - * @since 8.0.0 |
|
174 | - */ |
|
175 | - public function getiTunesAppId() { |
|
176 | - return $this->defaults->getiTunesAppId(); |
|
177 | - } |
|
178 | - |
|
179 | - /** |
|
180 | - * Themed logo url |
|
181 | - * |
|
182 | - * @param bool $useSvg Whether to point to the SVG image or a fallback |
|
183 | - * @return string |
|
184 | - * @since 12.0.0 |
|
185 | - */ |
|
186 | - public function getLogo($useSvg = true) { |
|
187 | - return $this->defaults->getLogo($useSvg); |
|
188 | - } |
|
189 | - |
|
190 | - /** |
|
191 | - * Returns primary color |
|
192 | - * @return string |
|
193 | - * @since 12.0.0 |
|
194 | - */ |
|
195 | - public function getColorPrimary() { |
|
196 | - return $this->defaults->getColorPrimary(); |
|
197 | - } |
|
198 | - |
|
199 | - /** |
|
200 | - * @param string $key |
|
201 | - * @return string URL to doc with key |
|
202 | - * @since 12.0.0 |
|
203 | - */ |
|
204 | - public function buildDocLinkToKey($key) { |
|
205 | - return $this->defaults->buildDocLinkToKey($key); |
|
206 | - } |
|
207 | - |
|
208 | - /** |
|
209 | - * Returns the title |
|
210 | - * @return string title |
|
211 | - * @since 12.0.0 |
|
212 | - */ |
|
213 | - public function getTitle() { |
|
214 | - return $this->defaults->getTitle(); |
|
215 | - } |
|
216 | - |
|
217 | - /** |
|
218 | - * Returns primary color |
|
219 | - * @return string |
|
220 | - * @since 13.0.0 |
|
221 | - */ |
|
222 | - public function getTextColorPrimary() { |
|
223 | - return $this->defaults->getTextColorPrimary(); |
|
224 | - } |
|
43 | + /** |
|
44 | + * \OC_Defaults instance to retrieve the defaults |
|
45 | + * @since 6.0.0 |
|
46 | + */ |
|
47 | + private $defaults; |
|
48 | + |
|
49 | + /** |
|
50 | + * creates a \OC_Defaults instance which is used in all methods to retrieve the |
|
51 | + * actual defaults |
|
52 | + * @since 6.0.0 |
|
53 | + */ |
|
54 | + public function __construct(\OC_Defaults $defaults = null) { |
|
55 | + if ($defaults === null) { |
|
56 | + $defaults = \OC::$server->getThemingDefaults(); |
|
57 | + } |
|
58 | + $this->defaults = $defaults; |
|
59 | + } |
|
60 | + |
|
61 | + /** |
|
62 | + * get base URL for the organisation behind your ownCloud instance |
|
63 | + * @return string |
|
64 | + * @since 6.0.0 |
|
65 | + */ |
|
66 | + public function getBaseUrl() { |
|
67 | + return $this->defaults->getBaseUrl(); |
|
68 | + } |
|
69 | + |
|
70 | + /** |
|
71 | + * link to the desktop sync client |
|
72 | + * @return string |
|
73 | + * @since 6.0.0 |
|
74 | + */ |
|
75 | + public function getSyncClientUrl() { |
|
76 | + return $this->defaults->getSyncClientUrl(); |
|
77 | + } |
|
78 | + |
|
79 | + /** |
|
80 | + * link to the iOS client |
|
81 | + * @return string |
|
82 | + * @since 8.0.0 |
|
83 | + */ |
|
84 | + public function getiOSClientUrl() { |
|
85 | + return $this->defaults->getiOSClientUrl(); |
|
86 | + } |
|
87 | + |
|
88 | + /** |
|
89 | + * link to the Android client |
|
90 | + * @return string |
|
91 | + * @since 8.0.0 |
|
92 | + */ |
|
93 | + public function getAndroidClientUrl() { |
|
94 | + return $this->defaults->getAndroidClientUrl(); |
|
95 | + } |
|
96 | + |
|
97 | + /** |
|
98 | + * base URL to the documentation of your ownCloud instance |
|
99 | + * @return string |
|
100 | + * @since 6.0.0 |
|
101 | + */ |
|
102 | + public function getDocBaseUrl() { |
|
103 | + return $this->defaults->getDocBaseUrl(); |
|
104 | + } |
|
105 | + |
|
106 | + /** |
|
107 | + * name of your ownCloud instance |
|
108 | + * @return string |
|
109 | + * @since 6.0.0 |
|
110 | + */ |
|
111 | + public function getName() { |
|
112 | + return $this->defaults->getName(); |
|
113 | + } |
|
114 | + |
|
115 | + /** |
|
116 | + * name of your ownCloud instance containing HTML styles |
|
117 | + * @return string |
|
118 | + * @since 8.0.0 |
|
119 | + */ |
|
120 | + public function getHTMLName() { |
|
121 | + return $this->defaults->getHTMLName(); |
|
122 | + } |
|
123 | + |
|
124 | + /** |
|
125 | + * Entity behind your onwCloud instance |
|
126 | + * @return string |
|
127 | + * @since 6.0.0 |
|
128 | + */ |
|
129 | + public function getEntity() { |
|
130 | + return $this->defaults->getEntity(); |
|
131 | + } |
|
132 | + |
|
133 | + /** |
|
134 | + * ownCloud slogan |
|
135 | + * @return string |
|
136 | + * @since 6.0.0 |
|
137 | + */ |
|
138 | + public function getSlogan() { |
|
139 | + return $this->defaults->getSlogan(); |
|
140 | + } |
|
141 | + |
|
142 | + /** |
|
143 | + * logo claim |
|
144 | + * @return string |
|
145 | + * @since 6.0.0 |
|
146 | + * @deprecated 13.0.0 |
|
147 | + */ |
|
148 | + public function getLogoClaim() { |
|
149 | + return ''; |
|
150 | + } |
|
151 | + |
|
152 | + /** |
|
153 | + * footer, short version |
|
154 | + * @return string |
|
155 | + * @since 6.0.0 |
|
156 | + */ |
|
157 | + public function getShortFooter() { |
|
158 | + return $this->defaults->getShortFooter(); |
|
159 | + } |
|
160 | + |
|
161 | + /** |
|
162 | + * footer, long version |
|
163 | + * @return string |
|
164 | + * @since 6.0.0 |
|
165 | + */ |
|
166 | + public function getLongFooter() { |
|
167 | + return $this->defaults->getLongFooter(); |
|
168 | + } |
|
169 | + |
|
170 | + /** |
|
171 | + * Returns the AppId for the App Store for the iOS Client |
|
172 | + * @return string AppId |
|
173 | + * @since 8.0.0 |
|
174 | + */ |
|
175 | + public function getiTunesAppId() { |
|
176 | + return $this->defaults->getiTunesAppId(); |
|
177 | + } |
|
178 | + |
|
179 | + /** |
|
180 | + * Themed logo url |
|
181 | + * |
|
182 | + * @param bool $useSvg Whether to point to the SVG image or a fallback |
|
183 | + * @return string |
|
184 | + * @since 12.0.0 |
|
185 | + */ |
|
186 | + public function getLogo($useSvg = true) { |
|
187 | + return $this->defaults->getLogo($useSvg); |
|
188 | + } |
|
189 | + |
|
190 | + /** |
|
191 | + * Returns primary color |
|
192 | + * @return string |
|
193 | + * @since 12.0.0 |
|
194 | + */ |
|
195 | + public function getColorPrimary() { |
|
196 | + return $this->defaults->getColorPrimary(); |
|
197 | + } |
|
198 | + |
|
199 | + /** |
|
200 | + * @param string $key |
|
201 | + * @return string URL to doc with key |
|
202 | + * @since 12.0.0 |
|
203 | + */ |
|
204 | + public function buildDocLinkToKey($key) { |
|
205 | + return $this->defaults->buildDocLinkToKey($key); |
|
206 | + } |
|
207 | + |
|
208 | + /** |
|
209 | + * Returns the title |
|
210 | + * @return string title |
|
211 | + * @since 12.0.0 |
|
212 | + */ |
|
213 | + public function getTitle() { |
|
214 | + return $this->defaults->getTitle(); |
|
215 | + } |
|
216 | + |
|
217 | + /** |
|
218 | + * Returns primary color |
|
219 | + * @return string |
|
220 | + * @since 13.0.0 |
|
221 | + */ |
|
222 | + public function getTextColorPrimary() { |
|
223 | + return $this->defaults->getTextColorPrimary(); |
|
224 | + } |
|
225 | 225 | } |
@@ -23,18 +23,18 @@ |
||
23 | 23 | * |
24 | 24 | */ |
25 | 25 | |
26 | -require_once __DIR__ . '/../lib/versioncheck.php'; |
|
27 | -require_once __DIR__ . '/../lib/base.php'; |
|
26 | +require_once __DIR__.'/../lib/versioncheck.php'; |
|
27 | +require_once __DIR__.'/../lib/base.php'; |
|
28 | 28 | |
29 | 29 | header('Content-type: application/xml'); |
30 | 30 | |
31 | 31 | $request = \OC::$server->getRequest(); |
32 | 32 | |
33 | -$url = $request->getServerProtocol() . '://' . substr($request->getServerHost() . $request->getRequestUri(), 0, -17).'ocs/v1.php/'; |
|
33 | +$url = $request->getServerProtocol().'://'.substr($request->getServerHost().$request->getRequestUri(), 0, -17).'ocs/v1.php/'; |
|
34 | 34 | |
35 | 35 | $writer = new XMLWriter(); |
36 | 36 | $writer->openURI('php://output'); |
37 | -$writer->startDocument('1.0','UTF-8'); |
|
37 | +$writer->startDocument('1.0', 'UTF-8'); |
|
38 | 38 | $writer->setIndent(true); |
39 | 39 | $writer->startElement('providers'); |
40 | 40 | $writer->startElement('provider'); |
@@ -27,17 +27,17 @@ |
||
27 | 27 | * @since 13.0.0 |
28 | 28 | */ |
29 | 29 | interface ICachedMountFileInfo extends ICachedMountInfo { |
30 | - /** |
|
31 | - * Return the path for the file within the cached mount |
|
32 | - * |
|
33 | - * @return string |
|
34 | - * @since 13.0.0 |
|
35 | - */ |
|
36 | - public function getInternalPath(); |
|
30 | + /** |
|
31 | + * Return the path for the file within the cached mount |
|
32 | + * |
|
33 | + * @return string |
|
34 | + * @since 13.0.0 |
|
35 | + */ |
|
36 | + public function getInternalPath(); |
|
37 | 37 | |
38 | - /** |
|
39 | - * @return string |
|
40 | - * @since 13.0.0 |
|
41 | - */ |
|
42 | - public function getPath(); |
|
38 | + /** |
|
39 | + * @return string |
|
40 | + * @since 13.0.0 |
|
41 | + */ |
|
42 | + public function getPath(); |
|
43 | 43 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFederatedFileSharing::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Sharing::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitEncryption::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitTwoFactorBackupCodes::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
32 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
33 | 33 | if ($classMap) { |
34 | 34 | $loader->addClassMap($classMap); |
35 | 35 | } |