home *** CD-ROM | disk | FTP | other *** search
- <?php
- /*
- Copyright Intermesh 2003
- Author: Merijn Schering <mschering@intermesh.nl>
- Version: 1.0 Release date: 08 July 2003
-
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 2 of the License, or (at your
- option) any later version.
- */
- $return_to_path = urlencode(smartstrip($return_to_path));
- $filename = basename($path);
- $extension = get_extension($filename);
- $type = $filetypes->get_type($extension);
- $location = dirname($path);
- $share = $fs->get_share($path);
- $is_owner = $fs->is_owner($GO_SECURITY->user_id, $path);
- ?>
- <input type="hidden" name="task" value="write_permissions" />
- <input type="hidden" name="next_task" value="properties" />
- <input type="hidden" name="share_all" />
- <table border="0" cellpadding="0" cellspacing="0" class="TableBorder" width="400">
- <tr>
- <td valign="top">
- <table border="0" cellpadding="1" cellspacing="1" width="100%">
- <tr>
- <td colspan="99" class="TableHead"><?php echo $strWriteRights; ?></td>
- </tr>
- <?php
- if ($share)
- {
- echo '<tr><td class="Tab" align="center"><a href="'.$_SERVER['PHP_SELF'].'?task=properties&path='.$urlencoded_path.'&return_to_path='.$return_to_path.'" class="Tab" />'.$fbGeneral.'</a></td>';
- echo '<td class="Tab" align="center"><a href="'.$_SERVER['PHP_SELF'].'?task=read_permissions&path='.$urlencoded_path.'&return_to_path='.$return_to_path.'" class="Tab" />'.$strReadRights.'</a></td>';
- echo '<td class="ActiveTab" align="center">'.$strWriteRights.'</td></tr>'; }
- ?>
- <tr>
- <td class="TableInside" colspan="99" width="100%" height="300" valign="top">
- <table border="0" width="100%">
- <tr>
- <td>
- <br />
- <?php
- print_acl($share["acl_write"], !$is_owner);
- ?>
-
- </td>
- </tr>
-
-
- <tr>
- <td colspan="2" align="center">
- <br />
- <?php
- $button = new button($cmdClose, 'javascript:document.location=\''.$_SERVER['PHP_SELF'].'?path='.$return_to_path.'\';');
- ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-