diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-20 13:34:16 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-20 13:34:16 -0400 |
commit | 029b21bf5464e52af159920cfb00dcedeb189e3b (patch) | |
tree | 2a9ed37ea849c3f8bd0be41e16aba7e4ad357b5c /apps/files_sharing/ajax | |
parent | 61837428ba59d1c5cc4730dda7d7a12c5bbb25f8 (diff) | |
download | nextcloud-server-029b21bf5464e52af159920cfb00dcedeb189e3b.tar.gz nextcloud-server-029b21bf5464e52af159920cfb00dcedeb189e3b.zip |
First implementation of sharing user interface
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r-- | apps/files_sharing/ajax/share.php | 12 | ||||
-rw-r--r-- | apps/files_sharing/ajax/unshare.php | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php new file mode 100644 index 00000000000..7007d26f8be --- /dev/null +++ b/apps/files_sharing/ajax/share.php @@ -0,0 +1,12 @@ +<?php +$RUNTIME_NOAPPS = true; + +require_once('../../../lib/base.php'); +require_once('../lib_share.php'); + +$source = $_GET['source']; +$uid_shared_with = array($_GET['uid_shared_with']); +$permissions = $_GET['permissions']; +new OC_SHARE($source, $uid_shared_with, $permissions); + +?>
\ No newline at end of file diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php new file mode 100644 index 00000000000..3207a972c93 --- /dev/null +++ b/apps/files_sharing/ajax/unshare.php @@ -0,0 +1,12 @@ +<?php +$RUNTIME_NOAPPS = true; + +require_once('../../../lib/base.php'); +require_once('../lib_share.php'); + +$source = $_GET['source']; +$uid_shared_with = array($_GET['uid_shared_with']); +error_log("deleteitem called".$source.$uid_shared_with); +OC_SHARE::unshare($source, $uid_shared_with); + +?>
\ No newline at end of file |