summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/share.php
blob: 6e860d584ea33c51aabeb99ecb2493c6dc9834f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$RUNTIME_NOAPPS = true;

require_once('../../../lib/base.php');
require_once('../lib_share.php');

$sources = $_GET['sources'];
$uid_shared_with = $_GET['uid_shared_with'];
$permissions = $_GET['permissions'];
foreach ($sources as $source) {
	foreach ($uid_shared_with as $uid) {
		new OC_Share($source, $uid, $permissions);
	}
}

?>