diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-08-21 22:22:35 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-08-21 22:22:35 +0200 |
commit | 97b536e3dfd35d1e51ecf866ccb433745c33309a (patch) | |
tree | ae39f9099f410e5bcd9dbd4c58b24faa2752a4c7 /core/templates/untrustedDomain.php | |
parent | 52d5429768acdb87b2dc2efedc89eb4ad0d29139 (diff) | |
download | nextcloud-server-97b536e3dfd35d1e51ecf866ccb433745c33309a.tar.gz nextcloud-server-97b536e3dfd35d1e51ecf866ccb433745c33309a.zip |
Add a trusted domain wizard
Adds a little button to the trusted domain warning, if an admin clicks on the warning he will be redirected to ownCloud and asked whether he want to trust this domain.
By far not the cleanest code, or clean at all, but does the job and I don't see a reason to make a lot of changes for this little improvement.
Diffstat (limited to 'core/templates/untrustedDomain.php')
-rw-r--r-- | core/templates/untrustedDomain.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php new file mode 100644 index 00000000000..b661834318d --- /dev/null +++ b/core/templates/untrustedDomain.php @@ -0,0 +1,19 @@ +<?php /** @var $_ array */ ?> + +<ul class="error-wide"> + <li class='error'> + <?php p($l->t('You are accessing the server from an untrusted domain.')); ?><br/> + + <p class='hint'> + <?php p($l->t('Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domain" setting in config/config.php. An example configuration is provided in config/config.sample.php.')); ?> + <br/> + <?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.')); ?> + <br/><br/> + <p style="text-align:center;"> + <a href="<?php print_unescaped(OC_Helper::makeURLAbsolute(\OCP\Util::linkToRoute('settings_admin'))); ?>?trustDomain=<?php p($_['domain']); ?>" class="button"> + <?php p($l->t('Add "%s" as trusted domain', array($_['domain']))); ?> + </a> + </p> + </p> + </li> +</ul> |