Browse Source
Allow to call the files even when you are in another instance atm
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1638/head
Joas Schilling
9 years ago
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
10 changed files with
11 additions and
11 deletions
-
console.php
-
cron.php
-
index.php
-
ocs-provider/index.php
-
ocs/providers.php
-
ocs/v1.php
-
ocs/v2.php
-
public.php
-
remote.php
-
status.php
|
|
|
@ -45,7 +45,7 @@ function exceptionHandler($exception) { |
|
|
|
exit(1); |
|
|
|
} |
|
|
|
try { |
|
|
|
require_once 'lib/base.php'; |
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
|
|
|
|
// set to run indefinitely if needed
|
|
|
|
set_time_limit(0); |
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
require_once 'lib/base.php'; |
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
|
|
|
|
if (\OCP\Util::needUpgrade()) { |
|
|
|
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); |
|
|
|
|
|
|
|
@ -34,8 +34,8 @@ if (version_compare(PHP_VERSION, '5.6.0') === -1) { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
require_once 'lib/base.php'; |
|
|
|
|
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
|
|
|
|
OC::handleRequest(); |
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
require_once('../lib/base.php'); |
|
|
|
require_once __DIR__ . '/../lib/base.php'; |
|
|
|
|
|
|
|
header('Content-Type: application/json'); |
|
|
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
require_once '../lib/base.php'; |
|
|
|
require_once __DIR__ . '/../lib/base.php'; |
|
|
|
|
|
|
|
header('Content-type: application/xml'); |
|
|
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
require_once '../lib/base.php'; |
|
|
|
require_once __DIR__ . '/../lib/base.php'; |
|
|
|
|
|
|
|
if (\OCP\Util::needUpgrade() |
|
|
|
|| \OC::$server->getSystemConfig()->getValue('maintenance', false) |
|
|
|
|
|
|
|
@ -20,4 +20,4 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
require_once 'v1.php'; |
|
|
|
require_once __DIR__ . '/v1.php'; |
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
*/ |
|
|
|
try { |
|
|
|
|
|
|
|
require_once 'lib/base.php'; |
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
if (\OCP\Util::needUpgrade()) { |
|
|
|
// since the behavior of apps or remotes are unpredictable during
|
|
|
|
// an upgrade, return a 503 directly
|
|
|
|
|
|
|
|
@ -107,7 +107,7 @@ function resolveService($service) { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
require_once 'lib/base.php'; |
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
|
|
|
|
// All resources served via the DAV endpoint should have the strictest possible
|
|
|
|
// policy. Exempted from this is the SabreDAV browser plugin which overwrites
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
require_once 'lib/base.php'; |
|
|
|
require_once __DIR__ . '/lib/base.php'; |
|
|
|
|
|
|
|
$systemConfig = \OC::$server->getSystemConfig(); |
|
|
|
|
|
|
|
|