summaryrefslogtreecommitdiffstats
path: root/inc/simplesamlphp/templates/metadata.php
blob: 3d2ca520f921976cc7dbc9bc70049a824c37634d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
$this->data['header'] = $this->t('metadata_' . $this->data['header']);
$this->includeAtTemplateBase('includes/header.php');
?>


		<h2><?php echo $this->data['header']; ?></h2>
		
		<p><?php echo $this->t('metadata_intro'); ?></p>
		
		<?php if (isset($this->data['metaurl'])) { ?>
			<p><?php echo($this->t('metadata_xmlurl', array('%METAURL%' => htmlspecialchars($this->data['metaurl'])))); ?><br />
			<input type="text" style="width: 90%" value="<?php echo htmlspecialchars($this->data['metaurl']); ?>" /></p>
		<?php } ?>
		<h2><?php echo($this->t('metadata_metadata')); ?></h2>
		
		<p><?php echo($this->t('metadata_xmlformat')); ?></p>
		
		<pre class="metadatabox"><?php echo $this->data['metadata']; ?>
</pre>
		
		
		<p><?php echo($this->t('metadata_simplesamlformat')); ?></p>
		
		<pre class="metadatabox"><?php echo $this->data['metadataflat']; ?>
</pre>
		
		
<?php
if(array_key_exists('available_certs', $this->data)) {	?>
	<h2><?php echo($this->t('metadata_cert')); ?></h2>
	<p><?php echo($this->t('metadata_cert_intro')); ?></p>
	<ul>
	<?php
	foreach(array_keys($this->data['available_certs']) as $certName) {
		echo ('<li><a href="'.
			htmlspecialchars(SimpleSAML_Module::getModuleURL('saml/idp/certs.php').'/'.$certName).'">'.$certName.'</a>');
		if($this->data['available_certs'][$certName]['certFingerprint'][0] == 'afe71c28ef740bc87425be13a2263d37971da1f9') {
			echo ('&nbsp; <img style="display: inline;" src="/' . $this->data['baseurlpath'] .
			'resources/icons/silk/exclamation.png" alt="default certificate" />
			This is the default certificate. Generate a new certificate if this is a production system.');
		}
		echo '</li>';
	}
	echo '</ul>';
}
?>
		


<?php $this->includeAtTemplateBase('includes/footer.php'); ?>