2011-07-20 21:34:16 +04:00
|
|
|
<?php
|
|
|
|
$RUNTIME_NOAPPS = true;
|
|
|
|
|
|
|
|
require_once('../../../lib/base.php');
|
|
|
|
require_once('../lib_share.php');
|
|
|
|
|
2011-07-28 23:31:52 +04:00
|
|
|
$sources = $_GET['sources'];
|
|
|
|
$uid_shared_with = $_GET['uid_shared_with'];
|
2011-07-20 21:34:16 +04:00
|
|
|
$permissions = $_GET['permissions'];
|
2011-07-28 23:31:52 +04:00
|
|
|
foreach ($sources as $source) {
|
|
|
|
foreach ($uid_shared_with as $uid) {
|
|
|
|
new OC_SHARE($source, $uid, $permissions);
|
|
|
|
}
|
|
|
|
}
|
2011-07-20 21:34:16 +04:00
|
|
|
|
|
|
|
?>
|