update.use-cli.php 1.4 KB

12345678910111213141516171819202122232425
  1. <div class="guest-box update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>">
  2. <div class="updateOverview">
  3. <h2 class="title"><?php p($l->t('Update needed')) ?></h2>
  4. <div class="text-left">
  5. <?php if ($_['tooBig']) {
  6. p($l->t('Please use the command line updater because you have a big instance with more than 50 users.'));
  7. } else {
  8. p($l->t('Please use the command line updater because updating via browser is disabled in your config.php.'));
  9. } ?><br><br>
  10. <?php if (is_string($_['cliUpgradeLink']) && $_['cliUpgradeLink'] !== '') {
  11. $cliUpgradeLink = $_['cliUpgradeLink'];
  12. } else {
  13. $cliUpgradeLink = link_to_docs('admin-cli-upgrade');
  14. }
  15. print_unescaped($l->t('For help, see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [$cliUpgradeLink])); ?>
  16. </div>
  17. </div>
  18. <?php if ($_['tooBig']) { ?>
  19. <div class="notecard warning">
  20. <p><?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.')); ?></p>
  21. <a class="button error margin-top" href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis"><?php p($l->t('Upgrade via web on my own risk')); ?></a>
  22. </div>
  23. <?php } ?>
  24. </div>