aboutsummaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:07:16 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:07:16 +0200
commit5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd (patch)
tree702cef4bef9929971a5f5baf1d79fa237c058fd7 /remote.php
parentd032345191c57294d5723639f777692c85bd2b1a (diff)
parent1138df0f4b0cd2e151fa65670705a578c718a0c2 (diff)
downloadnextcloud-server-5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd.tar.gz
nextcloud-server-5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd.zip
Merge branch 'remote.php'
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/remote.php b/remote.php
new file mode 100644
index 00000000000..db2d1756f7a
--- /dev/null
+++ b/remote.php
@@ -0,0 +1,16 @@
+<?php
+$RUNTIME_NOSETUPFS = true;
+//$RUNTIME_NOAPPS = TRUE;
+require_once('lib/base.php');
+$path_info = $_SERVER['PATH_INFO'];
+if (!$pos = strpos($path_info, '/', 1)) {
+ $pos = strlen($path_info);
+}
+$service=substr($path_info, 1, $pos-1);
+$file = OCP\CONFIG::getAppValue('core', $service);
+if(is_null($file)){
+ //header('HTTP/1.0 404 Not Found');
+ exit;
+}
+$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
+require_once(OC::$APPSROOT . $file);