Просмотр файла modules/padmin/info.php

Размер файла: 1.76Kb
  1. <?php
  2. /**********************************
  3. * @package: PerfCMS *
  4. * @year: 2012 *
  5. * @author: Artas *
  6. * @link: http://perfcms.ru *
  7. **********************************/
  8. if($user['level'] < 6 || !isset($user)) { header('Location: /'); exit;}
  9. $locate = 'in_padmin';
  10. if(file_exists(SYS.'/ini/system_info.ini'))
  11. {
  12. $perfcms_ver_p = parse_ini_file(SYS.'/ini/system_info.ini');
  13. $perfcms_ver = $perfcms_ver_p['perfcms_ver'];
  14. }
  15. elseif(file_exists('perfcms_ver.txt'))
  16. {
  17. $perfcms_ver = file_get_contents('perfcms_ver.txt');
  18. }
  19. else
  20. {
  21. $perfcms_ver = 'Undefined! Please check last version of cms on <a href="http://perfcms.org.ua">Official site</a>';
  22. }
  23. $perfcms_last_stable = file_get_contents('http://perfcms.org.ua/perfcms/last_version.txt');
  24. $title = $lang->word('padmin_system_info');
  25. require_once(SYS.'/view/header.php');
  26. $tpl->div('title', $lang->word('padmin_system_info'));
  27. $tpl->div('menu', NAV . '<b>PerfCMS ver: </b>'.$perfcms_ver);
  28. $tpl->div('menu', NAV . '<b>PerfCMS '.$lang->word('last_stable_release').': </b>'.$perfcms_last_stable.' '.($perfcms_ver < $perfcms_last_stable ? '[<a href="/padmin/info?new_version">'. $lang->word('new_version').'</a>]' : NULL));
  29. if(isset($_GET['new_version']))
  30. {
  31. $tpl->div('post', output(file_get_contents('http://perfcms.org.ua/perfcms/changelog.txt')));
  32. }
  33. $tpl->div('menu', NAV . '<b>Build</b>: '.$perfcms_ver_p['perfcms_build']);
  34. $tpl->div('menu', NAV . '<b>PHP ver: </b>'. PHP_VERSION);
  35. $tpl->div('menu', NAV . '<b>PHP PDO: </b>'.(class_exists('pdo') ? '<span class="green">ON</span>' : '<span class="red">OFF</span>'));
  36. $tpl->div('block', img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
  37. require_once(SYS.'/view/footer.php');
  38. ?>