• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Admin

Well-Known Member
Staff member
Administrator
Code chmod all file trên host, up file chmod.php lên rùi run http://domain.com/chmod.php là xong thư mục sẽ đc chmod 701 và file 404 đây là mức chmod bảo mật nhất mà người dùng vẫn truy cập được :)

PHP:
<?php
 set_time_limit(900);
 function chmodall($path)
{
 $dir = opendir($path);
  while($file = readdir($dir))
 {
   if ($file != '.' && $file != '..')
  {
    if (is_dir($path . $file))
   {
    chmod($path . $file, 0701);
    chmodall($path . $file . '/');
   } else {
    chmod($path . $file, 0404);
   }
  }
 }
 closedir($dir);
}
 chmodall($_SERVER['DOCUMENT_ROOT'] . '/');
?>
http://upvn.mobi/?id=38916
 

Facebook Comments

New posts New threads New resources

Back
Top