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) {
|
2011-07-31 03:40:19 +04:00
|
|
|
new OC_Share($source, $uid, $permissions);
|
2011-07-28 23:31:52 +04:00
|
|
|
}
|
|
|
|
}
|
2011-07-20 21:34:16 +04:00
|
|
|
|
|
|
|
?>
|