checkInstall.phtml 1.3 KB

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