From 7d0857a78711895a23c2203d735f617231830b97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Tue, 25 Nov 2008 14:53:41 +0000
Subject: [PATCH] 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
---
 docs/source/simplesamlphp-changelog.xml | 10 +++-------
 modules/sanitycheck/www/index.php       | 10 ++++++++++
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/docs/source/simplesamlphp-changelog.xml b/docs/source/simplesamlphp-changelog.xml
index 8431b56ec..1e6e9d7fa 100644
--- a/docs/source/simplesamlphp-changelog.xml
+++ b/docs/source/simplesamlphp-changelog.xml
@@ -8,7 +8,9 @@
     <title>Change log</title>
 
     <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>
       <title>Version 1.3</title>
@@ -660,10 +662,4 @@
       </itemizedlist>
     </section>
   </section>
-
-  <section>
-    <title>The history of simpleSAMLphp</title>
-
-    <para>TODO.</para>
-  </section>
 </article>
\ No newline at end of file
diff --git a/modules/sanitycheck/www/index.php b/modules/sanitycheck/www/index.php
index 7d86a2dab..392b7eeab 100644
--- a/modules/sanitycheck/www/index.php
+++ b/modules/sanitycheck/www/index.php
@@ -16,6 +16,16 @@ $hookinfo = array(
 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();
 $t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check-tpl.php');
 $t->data['errors'] = $errors;
-- 
GitLab