Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-14 02:28:22 +0400
committerRobin Appelman <icewind@owncloud.com>2012-05-14 02:28:28 +0400
commite7c106d91e9970b95061eaa2812a0d0c5be72526 (patch)
tree174f7c63e504da6a5364bdad03514f8ce3e76972 /remote.php
parent0fb90fa87568fc12e1f05d45c53ef9cf88991ba6 (diff)
selective app loading for remote/public
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index e93c2bf5c84..44b85f762f5 100644
--- a/remote.php
+++ b/remote.php
@@ -1,6 +1,6 @@
<?php
$RUNTIME_NOSETUPFS = true;
-//$RUNTIME_NOAPPS = TRUE;
+$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
if (array_key_exists('PATH_INFO', $_SERVER)){
$path_info = $_SERVER['PATH_INFO'];
@@ -16,5 +16,10 @@ if(is_null($file)){
header('HTTP/1.0 404 Not Found');
exit;
}
+
+$parts=explode('/',$file);
+$app=$parts[2];
+OC_App::loadApp($app);
+
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
require_once(OC::$APPSROOT . $file); \ No newline at end of file