summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-14 00:28:22 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-14 00:28:28 +0200
commite7c106d91e9970b95061eaa2812a0d0c5be72526 (patch)
tree174f7c63e504da6a5364bdad03514f8ce3e76972 /public.php
parent0fb90fa87568fc12e1f05d45c53ef9cf88991ba6 (diff)
downloadnextcloud-server-e7c106d91e9970b95061eaa2812a0d0c5be72526.tar.gz
nextcloud-server-e7c106d91e9970b95061eaa2812a0d0c5be72526.zip
selective app loading for remote/public
Diffstat (limited to 'public.php')
-rw-r--r--public.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/public.php b/public.php
index 27a75adec93..f974e1c50d2 100644
--- a/public.php
+++ b/public.php
@@ -1,10 +1,15 @@
<?php
$RUNTIME_NOSETUPFS = true;
-//$RUNTIME_NOAPPS = TRUE;
+$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
$file = OCP\CONFIG::getAppValue('core', 'public_' . strip_tags($_GET['service']));
if(is_null($file)){
header('HTTP/1.0 404 Not Found');
exit;
}
-require_once(OC::$APPSROOT . $file); \ No newline at end of file
+
+$parts=explode('/',$file);
+$app=$parts[2];
+OC_App::loadApp($app);
+
+require_once(OC::$APPSROOT . $file);