summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-14 13:29:03 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:13:24 +0200
commitcf5a72c10398bb18817cff8ca4dfba4429a97123 (patch)
treed9ede2e59296746411c2781c1fe074d38af3235d /apps/files_sharing/ajax
parentd7de35376d7e068abdfb49e8336feab25e313662 (diff)
downloadnextcloud-server-cf5a72c10398bb18817cff8ca4dfba4429a97123.tar.gz
nextcloud-server-cf5a72c10398bb18817cff8ca4dfba4429a97123.zip
Add interface for adding a public share to a different ownCloud instance
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/testremote.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/testremote.php b/apps/files_sharing/ajax/testremote.php
new file mode 100644
index 00000000000..10ea3075ed3
--- /dev/null
+++ b/apps/files_sharing/ajax/testremote.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+$remote = $_GET['remote'];
+
+if (file_get_contents('https://' . $remote . '/status.php')) {
+ echo 'https';
+} elseif (file_get_contents('http://' . $remote . '/status.php')) {
+ echo 'http';
+}else{
+ echo 'false';
+}