summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/getstatuses.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-22 11:45:36 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-22 11:57:58 -0400
commit25d474579acd4ead174a83b22f1a3d712e6b682a (patch)
tree94fb2670bb0e9b1dcf0b6d45f2373bea5a98df52 /apps/files_sharing/ajax/getstatuses.php
parent9699ff03bd1a200fc7f73bb29173169d84009e5d (diff)
downloadnextcloud-server-25d474579acd4ead174a83b22f1a3d712e6b682a.tar.gz
nextcloud-server-25d474579acd4ead174a83b22f1a3d712e6b682a.zip
Removing most of files_sharing, the Share API implemented the majority of it
Diffstat (limited to 'apps/files_sharing/ajax/getstatuses.php')
-rw-r--r--apps/files_sharing/ajax/getstatuses.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/files_sharing/ajax/getstatuses.php b/apps/files_sharing/ajax/getstatuses.php
deleted file mode 100644
index 1be4d9a0d9c..00000000000
--- a/apps/files_sharing/ajax/getstatuses.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-OCP\JSON::checkAppEnabled('files_sharing');
-OCP\JSON::checkLoggedIn();
-
-$items = array();
-$userDirectory = '/'.OCP\USER::getUser().'/files';
-$dirLength = strlen($userDirectory);
-if ($rows = OC_Share::getMySharedItems()) {
- for ($i = 0; $i < count($rows); $i++) {
- $source = $rows[$i]['source'];
- // Strip out user directory
- $item = substr($source, $dirLength);
- if ($rows[$i]['uid_shared_with'] == OC_Share::PUBLICLINK) {
- $items[$item] = true;
- } else if (!isset($items[$item])) {
- $items[$item] = false;
- }
- }
-}
-
-OCP\JSON::success(array('data' => $items));