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

Add text output for sanitychecker. Testing with hobbitmon for monitoring simplesamlphp

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1025 44740490-163a-0410-bde0-09ae8108e29a
parent f4ab4338
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
<title>Change log</title> <title>Change log</title>
<para>Here is changes between simpleSAMLphp versions. Look here if you are <para>Here is changes between simpleSAMLphp versions. Look here if you are
upgrading, to see if there are any changes to the config format.</para> upgrading, to see if there are any changes to the config format. There is
a <ulink url="???">generic section describing how to perform a upgrade in
the installation manual</ulink>.</para>
<section> <section>
<title>Version 1.3</title> <title>Version 1.3</title>
...@@ -660,10 +662,4 @@ ...@@ -660,10 +662,4 @@
</itemizedlist> </itemizedlist>
</section> </section>
</section> </section>
<section>
<title>The history of simpleSAMLphp</title>
<para>TODO.</para>
</section>
</article> </article>
\ No newline at end of file
...@@ -16,6 +16,16 @@ $hookinfo = array( ...@@ -16,6 +16,16 @@ $hookinfo = array(
SimpleSAML_Module::callHooks('sanitycheck', $hookinfo); SimpleSAML_Module::callHooks('sanitycheck', $hookinfo);
if (isset($_REQUEST['output']) && $_REQUEST['output'] == 'text') {
if (count($errors) === 0) {
echo 'OK';
} else {
echo 'FAIL';
}
exit;
}
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check-tpl.php'); $t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check-tpl.php');
$t->data['errors'] = $errors; $t->data['errors'] = $errors;
......
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