update.use-cli.php 1.2 KB

1234567891011121314151617181920212223
  1. <div class="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="infogroup">
  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 automatic updating is disabled in the config.php.'));
  9. } ?><br><br>
  10. <?php
  11. print_unescaped($l->t('For help, see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?><br><br>
  12. </div>
  13. </div>
  14. <?php if ($_['tooBig']) { ?>
  15. <div class="warning updateAnyways">
  16. <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>
  17. <a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk' )); ?></a>
  18. </div>
  19. <?php } ?>
  20. </div>