From c347bcef08b3533c5e379b410ad89c1722381a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 27 Aug 2009 12:38:35 +0000 Subject: [PATCH] ADd support for ignoring checks for ldapstatus page with output = text git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1717 44740490-163a-0410-bde0-09ae8108e29a --- modules/ldapstatus/www/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ldapstatus/www/index.php b/modules/ldapstatus/www/index.php index 5e684c6c1..1f52f8eb0 100644 --- a/modules/ldapstatus/www/index.php +++ b/modules/ldapstatus/www/index.php @@ -254,8 +254,15 @@ if (array_key_exists('orgtest', $_REQUEST)) { // Machine readable output if(array_key_exists('output', $_REQUEST) && $_REQUEST['output'] === 'text') { + + $ignores = array(); + if(array_key_exists('ignore', $_REQUEST)) { + $ignores = explode(',', $_REQUEST['ignore']); + } + $ok = TRUE; foreach ($res AS $tag => $resEntry) { + if (in_array($tag, $ignores)) continue; if ($tag == 'time') continue; if ($resEntry[0] == 0) { $ok = FALSE; -- GitLab