diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-14 00:28:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-14 00:28:28 +0200 |
commit | e7c106d91e9970b95061eaa2812a0d0c5be72526 (patch) | |
tree | 174f7c63e504da6a5364bdad03514f8ce3e76972 /remote.php | |
parent | 0fb90fa87568fc12e1f05d45c53ef9cf88991ba6 (diff) | |
download | nextcloud-server-e7c106d91e9970b95061eaa2812a0d0c5be72526.tar.gz nextcloud-server-e7c106d91e9970b95061eaa2812a0d0c5be72526.zip |
selective app loading for remote/public
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 7 |
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 |