untrustedDomain.php 910 B

1234567891011121314151617181920
  1. <?php /** @var $_ array */ ?>
  2. <ul class="error-wide">
  3. <li class='error'>
  4. <?php p($l->t('You are accessing the server from an untrusted domain.')); ?><br>
  5. <p class='hint'>
  6. <?php p($l->t('Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domains" setting in config/config.php. An example configuration is provided in config/config.sample.php.')); ?>
  7. <br>
  8. <?php p($l->t('Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.')); ?>
  9. <br><br>
  10. <p style="text-align:center;">
  11. <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->getAbsoluteURL(\OCP\Util::linkToRoute('settings_admin'))); ?>?trustDomain=<?php p($_['domain']); ?>" class="button">
  12. <?php p($l->t('Add "%s" as trusted domain', array($_['domain']))); ?>
  13. </a>
  14. </p>
  15. </p>
  16. </li>
  17. </ul>