diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-24 00:39:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-24 00:39:59 +0200 |
commit | 856d9c0b54cc971940df4ed64429d994faf770f9 (patch) | |
tree | d89f73b5e24b6c0535e6669080f15ef5e1165e04 /lib/ocs.php | |
parent | 796768577154dc9cc2542e33d8d81c6a5fa77dea (diff) | |
download | nextcloud-server-856d9c0b54cc971940df4ed64429d994faf770f9.tar.gz nextcloud-server-856d9c0b54cc971940df4ed64429d994faf770f9.zip |
some indention fixes
Diffstat (limited to 'lib/ocs.php')
-rw-r--r-- | lib/ocs.php | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/ocs.php b/lib/ocs.php index 0cd7888fcf9..9d30e172f55 100644 --- a/lib/ocs.php +++ b/lib/ocs.php @@ -111,21 +111,6 @@ class OC_OCS { $login = self::readData($method, 'login', 'text'); $passwd = self::readData($method, 'password', 'text'); OC_OCS::personcheck($format,$login,$passwd); -/* - } else if ($method == 'post' && $ex[$paracount - 4] == 'v1.php' && $ex[$paracount - 3] == 'person' && $ex[$paracount - 2] == 'add') { - if (OC_Group::inGroup(self::checkPassword(), 'admin')) { - $login = self::readData($method, 'login', 'text'); - $password = self::readData($method, 'password', 'text'); - try { - OC_User::createUser($login, $password); - echo self::generateXml($format, 'ok', 201, ''); - } catch (Exception $exception) { - echo self::generateXml($format, 'fail', 400, $exception->getMessage()); - } - } else { - echo self::generateXml($format, 'fail', 403, 'Permission denied'); - } -*/ // ACTIVITY // activityget - GET ACTIVITY page,pagesize als urlparameter @@ -149,8 +134,8 @@ class OC_OCS { }elseif(($method=='get') and ($ex[$paracount-5] == 'v1.php') and ($ex[$paracount-3] == 'getattribute')){ $app=$ex[$paracount-2]; OC_OCS::privateDataGet($format, $app); - }elseif(($method=='get') and ($ex[$paracount-6] == 'v1.php') and ($ex[$paracount-4] == 'getattribute')){ - + }elseif(($method=='get') and ($ex[$paracount-6] == 'v1.php') and ($ex[$paracount-4] == 'getattribute')){ + $key=$ex[$paracount-2]; $app=$ex[$paracount-3]; OC_OCS::privateDataGet($format, $app,$key); |