本文整理汇总了PHP中filesystem::find_share方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::find_share方法的具体用法?PHP filesystem::find_share怎么用?PHP filesystem::find_share使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::find_share方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$GO_SECURITY->delete_acl($acl_write);
$feedback = '<p class="Error">' . $strSaveError . '</p>';
} else {
if ($_POST['contact_id'] > 0) {
$addressbook = $ab->get_contact($_POST['contact_id']);
$GO_SECURITY->copy_acl($addressbook['acl_read'], $acl_read);
$GO_SECURITY->copy_acl($addressbook['acl_write'], $acl_write);
} elseif ($_POST['project_id'] > 0) {
$projects = new projects();
$project = $projects->get_project($_POST['project_id']);
$GO_SECURITY->copy_acl($project['acl_read'], $acl_read);
$GO_SECURITY->copy_acl($project['acl_write'], $acl_write);
} elseif ($_POST['file_path'] != '') {
require_once $GO_CONFIG->class_path . 'filesystem.class.inc';
$fs = new filesystem();
if ($share = $fs->find_share($_POST['file_path'])) {
$GO_SECURITY->copy_acl($share['acl_read'], $acl_read);
$GO_SECURITY->copy_acl($share['acl_write'], $acl_write);
}
$GO_SECURITY->add_user_to_acl($GO_SECURITY->user_id, $acl_write);
} else {
$GO_SECURITY->add_user_to_acl($GO_SECURITY->user_id, $acl_write);
}
if ($_POST['responsible_user_id'] > 0 && (!$GO_SECURITY->user_in_acl($_POST['responsible_user_id'], $acl_read) && !$GO_SECURITY->user_in_acl($_POST['responsible_user_id'], $acl_write))) {
$GO_SECURITY->add_user_to_acl($_POST['responsible_user_id'], $acl_write);
}
if ($_POST['close'] == 'true') {
header('Location: ' . $return_to);
exit;
}
}