Файл: panel/info.php
Строк: 226
<?
include_once '../sys/includes/start.php';
include_once '../sys/includes/compress.php';
include_once '../sys/includes/sess.php';
include_once '../sys/includes/home.php';
include_once '../sys/includes/settings.php';
include_once '../sys/includes/db_connect.php';
include_once '../sys/includes/ipua.php';
include_once '../sys/includes/fnc.php';
include_once '../sys/includes/adm_check.php';
include_once '../sys/includes/user.php';
user_access('adm_info',null,'index.php?'.SID);
adm_check();
$set['title']='Общая информация';
include_once '../sys/includes/header.php';
title();
auter();
echo "<div class='title'><b>Информация</b></div>";
echo '<div class="aut">';
echo "<img src='/s-klub/ico/version.png'></img> Версия S-klub CMS: <font color='blue'>0.5.0</font> <font color='red'>Special</font><br />";
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/license.png'></img> Лицензия: <font color='red'>Отсуствует</font><br />";
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/php.png'></img> Версия PHP: ";
list ($php_ver1,$php_ver2,$php_ver3)=explode('.', strtok(strtok(phpversion(),'-'),' '), 3);
if ($php_ver1==5)
{
echo "<font color='green'>$php_ver1.$php_ver2.$php_ver3</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>$php_ver1.$php_ver2.$php_ver3</font> <img src='/s-klub/ico/err.png'></img><br />";
$err="Тестирование на версии php $php_ver1.$php_ver2.$php_ver3 не осуществялось!";
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/time.png'></img> Set Time Limit: ";
if (function_exists('set_time_limit'))
{
echo "<font color='green'>OK</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Запрещено</font> <img src='/s-klub/ico/err.png'></img><br />";
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/user.png'></img> Использование SID: ";
if (ini_get('session.use_trans_sid')==true)
{
echo "<font color='green'>Да</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нет</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='Будет теряться сессия на браузерах без поддержки COOKIE!';
$err='Добавьте в корневой .htaccess строку <b>php_value session.use_trans_sid 1</b>!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/kav.png'></img> Экранирование кавычек: ";
if (ini_get('magic_quotes_gpc')==0)
{
echo "<font color='green'>Нет</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Да</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='Включено экранирование кавычек!';
$err='Добавьте в корневой .htaccess строку <b>php_value magic_quotes_gpc 0</b>!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/ot.png'></img> Отображение: ";
if (ini_get('arg_separator.output')=='&')
{
echo "<font color='green'>&amp;</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>".output_text(ini_get('arg_separator.output'))."</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='Возможно появление ошибки xml!';
$err='Добавьте в корневой .htaccess строку <b>php_value arg_separator.output &amp;</b>!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/gd.png'></img> GD: ";
if (function_exists('imagecreatefromstring') && function_exists('gd_info'))
{
$gdinfo=gd_info();
echo "<font color='green'>".$gdinfo['GD Version']."</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нет</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='GD необходима для корректной работы движка!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/mysql.png'></img> MySQL: ";
if (function_exists('mysql_info'))
{
echo "<font color='green'>Есть</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нету</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='Без MySQL работа не возможна!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/icon.png'></img> IconV: ";
if (function_exists('iconv'))
{
echo "<font color='green'>Есть</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нету</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='Без Iconv работа не возможна!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/ffmpeg.png'></img> FFmpeg: ";
if (class_exists('ffmpeg_movie'))
{
echo "<font color='green'>Есть</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нету</font> <img src='/s-klub/ico/err.png'></img><br />";
echo "* Без FFmpeg автоматическое создание скриношотов к видео недоступно!<br />";
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/reg.png'></img> Register Globals: ";
if (ini_get('register_globals')==false)
{
echo "<font color='green'>Off</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>On</font> <img src='/s-klub/ico/err.png'></img><br />";
$err='register_globals включен. Грубое нарушение безопасности!';
}
echo '</div>';
echo '<div class="aut">';
echo "<img src='/s-klub/ico/shifr.png'></img> Шифрование COOKIE: ";
if (function_exists('mcrypt_cbc'))
{
echo "<font color='green'>Есть</font> <img src='/s-klub/ico/ok.png'></img><br />";
}else{
echo "<font color='red'>Нету</font> <img src='/s-klub/ico/err.png'></img><br />";
echo "* mcrypt не доступен!<br />";
}
echo '</div>';
echo "<div class='title'><b>CHMOD</b></div>";
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)
{
$err="Установите CHMOD $n_chmod1$n_chmod2$n_chmod3 на $show_df";
echo '<div class="aut">';
echo "<img src='/s-klub/ico/chmod.png'></img> <font color='red'>$show_df : [$f_chmod1$f_chmod2$f_chmod3] - >$n_chmod1$n_chmod2$n_chmod3 </font> <img src='/s-klub/ico/err.png'></img><br />";
echo '</div>';
}else{
echo '<div class="aut">';
echo "<img src='/s-klub/ico/chmod.png'></img> <font color='green'>$show_df ($n_chmod1$n_chmod2$n_chmod3) : $f_chmod1$f_chmod2$f_chmod3 </font> <img src='/s-klub/ico/ok.png'></img><br />";
echo '</div>';
}
}
if (file_exists(H.'install/'))test_chmod(H.'install/',777);
test_chmod(H.'sys/avatar/',777);
test_chmod(H.'sys/dat/',777);
test_chmod(H.'sys/forum/files',777);
test_chmod(H.'sys/gallery/48/',777);
test_chmod(H.'sys/gallery/128/',777);
test_chmod(H.'sys/gallery/640/',777);
test_chmod(H.'sys/gallery/foto/',777);
test_chmod(H.'sys/includes/',777);
test_chmod(H.'sys/s-fnc/',777);
test_chmod(H.'sys/loads/files/',777);
test_chmod(H.'sys/loads/mp3crop/',777);
test_chmod(H.'sys/loads/screens/14/',777);
test_chmod(H.'sys/loads/screens/48/',777);
test_chmod(H.'sys/loads/screens/128/',777);
test_chmod(H.'sys/obmen/files/',777);
test_chmod(H.'sys/obmen/screens/14/',777);
test_chmod(H.'sys/obmen/screens/48/',777);
test_chmod(H.'sys/obmen/screens/128/',777);
test_chmod(H.'sys/update/',777);
test_chmod(H.'sys/tmp/',777);
test_chmod(H.'s-klub/thems/',777);
if (file_exists(H.'sys/dat/s-klub_settings.dat'))test_chmod(H.'sys/dat/s-klub_settings.dat',666);
if (isset($err))
{
if (is_array($err))
{
foreach ($err as $key=>$value)
{
echo "<div class='err'>".$value."</div>";
}
}else{
echo "<div class='err'>".$err."</div>";
}
}
if (user_access('adm_panel_show'))
{
echo "<a href='/panel/'><div class='foot'>";
echo "<img src='/s-klub/img/left.png'> В админку";
echo "</div></a>";
}
include_once '../sys/includes/footer.php';
?>