Revision: 1717
Author: andreassolberg
Date: Thu Aug 27 05:38:35 2009
Log: ADd support for ignoring checks for ldapstatus page with output = text
http://code.google.com/p/simplesamlphp/source/detail?r=1717

Modified:
  /trunk/modules/ldapstatus/www/index.php

=======================================
--- /trunk/modules/ldapstatus/www/index.php     Thu Aug  6 04:26:41 2009
+++ /trunk/modules/ldapstatus/www/index.php     Thu Aug 27 05:38:35 2009
@@ -254,8 +254,15 @@

        // 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;

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to