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 { ...@@ -62,7 +62,7 @@ class SimpleSAML_Configuration {
$this->configuration = $config; $this->configuration = $config;
} }
public function getVersion() { public function getVersion($verbose = FALSE) {
return 'trunk'; return 'trunk';
} }
......
...@@ -33,7 +33,9 @@ $icon_disabled = '<img src="/' . $this->data['baseurlpath'] . 'resources/icons/d ...@@ -33,7 +33,9 @@ $icon_disabled = '<img src="/' . $this->data['baseurlpath'] . 'resources/icons/d
<p><?php echo $this->t('intro'); ?></p> <p><?php echo $this->t('intro'); ?></p>
<div> <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> </div>
<h2><?php echo $this->t('useful_links_header'); ?></h2> <h2><?php echo $this->t('useful_links_header'); ?></h2>
......
...@@ -221,8 +221,6 @@ $funcmatrix[] = array( ...@@ -221,8 +221,6 @@ $funcmatrix[] = array(
'enabled' => $password_ok 'enabled' => $password_ok
); );
$t = new SimpleSAML_XHTML_Template($config, 'frontpage.php', 'frontpage'); $t = new SimpleSAML_XHTML_Template($config, 'frontpage.php', 'frontpage');
$t->data['header'] = 'simpleSAMLphp installation page'; $t->data['header'] = 'simpleSAMLphp installation page';
$t->data['icon'] = 'compass_l.png'; $t->data['icon'] = 'compass_l.png';
...@@ -232,7 +230,7 @@ $t->data['links_meta'] = $linksmeta; ...@@ -232,7 +230,7 @@ $t->data['links_meta'] = $linksmeta;
$t->data['links_doc'] = $linksdoc; $t->data['links_doc'] = $linksdoc;
$t->data['enablematrix'] = $enablematrix; $t->data['enablematrix'] = $enablematrix;
$t->data['funcmatrix'] = $funcmatrix; $t->data['funcmatrix'] = $funcmatrix;
$t->data['version'] = $config->getVersion();
$t->data['directory'] = dirname(dirname(__FILE__)); $t->data['directory'] = dirname(dirname(__FILE__));
$t->show(); $t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment