Skip to content
Snippets Groups Projects
Commit 617bb939 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Added version info on frontpage

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@967 44740490-163a-0410-bde0-09ae8108e29a
parent 60342a26
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class SimpleSAML_Configuration {
$this->configuration = $config;
}
public function getVersion() {
public function getVersion($verbose = FALSE) {
return 'trunk';
}
......
......@@ -33,7 +33,9 @@ $icon_disabled = '<img src="/' . $this->data['baseurlpath'] . 'resources/icons/d
<p><?php echo $this->t('intro'); ?></p>
<div>
<code style="background: white; border: 1px solid #ccc; padding: 1em; color: #555" ><?php echo $this->data['directory']; ?></code>
<code style="background: white; border: 1px solid #ccc; padding: 1em; color: #555" ><?php
echo $this->data['directory'] . ' (' . $this->data['version'] . ')';
?></code>
</div>
<h2><?php echo $this->t('useful_links_header'); ?></h2>
......
......@@ -221,8 +221,6 @@ $funcmatrix[] = array(
'enabled' => $password_ok
);
$t = new SimpleSAML_XHTML_Template($config, 'frontpage.php', 'frontpage');
$t->data['header'] = 'simpleSAMLphp installation page';
$t->data['icon'] = 'compass_l.png';
......@@ -232,7 +230,7 @@ $t->data['links_meta'] = $linksmeta;
$t->data['links_doc'] = $linksdoc;
$t->data['enablematrix'] = $enablematrix;
$t->data['funcmatrix'] = $funcmatrix;
$t->data['version'] = $config->getVersion();
$t->data['directory'] = dirname(dirname(__FILE__));
$t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment