Вход Регистрация
Файл: system/system.php
Строк: 42
<?php
mSect 
('Проверка системы');
echo 
"<div class='post'>";
sect ('[link] Инклуды');
if (
defined ('SiteGuard'))
    
ok ('require H.'guard/inc/siteguard.php';');
    else
    
no ('Вставьте код: 
    <b>require H.'
guard/inc/siteguard.php';</b> в конец файла /sys/inc/thead.php перед &#63> и обновите страницу');
echo 
"</div><div class='post'>";
sect ('[link] BB-коды');
if (
$set['bb_url'])
    
ok ('BB-код URL включен');
    else
    
no ('Включите BB-код URL (вставка ссылок) (<a href="/adm_panel/settings_bbcode.php">Админка/Настройки BBcode</a>)'1);
echo 
"</div><div class='post'>";
sect ('[link] Права на файлы');
function 
permissions($filez)
    {
    return 
decoct(@fileperms("$filez")) % 1000;
    }

function 
test_chmod($df,$chmod)
    {
    global 
$err,$user;
    if (isset(
$user) && $user['level']==10)
        
$show_df=preg_replace('#^'.preg_quote(H).'#''/'$df);
        else 
        
$show_df=$df;
    @list(
$f_chmod1,$f_chmod2,$f_chmod3)=str_split(permissions($df));
    list(
$n_chmod1,$n_chmod2,$n_chmod3)=str_split($chmod);
    if (
$f_chmod1<$n_chmod1 || $f_chmod2<$n_chmod2 || $f_chmod3<$n_chmod3)
        {
        
no ("Установите CHMOD $n_chmod1$n_chmod2$n_chmod3 на файл $show_df");
        }
        else
        {
        
ok ("$show_df ($n_chmod1$n_chmod2$n_chmod3) : $f_chmod1$f_chmod2$f_chmod3");
        }
    }

test_chmod (H.'guard/ini/settings.ini','666');
test_chmod (H.'guard/ini/','777');
test_chmod (H.'guard/ini/notes.ini','666');
test_chmod (H.'guard/logs/','777');
echo 
"</div><div class='post'>";
sect ('[link] Таблицы MySQL');
is_table ('guard_tracking');
is_table ('guard_dossier');
is_table ('guard_suspects');
is_table ('guard_black_list');
is_column ('last_msg''user');
echo 
'</div>';
?>
Онлайн: 1
Реклама