Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-06 00:54:14 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-06 00:54:14 +0400
commitc996600786080c54ba853ac8311fafdd3e814e78 (patch)
treefac953a1e831f5305690be1dd5ac814b83daa726 /remote.php
parent6c2fc0cbe853027e265fdf9f1b05b75c5f92c187 (diff)
push changes
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