16 lines
No EOL
356 B
PHP
16 lines
No EOL
356 B
PHP
<?php
|
|
$RUNTIME_NOAPPS = true;
|
|
|
|
require_once('../../../lib/base.php');
|
|
require_once('../lib_share.php');
|
|
|
|
$sources = explode(";", $_POST['sources']);
|
|
$uid_shared_with = $_POST['uid_shared_with'];
|
|
$permissions = $_POST['permissions'];
|
|
foreach ($sources as $source) {
|
|
foreach ($uid_shared_with as $uid) {
|
|
new OC_Share($source, $uid, $permissions);
|
|
}
|
|
}
|
|
|
|
?>
|