summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'public.php')
-rw-r--r--public.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/public.php b/public.php
new file mode 100644
index 00000000000..27a75adec93
--- /dev/null
+++ b/public.php
@@ -0,0 +1,10 @@
+<?php
+$RUNTIME_NOSETUPFS = 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