当前位置: 首页>>代码示例>>PHP>>正文


PHP filesystem::find_share方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:note.php


注:本文中的filesystem::find_share方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。