File size: 4.76Kb
<?php
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Список изменений
=============================================
Official website: http://shcms.ru
=============================================
Код зашищен авторскими правами
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
registrat();
registrat();
$adminka ->admin();
$user4 = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id`='$user_id'"));
if($user4['team'] < 6)
{
echo 'Ошибка';
header('Refresh: 1; url=/index.php?'.$conservation.'&');
include_once'../template/foot.php';
exit();
}
include_once'secu.php';
$version = isset ($_GET['version']) ? trim($_GET['version']) : '';
switch ($version)
{
case'':
$shcmsengine['title'] = 'SHCMS Engine Список изменений';
include_once'../template/head.php';
echo '<div class="posts"><a href="?version=1.0.1"> 1.0.1 </a></div>';
echo '<div class="posts"><a href="?version=1.0.2"> 1.0.2 </a></div>';
echo '<div class="posts"><a href="?version=1.0.3"> 1.0.3 </a></div>';
echo '<div class="posts"><a href="?version=1.0.4"> 1.0.4 </a></div>';
echo '<div class="posts"><a href="?version=1.0.5"> 1.0.5 </a></div>';
echo '<div class="posts"><a href="?version=1.0.6"> 1.0.6 </a></div>';
echo '<div class="posts"><a href="?version=1.0.7"> 1.0.7 </a></div>';
echo '<div class="posts"><a href="?version=1.0.8"> 1.0.8 </a></div>';
break;
case'1.0.1':
$shcmsengine['title'] = 'Версия 1.0.1';
include_once'../template/head.php';
$counter_file = '../update/1.0.1.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.2':
$shcmsengine['title'] = 'Версия 1.0.2';
include_once'../template/head.php';
$counter_file = '../update/1.0.2.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.3':
$shcmsengine['title'] = 'Версия 1.0.3';
include_once'../template/head.php';
$counter_file = '../update/1.0.3.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.4':
$shcmsengine['title'] = 'Версия 1.0.4';
include_once'../template/head.php';
$counter_file = '../update/1.0.4.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.5':
$shcmsengine['title'] = 'Версия 1.0.5';
include_once'../template/head.php';
$counter_file = '../update/1.0.5.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.6':
$shcmsengine['title'] = 'Версия 1.0.6';
include_once'../template/head.php';
$counter_file = '../update/1.0.6.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
case'1.0.7':
$shcmsengine['title'] = 'Версия 1.0.7';
include_once'../template/head.php';
$counter_file = '../update/1.0.7.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
case'1.0.8':
$shcmsengine['title'] = 'Версия 1.0.8';
include_once'../template/head.php';
$counter_file = '../update/1.0.8.php';
clearstatcache();
ignore_user_abort(true);
$fh = fopen($counter_file, 'r+b');
if ($fh)
{
if (flock($fh, LOCK_EX))
{
$count = fread($fh, filesize($counter_file));
flock($fh, LOCK_UN);
}
}
ignore_user_abort(false);
echo "$count";
break;
}
include_once'../template/foot.php';