about.phtml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. if (FreshRSS_Auth::hasAccess()) {
  5. $this->partial('aside_configure');
  6. }
  7. ?>
  8. <main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
  9. <h1><?= _t('index.about') ?></h1>
  10. <p><?= _t('index.about.freshrss_description') ?></p>
  11. <h2><?= _t('index.about.project_website') ?></h2>
  12. <a href="<?= FRESHRSS_WEBSITE ?>" target="_blank"><?= FRESHRSS_WEBSITE ?></a>
  13. <h2><?= _t('index.about.documentation') ?></h2>
  14. <a href="<?= FRESHRSS_WIKI ?>" target="_blank"><?= FRESHRSS_WIKI ?></a>
  15. <h2><?= _t('index.about.bugs_reports') ?></h2>
  16. <?= _t('index.about.github') ?>
  17. <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
  18. <details class="envInfo">
  19. <summary><?= _t('index.about.bug_reports.environment_information') ?></summary>
  20. <dl>
  21. <dt><?= _t('index.about.bug_reports.environment_information.version_frss') ?></dt>
  22. <dd><?= htmlspecialchars(FRESHRSS_VERSION, ENT_NOQUOTES, 'UTF-8') ?></dd>
  23. <dt><?= _t('index.about.bug_reports.environment_information.version_php') ?></dt>
  24. <dd><?= htmlspecialchars(PHP_VERSION, ENT_NOQUOTES, 'UTF-8') ?></dd>
  25. <dt><?= _t('index.about.bug_reports.environment_information.version_curl') ?></dt>
  26. <?php
  27. $curlVersion = curl_version() ?: [];
  28. $curlVersionVersion = is_string($curlVersion['version'] ?? null) ? $curlVersion['version'] : '';
  29. $sslversion = is_string($curlVersion['ssl_version'] ?? null) ? $curlVersion['ssl_version'] : '';
  30. ?>
  31. <dd><?= htmlspecialchars($curlVersionVersion, ENT_NOQUOTES, 'UTF-8') ?></dd>
  32. <dd><?= htmlspecialchars($sslversion, ENT_NOQUOTES, 'UTF-8') ?></dd>
  33. <dt><?= _t('index.about.bug_reports.environment_information.database') ?></dt>
  34. <dd><?= htmlspecialchars(FreshRSS_Context::systemConf()->db['type'], ENT_NOQUOTES, 'UTF-8') ?></dd>
  35. <?php $databaseDAO = FreshRSS_Factory::createDatabaseDAO(); ?>
  36. <dd><?= htmlspecialchars($databaseDAO->version(), ENT_NOQUOTES, 'UTF-8') ?></dd>
  37. <dt><?= _t('index.about.bug_reports.environment_information.server_software') ?></dt>
  38. <dd>
  39. <?= is_string($_SERVER['SERVER_SOFTWARE'] ?? null) ? $_SERVER['SERVER_SOFTWARE'] : '' ?><br />
  40. <?= htmlspecialchars(php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'), ENT_NOQUOTES, 'UTF-8') ?>
  41. </dd>
  42. <dt><?= _t('index.about.bug_reports.environment_information.browser') ?></dt>
  43. <dd><?= is_string($_SERVER['HTTP_USER_AGENT'] ?? null) ? htmlspecialchars($_SERVER['HTTP_USER_AGENT'], ENT_NOQUOTES, 'UTF-8') : '' ?></dd>
  44. </dl>
  45. </details>
  46. <?php } ?>
  47. <h2><?= _t('index.about.license') ?></h2>
  48. <?= _t('index.about.agpl3') ?>
  49. <?php
  50. if (FreshRSS_Auth::hasAccess()) { ?>
  51. <h2><?= _t('index.about.version') ?></h2>
  52. <?= FRESHRSS_VERSION ?>
  53. <?php
  54. $env = FreshRSS_Context::systemConf()->environment;
  55. if ($env !== 'production' && FreshRSS_Context::userConf()->is_admin) { ?>
  56. <h2>data/config.php</h2>
  57. <code>'environment' => '<?= $env; ?>'</code><br />
  58. <?php
  59. }
  60. }
  61. ?>
  62. </main>
  63. <?php if (!FreshRSS_Auth::hasAccess()) { ?>
  64. <footer class="main-footer">
  65. <?php if (file_exists(TOS_FILENAME)) { ?>
  66. <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
  67. <?php } ?>
  68. </footer>
  69. <?php } ?>