@@ -12,11 +12,11 @@ |
||
12 | 12 | |
13 | 13 | <p> |
14 | 14 | <input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if ($_['sendPasswordMail']) { |
15 | - p('checked'); |
|
15 | + p('checked'); |
|
16 | 16 | } ?> /> |
17 | 17 | <label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label><br/> |
18 | 18 | <input id="enforcePasswordProtection" type="checkbox" class="checkbox" <?php if ($_['enforcePasswordProtection']) { |
19 | - p('checked'); |
|
19 | + p('checked'); |
|
20 | 20 | } ?> /> |
21 | 21 | <label for="enforcePasswordProtection"><?php p($l->t('Enforce password protection')); ?></label> |
22 | 22 | </p> |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use OCP\AppFramework\Http; |
6 | 6 | |
7 | 7 | class NotSubAdminException extends \Exception { |
8 | - public function __construct() { |
|
9 | - parent::__construct('Logged in user must be at least a sub admin', Http::STATUS_FORBIDDEN); |
|
10 | - } |
|
8 | + public function __construct() { |
|
9 | + parent::__construct('Logged in user must be at least a sub admin', Http::STATUS_FORBIDDEN); |
|
10 | + } |
|
11 | 11 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | namespace OC\Core\Command\Background; |
27 | 27 | |
28 | 28 | class Ajax extends Base { |
29 | - protected function getMode() { |
|
30 | - return 'ajax'; |
|
31 | - } |
|
29 | + protected function getMode() { |
|
30 | + return 'ajax'; |
|
31 | + } |
|
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | namespace OC\Core\Command\Background; |
27 | 27 | |
28 | 28 | class Cron extends Base { |
29 | - protected function getMode() { |
|
30 | - return 'cron'; |
|
31 | - } |
|
29 | + protected function getMode() { |
|
30 | + return 'cron'; |
|
31 | + } |
|
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | namespace OC\Core\Command\Background; |
27 | 27 | |
28 | 28 | class WebCron extends Base { |
29 | - protected function getMode() { |
|
30 | - return 'webcron'; |
|
31 | - } |
|
29 | + protected function getMode() { |
|
30 | + return 'webcron'; |
|
31 | + } |
|
32 | 32 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | <?php p($theme->getName()); ?> |
30 | 30 | </h1> |
31 | 31 | <?php if (\OC::$server->getConfig()->getSystemValue('installed', false) |
32 | - && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?> |
|
32 | + && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?> |
|
33 | 33 | <img src="<?php p($theme->getLogo()); ?>"/> |
34 | 34 | <?php endif; ?> |
35 | 35 | </div> |
@@ -35,118 +35,118 @@ |
||
35 | 35 | |
36 | 36 | abstract class AbstractDatabase { |
37 | 37 | |
38 | - /** @var IL10N */ |
|
39 | - protected $trans; |
|
40 | - /** @var string */ |
|
41 | - protected $dbUser; |
|
42 | - /** @var string */ |
|
43 | - protected $dbPassword; |
|
44 | - /** @var string */ |
|
45 | - protected $dbName; |
|
46 | - /** @var string */ |
|
47 | - protected $dbHost; |
|
48 | - /** @var string */ |
|
49 | - protected $dbPort; |
|
50 | - /** @var string */ |
|
51 | - protected $tablePrefix; |
|
52 | - /** @var SystemConfig */ |
|
53 | - protected $config; |
|
54 | - /** @var ILogger */ |
|
55 | - protected $logger; |
|
56 | - /** @var ISecureRandom */ |
|
57 | - protected $random; |
|
38 | + /** @var IL10N */ |
|
39 | + protected $trans; |
|
40 | + /** @var string */ |
|
41 | + protected $dbUser; |
|
42 | + /** @var string */ |
|
43 | + protected $dbPassword; |
|
44 | + /** @var string */ |
|
45 | + protected $dbName; |
|
46 | + /** @var string */ |
|
47 | + protected $dbHost; |
|
48 | + /** @var string */ |
|
49 | + protected $dbPort; |
|
50 | + /** @var string */ |
|
51 | + protected $tablePrefix; |
|
52 | + /** @var SystemConfig */ |
|
53 | + protected $config; |
|
54 | + /** @var ILogger */ |
|
55 | + protected $logger; |
|
56 | + /** @var ISecureRandom */ |
|
57 | + protected $random; |
|
58 | 58 | |
59 | - public function __construct(IL10N $trans, SystemConfig $config, ILogger $logger, ISecureRandom $random) { |
|
60 | - $this->trans = $trans; |
|
61 | - $this->config = $config; |
|
62 | - $this->logger = $logger; |
|
63 | - $this->random = $random; |
|
64 | - } |
|
59 | + public function __construct(IL10N $trans, SystemConfig $config, ILogger $logger, ISecureRandom $random) { |
|
60 | + $this->trans = $trans; |
|
61 | + $this->config = $config; |
|
62 | + $this->logger = $logger; |
|
63 | + $this->random = $random; |
|
64 | + } |
|
65 | 65 | |
66 | - public function validate($config) { |
|
67 | - $errors = []; |
|
68 | - if (empty($config['dbuser']) && empty($config['dbname'])) { |
|
69 | - $errors[] = $this->trans->t("%s enter the database username and name.", [$this->dbprettyname]); |
|
70 | - } elseif (empty($config['dbuser'])) { |
|
71 | - $errors[] = $this->trans->t("%s enter the database username.", [$this->dbprettyname]); |
|
72 | - } elseif (empty($config['dbname'])) { |
|
73 | - $errors[] = $this->trans->t("%s enter the database name.", [$this->dbprettyname]); |
|
74 | - } |
|
75 | - if (substr_count($config['dbname'], '.') >= 1) { |
|
76 | - $errors[] = $this->trans->t("%s you may not use dots in the database name", [$this->dbprettyname]); |
|
77 | - } |
|
78 | - return $errors; |
|
79 | - } |
|
66 | + public function validate($config) { |
|
67 | + $errors = []; |
|
68 | + if (empty($config['dbuser']) && empty($config['dbname'])) { |
|
69 | + $errors[] = $this->trans->t("%s enter the database username and name.", [$this->dbprettyname]); |
|
70 | + } elseif (empty($config['dbuser'])) { |
|
71 | + $errors[] = $this->trans->t("%s enter the database username.", [$this->dbprettyname]); |
|
72 | + } elseif (empty($config['dbname'])) { |
|
73 | + $errors[] = $this->trans->t("%s enter the database name.", [$this->dbprettyname]); |
|
74 | + } |
|
75 | + if (substr_count($config['dbname'], '.') >= 1) { |
|
76 | + $errors[] = $this->trans->t("%s you may not use dots in the database name", [$this->dbprettyname]); |
|
77 | + } |
|
78 | + return $errors; |
|
79 | + } |
|
80 | 80 | |
81 | - public function initialize($config) { |
|
82 | - $dbUser = $config['dbuser']; |
|
83 | - $dbPass = $config['dbpass']; |
|
84 | - $dbName = $config['dbname']; |
|
85 | - $dbHost = !empty($config['dbhost']) ? $config['dbhost'] : 'localhost'; |
|
86 | - $dbPort = !empty($config['dbport']) ? $config['dbport'] : ''; |
|
87 | - $dbTablePrefix = isset($config['dbtableprefix']) ? $config['dbtableprefix'] : 'oc_'; |
|
81 | + public function initialize($config) { |
|
82 | + $dbUser = $config['dbuser']; |
|
83 | + $dbPass = $config['dbpass']; |
|
84 | + $dbName = $config['dbname']; |
|
85 | + $dbHost = !empty($config['dbhost']) ? $config['dbhost'] : 'localhost'; |
|
86 | + $dbPort = !empty($config['dbport']) ? $config['dbport'] : ''; |
|
87 | + $dbTablePrefix = isset($config['dbtableprefix']) ? $config['dbtableprefix'] : 'oc_'; |
|
88 | 88 | |
89 | - $this->config->setValues([ |
|
90 | - 'dbname' => $dbName, |
|
91 | - 'dbhost' => $dbHost, |
|
92 | - 'dbport' => $dbPort, |
|
93 | - 'dbtableprefix' => $dbTablePrefix, |
|
94 | - ]); |
|
89 | + $this->config->setValues([ |
|
90 | + 'dbname' => $dbName, |
|
91 | + 'dbhost' => $dbHost, |
|
92 | + 'dbport' => $dbPort, |
|
93 | + 'dbtableprefix' => $dbTablePrefix, |
|
94 | + ]); |
|
95 | 95 | |
96 | - $this->dbUser = $dbUser; |
|
97 | - $this->dbPassword = $dbPass; |
|
98 | - $this->dbName = $dbName; |
|
99 | - $this->dbHost = $dbHost; |
|
100 | - $this->dbPort = $dbPort; |
|
101 | - $this->tablePrefix = $dbTablePrefix; |
|
102 | - } |
|
96 | + $this->dbUser = $dbUser; |
|
97 | + $this->dbPassword = $dbPass; |
|
98 | + $this->dbName = $dbName; |
|
99 | + $this->dbHost = $dbHost; |
|
100 | + $this->dbPort = $dbPort; |
|
101 | + $this->tablePrefix = $dbTablePrefix; |
|
102 | + } |
|
103 | 103 | |
104 | - /** |
|
105 | - * @param array $configOverwrite |
|
106 | - * @return \OC\DB\Connection |
|
107 | - */ |
|
108 | - protected function connect(array $configOverwrite = []) { |
|
109 | - $connectionParams = [ |
|
110 | - 'host' => $this->dbHost, |
|
111 | - 'user' => $this->dbUser, |
|
112 | - 'password' => $this->dbPassword, |
|
113 | - 'tablePrefix' => $this->tablePrefix, |
|
114 | - 'dbname' => $this->dbName |
|
115 | - ]; |
|
104 | + /** |
|
105 | + * @param array $configOverwrite |
|
106 | + * @return \OC\DB\Connection |
|
107 | + */ |
|
108 | + protected function connect(array $configOverwrite = []) { |
|
109 | + $connectionParams = [ |
|
110 | + 'host' => $this->dbHost, |
|
111 | + 'user' => $this->dbUser, |
|
112 | + 'password' => $this->dbPassword, |
|
113 | + 'tablePrefix' => $this->tablePrefix, |
|
114 | + 'dbname' => $this->dbName |
|
115 | + ]; |
|
116 | 116 | |
117 | - // adding port support through installer |
|
118 | - if (!empty($this->dbPort)) { |
|
119 | - if (ctype_digit($this->dbPort)) { |
|
120 | - $connectionParams['port'] = $this->dbPort; |
|
121 | - } else { |
|
122 | - $connectionParams['unix_socket'] = $this->dbPort; |
|
123 | - } |
|
124 | - } elseif (strpos($this->dbHost, ':')) { |
|
125 | - // Host variable may carry a port or socket. |
|
126 | - list($host, $portOrSocket) = explode(':', $this->dbHost, 2); |
|
127 | - if (ctype_digit($portOrSocket)) { |
|
128 | - $connectionParams['port'] = $portOrSocket; |
|
129 | - } else { |
|
130 | - $connectionParams['unix_socket'] = $portOrSocket; |
|
131 | - } |
|
132 | - $connectionParams['host'] = $host; |
|
133 | - } |
|
117 | + // adding port support through installer |
|
118 | + if (!empty($this->dbPort)) { |
|
119 | + if (ctype_digit($this->dbPort)) { |
|
120 | + $connectionParams['port'] = $this->dbPort; |
|
121 | + } else { |
|
122 | + $connectionParams['unix_socket'] = $this->dbPort; |
|
123 | + } |
|
124 | + } elseif (strpos($this->dbHost, ':')) { |
|
125 | + // Host variable may carry a port or socket. |
|
126 | + list($host, $portOrSocket) = explode(':', $this->dbHost, 2); |
|
127 | + if (ctype_digit($portOrSocket)) { |
|
128 | + $connectionParams['port'] = $portOrSocket; |
|
129 | + } else { |
|
130 | + $connectionParams['unix_socket'] = $portOrSocket; |
|
131 | + } |
|
132 | + $connectionParams['host'] = $host; |
|
133 | + } |
|
134 | 134 | |
135 | - $connectionParams = array_merge($connectionParams, $configOverwrite); |
|
136 | - $cf = new ConnectionFactory($this->config); |
|
137 | - return $cf->getConnection($this->config->getValue('dbtype', 'sqlite'), $connectionParams); |
|
138 | - } |
|
135 | + $connectionParams = array_merge($connectionParams, $configOverwrite); |
|
136 | + $cf = new ConnectionFactory($this->config); |
|
137 | + return $cf->getConnection($this->config->getValue('dbtype', 'sqlite'), $connectionParams); |
|
138 | + } |
|
139 | 139 | |
140 | - /** |
|
141 | - * @param string $userName |
|
142 | - */ |
|
143 | - abstract public function setupDatabase($userName); |
|
140 | + /** |
|
141 | + * @param string $userName |
|
142 | + */ |
|
143 | + abstract public function setupDatabase($userName); |
|
144 | 144 | |
145 | - public function runMigrations() { |
|
146 | - if (!is_dir(\OC::$SERVERROOT."/core/Migrations")) { |
|
147 | - return; |
|
148 | - } |
|
149 | - $ms = new MigrationService('core', \OC::$server->getDatabaseConnection()); |
|
150 | - $ms->migrate(); |
|
151 | - } |
|
145 | + public function runMigrations() { |
|
146 | + if (!is_dir(\OC::$SERVERROOT."/core/Migrations")) { |
|
147 | + return; |
|
148 | + } |
|
149 | + $ms = new MigrationService('core', \OC::$server->getDatabaseConnection()); |
|
150 | + $ms->migrate(); |
|
151 | + } |
|
152 | 152 | } |
@@ -11,43 +11,43 @@ |
||
11 | 11 | use OCP\Share\IManager; |
12 | 12 | |
13 | 13 | class OCSShareAPIMiddleware extends Middleware { |
14 | - /** @var IManager */ |
|
15 | - private $shareManager; |
|
16 | - /** @var IL10N */ |
|
17 | - private $l; |
|
14 | + /** @var IManager */ |
|
15 | + private $shareManager; |
|
16 | + /** @var IL10N */ |
|
17 | + private $l; |
|
18 | 18 | |
19 | - public function __construct(IManager $shareManager, |
|
20 | - IL10N $l) { |
|
21 | - $this->shareManager = $shareManager; |
|
22 | - $this->l = $l; |
|
23 | - } |
|
19 | + public function __construct(IManager $shareManager, |
|
20 | + IL10N $l) { |
|
21 | + $this->shareManager = $shareManager; |
|
22 | + $this->l = $l; |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * @param Controller $controller |
|
27 | - * @param string $methodName |
|
28 | - * |
|
29 | - * @throws OCSNotFoundException |
|
30 | - */ |
|
31 | - public function beforeController($controller, $methodName) { |
|
32 | - if ($controller instanceof ShareAPIController) { |
|
33 | - if (!$this->shareManager->shareApiEnabled()) { |
|
34 | - throw new OCSNotFoundException($this->l->t('Share API is disabled')); |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
25 | + /** |
|
26 | + * @param Controller $controller |
|
27 | + * @param string $methodName |
|
28 | + * |
|
29 | + * @throws OCSNotFoundException |
|
30 | + */ |
|
31 | + public function beforeController($controller, $methodName) { |
|
32 | + if ($controller instanceof ShareAPIController) { |
|
33 | + if (!$this->shareManager->shareApiEnabled()) { |
|
34 | + throw new OCSNotFoundException($this->l->t('Share API is disabled')); |
|
35 | + } |
|
36 | + } |
|
37 | + } |
|
38 | 38 | |
39 | - /** |
|
40 | - * @param Controller $controller |
|
41 | - * @param string $methodName |
|
42 | - * @param Response $response |
|
43 | - * @return Response |
|
44 | - */ |
|
45 | - public function afterController($controller, $methodName, Response $response) { |
|
46 | - if ($controller instanceof ShareAPIController) { |
|
47 | - /** @var ShareAPIController $controller */ |
|
48 | - $controller->cleanup(); |
|
49 | - } |
|
39 | + /** |
|
40 | + * @param Controller $controller |
|
41 | + * @param string $methodName |
|
42 | + * @param Response $response |
|
43 | + * @return Response |
|
44 | + */ |
|
45 | + public function afterController($controller, $methodName, Response $response) { |
|
46 | + if ($controller instanceof ShareAPIController) { |
|
47 | + /** @var ShareAPIController $controller */ |
|
48 | + $controller->cleanup(); |
|
49 | + } |
|
50 | 50 | |
51 | - return $response; |
|
52 | - } |
|
51 | + return $response; |
|
52 | + } |
|
53 | 53 | } |
@@ -25,155 +25,155 @@ |
||
25 | 25 | use OCP\Files\Storage\IStorage; |
26 | 26 | |
27 | 27 | class NullStorage extends Common { |
28 | - public function __construct($parameters) { |
|
29 | - parent::__construct($parameters); |
|
30 | - } |
|
28 | + public function __construct($parameters) { |
|
29 | + parent::__construct($parameters); |
|
30 | + } |
|
31 | 31 | |
32 | - public function getId() { |
|
33 | - return 'null'; |
|
34 | - } |
|
32 | + public function getId() { |
|
33 | + return 'null'; |
|
34 | + } |
|
35 | 35 | |
36 | - public function mkdir($path) { |
|
37 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
38 | - } |
|
36 | + public function mkdir($path) { |
|
37 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
38 | + } |
|
39 | 39 | |
40 | - public function rmdir($path) { |
|
41 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
42 | - } |
|
40 | + public function rmdir($path) { |
|
41 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
42 | + } |
|
43 | 43 | |
44 | - public function opendir($path) { |
|
45 | - return new IteratorDirectory([]); |
|
46 | - } |
|
44 | + public function opendir($path) { |
|
45 | + return new IteratorDirectory([]); |
|
46 | + } |
|
47 | 47 | |
48 | - public function is_dir($path) { |
|
49 | - return $path === ''; |
|
50 | - } |
|
48 | + public function is_dir($path) { |
|
49 | + return $path === ''; |
|
50 | + } |
|
51 | 51 | |
52 | - public function is_file($path) { |
|
53 | - return false; |
|
54 | - } |
|
52 | + public function is_file($path) { |
|
53 | + return false; |
|
54 | + } |
|
55 | 55 | |
56 | - public function stat($path) { |
|
57 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
58 | - } |
|
56 | + public function stat($path) { |
|
57 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
58 | + } |
|
59 | 59 | |
60 | - public function filetype($path) { |
|
61 | - return ($path === '') ? 'dir' : false; |
|
62 | - } |
|
60 | + public function filetype($path) { |
|
61 | + return ($path === '') ? 'dir' : false; |
|
62 | + } |
|
63 | 63 | |
64 | - public function filesize($path) { |
|
65 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
66 | - } |
|
64 | + public function filesize($path) { |
|
65 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
66 | + } |
|
67 | 67 | |
68 | - public function isCreatable($path) { |
|
69 | - return false; |
|
70 | - } |
|
68 | + public function isCreatable($path) { |
|
69 | + return false; |
|
70 | + } |
|
71 | 71 | |
72 | - public function isReadable($path) { |
|
73 | - return $path === ''; |
|
74 | - } |
|
72 | + public function isReadable($path) { |
|
73 | + return $path === ''; |
|
74 | + } |
|
75 | 75 | |
76 | - public function isUpdatable($path) { |
|
77 | - return false; |
|
78 | - } |
|
76 | + public function isUpdatable($path) { |
|
77 | + return false; |
|
78 | + } |
|
79 | 79 | |
80 | - public function isDeletable($path) { |
|
81 | - return false; |
|
82 | - } |
|
80 | + public function isDeletable($path) { |
|
81 | + return false; |
|
82 | + } |
|
83 | 83 | |
84 | - public function isSharable($path) { |
|
85 | - return false; |
|
86 | - } |
|
84 | + public function isSharable($path) { |
|
85 | + return false; |
|
86 | + } |
|
87 | 87 | |
88 | - public function getPermissions($path) { |
|
89 | - return null; |
|
90 | - } |
|
88 | + public function getPermissions($path) { |
|
89 | + return null; |
|
90 | + } |
|
91 | 91 | |
92 | - public function file_exists($path) { |
|
93 | - return $path === ''; |
|
94 | - } |
|
92 | + public function file_exists($path) { |
|
93 | + return $path === ''; |
|
94 | + } |
|
95 | 95 | |
96 | - public function filemtime($path) { |
|
97 | - return ($path === '') ? time() : false; |
|
98 | - } |
|
96 | + public function filemtime($path) { |
|
97 | + return ($path === '') ? time() : false; |
|
98 | + } |
|
99 | 99 | |
100 | - public function file_get_contents($path) { |
|
101 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
102 | - } |
|
100 | + public function file_get_contents($path) { |
|
101 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
102 | + } |
|
103 | 103 | |
104 | - public function file_put_contents($path, $data) { |
|
105 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
106 | - } |
|
104 | + public function file_put_contents($path, $data) { |
|
105 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
106 | + } |
|
107 | 107 | |
108 | - public function unlink($path) { |
|
109 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
110 | - } |
|
108 | + public function unlink($path) { |
|
109 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
110 | + } |
|
111 | 111 | |
112 | - public function rename($path1, $path2) { |
|
113 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
114 | - } |
|
112 | + public function rename($path1, $path2) { |
|
113 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
114 | + } |
|
115 | 115 | |
116 | - public function copy($path1, $path2) { |
|
117 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
118 | - } |
|
116 | + public function copy($path1, $path2) { |
|
117 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
118 | + } |
|
119 | 119 | |
120 | - public function fopen($path, $mode) { |
|
121 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
122 | - } |
|
120 | + public function fopen($path, $mode) { |
|
121 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
122 | + } |
|
123 | 123 | |
124 | - public function getMimeType($path) { |
|
125 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
126 | - } |
|
124 | + public function getMimeType($path) { |
|
125 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
126 | + } |
|
127 | 127 | |
128 | - public function hash($type, $path, $raw = false) { |
|
129 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
130 | - } |
|
128 | + public function hash($type, $path, $raw = false) { |
|
129 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
130 | + } |
|
131 | 131 | |
132 | - public function free_space($path) { |
|
133 | - return FileInfo::SPACE_UNKNOWN; |
|
134 | - } |
|
132 | + public function free_space($path) { |
|
133 | + return FileInfo::SPACE_UNKNOWN; |
|
134 | + } |
|
135 | 135 | |
136 | - public function touch($path, $mtime = null) { |
|
137 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
138 | - } |
|
136 | + public function touch($path, $mtime = null) { |
|
137 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
138 | + } |
|
139 | 139 | |
140 | - public function getLocalFile($path) { |
|
141 | - return false; |
|
142 | - } |
|
140 | + public function getLocalFile($path) { |
|
141 | + return false; |
|
142 | + } |
|
143 | 143 | |
144 | - public function hasUpdated($path, $time) { |
|
145 | - return false; |
|
146 | - } |
|
144 | + public function hasUpdated($path, $time) { |
|
145 | + return false; |
|
146 | + } |
|
147 | 147 | |
148 | - public function getETag($path) { |
|
149 | - return ''; |
|
150 | - } |
|
148 | + public function getETag($path) { |
|
149 | + return ''; |
|
150 | + } |
|
151 | 151 | |
152 | - public function isLocal() { |
|
153 | - return false; |
|
154 | - } |
|
152 | + public function isLocal() { |
|
153 | + return false; |
|
154 | + } |
|
155 | 155 | |
156 | - public function getDirectDownload($path) { |
|
157 | - return false; |
|
158 | - } |
|
156 | + public function getDirectDownload($path) { |
|
157 | + return false; |
|
158 | + } |
|
159 | 159 | |
160 | - public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) { |
|
161 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
162 | - } |
|
160 | + public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) { |
|
161 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
162 | + } |
|
163 | 163 | |
164 | - public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath) { |
|
165 | - throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
166 | - } |
|
164 | + public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath) { |
|
165 | + throw new \OC\ForbiddenException('This request is not allowed to access the filesystem'); |
|
166 | + } |
|
167 | 167 | |
168 | - public function test() { |
|
169 | - return true; |
|
170 | - } |
|
168 | + public function test() { |
|
169 | + return true; |
|
170 | + } |
|
171 | 171 | |
172 | - public function getOwner($path) { |
|
173 | - return null; |
|
174 | - } |
|
172 | + public function getOwner($path) { |
|
173 | + return null; |
|
174 | + } |
|
175 | 175 | |
176 | - public function getCache($path = '', $storage = null) { |
|
177 | - return new NullCache(); |
|
178 | - } |
|
176 | + public function getCache($path = '', $storage = null) { |
|
177 | + return new NullCache(); |
|
178 | + } |
|
179 | 179 | } |