Skip to content
Snippets Groups Projects
Commit 9bd6623a authored by Olav Morken's avatar Olav Morken
Browse files

Added some config to the front page.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@625 44740490-163a-0410-bde0-09ae8108e29a
parent 790016bd
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,31 @@ foreach ($functionchecks AS $func => $descr) { ...@@ -159,6 +159,31 @@ foreach ($functionchecks AS $func => $descr) {
} }
/* Some basic configuration checks */
if($config->getValue('technicalcontact_email', 'na@example.org') === 'na@example.org') {
$mail_ok = FALSE;
} else {
$mail_ok = TRUE;
}
$funcmatrix[] = array(
'required' => 'reccomended',
'descr' => 'technicalcontact_email option set',
'enabled' => $mail_ok
);
if($config->getValue('auth.adminpassword', '123') === '123') {
$password_ok = FALSE;
} else {
$password_ok = TRUE;
}
$funcmatrix[] = array(
'required' => 'required',
'descr' => 'auth.adminpassword option set',
'enabled' => $password_ok
);
$t = new SimpleSAML_XHTML_Template($config, 'frontpage.php', 'frontpage.php'); $t = new SimpleSAML_XHTML_Template($config, 'frontpage.php', 'frontpage.php');
$t->data['header'] = 'simpleSAMLphp installation page'; $t->data['header'] = 'simpleSAMLphp installation page';
$t->data['icon'] = 'compass_l.png'; $t->data['icon'] = 'compass_l.png';
......
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