home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / filesystem / read_permissions.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  66 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12. $return_to_path = urlencode(smartstrip($return_to_path));
  13. $filename = basename($path);
  14. $extension = get_extension($filename);
  15. $type = $filetypes->get_type($extension);
  16. $location = dirname($path);
  17. $share = $fs->get_share($path);
  18. $is_owner = $fs->is_owner($GO_SECURITY->user_id, $path);
  19. ?>
  20. <input type="hidden" name="task" value="read_permissions" />
  21. <input type="hidden" name="next_task" value="properties" />
  22. <input type="hidden" name="share_all" />
  23. <table border="0" cellpadding="0" cellspacing="0" class="TableBorder" width="400">
  24. <tr>
  25.     <td valign="top">
  26.     <table border="0" cellpadding="1" cellspacing="1" width="100%">
  27.     <tr>
  28.         <td colspan="99" class="TableHead"><?php echo $strReadRights; ?></td>
  29.     </tr>
  30.     <?php
  31.     if ($share)
  32.     {
  33.         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>';
  34.         echo '<td class="ActiveTab" align="center">'.$strReadRights.'</td>';
  35.         echo '<td class="Tab" align="center"><a href="'.$_SERVER['PHP_SELF'].'?task=write_permissions&path='.$urlencoded_path.'&return_to_path='.$return_to_path.'" class="Tab" />'.$strWriteRights.'</a></td></tr>';
  36.     }
  37.     ?>
  38.     <tr>
  39.         <td class="TableInside" colspan="99" width="100%" height="300" valign="top">
  40.         <table border="0" width="100%">
  41.         <tr>
  42.             <td>
  43.             <br />
  44.             <?php
  45.                 print_acl($share["acl_read"], !$is_owner);
  46.             ?>
  47.  
  48.             </td>
  49.         </tr>
  50.         <tr>
  51.             <td class="cmd" colspan="2" align="center">
  52.                 <br />
  53.  
  54.                 <?php
  55.                     $button = new button($cmdClose, 'javascript:document.location=\''.$_SERVER['PHP_SELF'].'?path='.$return_to_path.'\';');
  56.                 ?>
  57.             </td>
  58.         </tr>
  59.         </table>
  60.         </td>
  61.     </tr>
  62.     </table>
  63.     </td>
  64. </tr>
  65. </table>
  66.