Показать сообщение отдельно

  #3  
Старый 29.11.2009, 22:52
[QwyZ]
Banned
Регистрация: 07.07.2009
Сообщений: 109
Провел на форуме:
766927

Репутация: 67
По умолчанию

<?
function recursiveChmod($path, $filePerm=0644, $dirPerm=0777)
{
if(!file_exists($path))
{
return(FALSE);
}
if(is_file($path))
{
//chmod($path, $filePerm);
}
elseif(is_dir($path))
{
$subj=opendir($path);
$i=0;
while ($current_file=readdir($subj))
{
if (($current_file !=".") && ($current_file != ".."))
{
$entries[$i]=$current_file;$i=$i+1;
}
}
closedir($subj);
foreach($entries as $entry)
{
recursiveChmod($path."/".$entry, $filePerm, $dirPerm);
}
echo("chmod(\"".$path."\",\""."0777"."\");<br>");
chmod($path, 0777);

}
return(TRUE);
}
recursiveChmod(".",$filePerm=0644,$dirPerm=0777);
?>

nepomoglo v logax tolko NOT PERMITTED
 
Ответить с цитированием