summaryrefslogtreecommitdiffstats
path: root/core/templates/untrustedDomain.php
blob: b661834318d9110b80c1ebcaa3d1e50ed849f7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>