action_chmod_file.php
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 1k
Category:

WEB Mail

Development Platform:

PHP

  1. <?php
  2. if (FALSE == is_array($buffer_selection_files)) die($get_string->get('no_file_chmod'));
  3. // default mode
  4. settype($_INI['default_fileperm'],'integer');
  5. echo "<!-- default : ".$_INI['default_fileperm']." -->n";
  6. $default_values = FormatePermissions_Array($_INI['default_fileperm']);
  7. echo "<p class="big_text">".$get_string->get('all_files')."</p>n";
  8. echo  html_box_chmod($default_values,'all_files');
  9. echo "<hr>n";
  10. foreach ($buffer_selection_files as $id => $path)
  11. {
  12.     $file_perms     = FormatePermissions_Array(fileperms($path));    
  13.     echo "<!-- file perms : ".fileperms($path)." -->n";
  14.     echo "<p class="big_text">".translate_path($path)."</p>n";
  15.     echo  html_box_chmod($file_perms,'file_'.md5($path));
  16.     echo "<hr>n";
  17. }
  18. echo "Sorry not Finished...<br>n";
  19. echo "To do : functions to handle array - mode for ugo only...<br>n";