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

Add portal support for sanitycheck module

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1350 44740490-163a-0410-bde0-09ae8108e29a
parent 17fef425
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,10 @@ function sanitycheck_hook_frontpage(&$links) {
assert('is_array($links)');
assert('array_key_exists("links", $links)');
$links['links'][] = array(
$links['links']['santitycheck'] = array(
'href' => SimpleSAML_Module::getModuleURL('sanitycheck/index.php'),
'text' => array('en' => 'Sanity check of your simpleSAMLphp setup'),
'shorttext' => array('en' => 'SanityCheck'),
);
}
......
......@@ -23,8 +23,16 @@ if (isset($_REQUEST['output']) && $_REQUEST['output'] == 'text') {
exit;
}
$htmlContentPre = array(); $htmlContentPost = array(); $htmlContentHead = array(); $jquery = array();
$hookinfo = array('pre' => &$htmlContentPre, 'post' => &$htmlContentPost, 'head' => &$htmlContentHead, 'jquery' => &$jquery, 'page' => 'santitycheck');
SimpleSAML_Module::callHooks('htmlinject', $hookinfo);
$t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check-tpl.php');
$t->data['errors'] = $errors;
$t->data['info'] = $info;
$t->data['htmlContentPre'] = $htmlContentPre;
$t->data['htmlContentPost'] = $htmlContentPost;
$t->data['htmlContentHead'] = $htmlContentHead;
$t->data['jquery'] = $jquery;
$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