summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/remote.php b/remote.php
new file mode 100644
index 00000000000..e11b72ee8c2
--- /dev/null
+++ b/remote.php
@@ -0,0 +1,12 @@
+<?php
+$RUNTIME_NOSETUPFS = true;
+//$RUNTIME_NOAPPS = TRUE;
+require_once('lib/base.php');
+$file = OCP\CONFIG::getAppValue('core', $_GET['service']);
+if(is_null($file)){
+ header('HTTP/1.0 404 Not Found');
+ exit;
+}
+$baseuri = OC::$WEBROOT . '/remote.php?service=' . $_GET['service'] . '&amp;p=';
+parse_str($_GET['p'], $_GET);
+require_once(OC::$APPSROOT . $file); \ No newline at end of file