summaryrefslogtreecommitdiffstats
path: root/apps/external/ajax
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-08-26 17:30:07 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-08-26 17:30:07 +0200
commit72e9a2ce57ee88503db83614cec5ccda71f0b58e (patch)
tree8bc301ca22d9ca08ea54426bcb61f62bd1c1cb75 /apps/external/ajax
parent32bad688bdb4fea55eba9d4255fc55f1c60a0aca (diff)
downloadnextcloud-server-72e9a2ce57ee88503db83614cec5ccda71f0b58e.tar.gz
nextcloud-server-72e9a2ce57ee88503db83614cec5ccda71f0b58e.zip
moved to apps repository
Diffstat (limited to 'apps/external/ajax')
-rw-r--r--apps/external/ajax/setsites.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/external/ajax/setsites.php b/apps/external/ajax/setsites.php
deleted file mode 100644
index 0f9e061d0e0..00000000000
--- a/apps/external/ajax/setsites.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/**
- * 2012 Frank Karlitschek frank@owncloud.org
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
- */
-
-
-OCP\User::checkAdminUser();
-OCP\JSON::callCheck();
-
-$sites = array();
-for ($i = 0; $i < sizeof($_POST['site_name']); $i++) {
- if (!empty($_POST['site_name'][$i]) && !empty($_POST['site_url'][$i])) {
- array_push($sites, array(strip_tags($_POST['site_name'][$i]), strip_tags($_POST['site_url'][$i])));
- }
-}
-
-if (sizeof($sites) == 0)
- OC_Appconfig::deleteKey('external', 'sites');
-else
- OCP\Config::setAppValue('external', 'sites', json_encode($sites));
-
-echo 'true';