checkInstall.phtml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. $this->partial('aside_configure');
  5. ?>
  6. <main class="post">
  7. <h1><?= _t('gen.menu.check_install') ?></h1>
  8. <h2><?= _t('admin.check_install.php') ?></h2>
  9. <?php foreach ($this->status_php as $key => $status) { ?>
  10. <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
  11. <?php
  12. if ($key === 'php') {
  13. echo _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok'), PHP_VERSION, FRESHRSS_MIN_PHP_VERSION);
  14. } else {
  15. echo _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok'));
  16. }
  17. ?>
  18. </p>
  19. <?php } ?>
  20. <h2><?= _t('admin.check_install.files') ?></h2>
  21. <?php foreach ($this->status_files as $key => $status) { ?>
  22. <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
  23. <?= _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok')) ?>
  24. </p>
  25. <?php } ?>
  26. <?php /*
  27. <h2><?= _t('admin.check_install.database') ?></h2>
  28. <?php foreach ($this->status_database as $key => $status) { ?>
  29. <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
  30. <?= _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok')) ?>
  31. </p>
  32. <?php } ?>
  33. */ ?>
  34. </main>