Вход Регистрация
Файл: sys/inc/chmod_test.php
Строк: 23
<?

function test_chmod($df) {
global 
$err;
    if (
is_writable($df)) {
        echo 
'<span class="on">' . $df . '<br/>[Необходимые права имеются]</span><br/>';
    } elseif (!
file_exists($df)) {
        
$err[]='Создайте папку ' . $df;
    } else {
        
$err[]='Установите права (755 или 777) на папку ' . $df;
    }
}

if (
file_exists(H . 'install/'))
    
test_chmod(H . 'install/');
test_chmod(H . 'sys/dat/');
test_chmod(H . 'sys/forum/files');
test_chmod(H . 'sys/gallery/48/');
test_chmod(H . 'sys/gallery/50/');
test_chmod(H . 'sys/gallery/128/');
test_chmod(H . 'sys/gallery/640/');
test_chmod(H . 'sys/gallery/foto/');
test_chmod(H . 'sys/inc/');
test_chmod(H . 'sys/fnc/');
test_chmod(H . 'sys/obmen/files/');
test_chmod(H . 'sys/obmen/screens/14/');
test_chmod(H . 'sys/obmen/screens/48/');
test_chmod(H . 'sys/obmen/screens/128/');
test_chmod(H . 'sys/update/');
test_chmod(H . 'sys/tmp/');
test_chmod(H . 'style/themes/');
test_chmod(H . 'style/smiles/');
test_chmod(H . 'sys/gift/');
test_chmod(H . 'gangs/emblem/norm/');
test_chmod(H . 'gangs/emblem/mini/');

if (
file_exists(H . 'sys/dat/settings_6.2.dat'))
    
test_chmod(H . 'sys/dat/settings_6.2.dat');
?>
Онлайн: 3
Реклама