summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/settings-admin.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-12 19:49:52 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:22:38 +0200
commit84a651e46deff5fe577ed564e5826ff24c18f9a5 (patch)
tree1b137ebc8b504180b7bfeed99590c8c751af07e9 /apps/files_sharing/settings-admin.php
parente7b58ed2bdfe4bb56866e76b8fdd618946fa3c51 (diff)
downloadnextcloud-server-84a651e46deff5fe577ed564e5826ff24c18f9a5.tar.gz
nextcloud-server-84a651e46deff5fe577ed564e5826ff24c18f9a5.zip
add settings to disable server to server sharing
Diffstat (limited to 'apps/files_sharing/settings-admin.php')
-rw-r--r--apps/files_sharing/settings-admin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files_sharing/settings-admin.php b/apps/files_sharing/settings-admin.php
new file mode 100644
index 00000000000..9c630b6a911
--- /dev/null
+++ b/apps/files_sharing/settings-admin.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Copyright (c) 2011 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+\OC_Util::checkAdminUser();
+
+\OCP\Util::addScript('files_sharing', 'settings-admin');
+
+$tmpl = new OCP\Template('files_sharing', 'settings-admin');
+$tmpl->assign('outgoingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isOutgoingServer2serverShareEnabled());
+$tmpl->assign('incomingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled());
+
+return $tmpl->fetchPage();