Файл: modules/padmin/info.php
Строк: 97
<?php
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
* @link http://perf-engine.net
* @package PerfEngine
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
if($user['level'] < 6 || !isset($user)) { header('Location: /'); exit;}
$locate = 'in_padmin';
if(file_exists(SYS.'/ini/info.ini'))
{
$engine_info = parse_ini_file(SYS.'/ini/info.ini');
}
$engine_last_stable = file_get_contents('http://perf-engine.net/_engine/core.txt');
$engine_last_stable = explode('|', $engine_last_stable);
$title = _t('padmin_system_info');
include_header($title);
$tpl->div('title', _t('padmin_system_info'));
$tpl->div('menu', NAV . '<b>PerfEngine version: </b>'.$engine_info['version']);
$tpl->div('menu', NAV . '<b>PerfEngine '._t('last_stable_release').': </b>'.$engine_last_stable[0].' '.(str_replace('.', '', $engine_info['version']) < str_replace('.', '', $engine_last_stable[0]) ? '[<a href="/padmin/info?new_version">'. _t('new_version').'</a>]' : NULL));
if(isset($_GET['new_version']))
{
$tpl->div('post', output(file_get_contents('http://perf-engine.net/_engine/changelog.txt')));
}
$tpl->div('menu', NAV . '<b>PHP ver: </b>'. PHP_VERSION);
$tpl->div('block', img('admin.png') .'<a href="/padmin/">'. _t('padmin') .'</a><br/>'. HICO .'<a href="/">'. _t('home') .'</a>');
include_footer();
?>