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

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
parent 45a30214
No related branches found
No related tags found
No related merge requests found
...@@ -254,8 +254,15 @@ if (array_key_exists('orgtest', $_REQUEST)) { ...@@ -254,8 +254,15 @@ if (array_key_exists('orgtest', $_REQUEST)) {
// Machine readable output // Machine readable output
if(array_key_exists('output', $_REQUEST) && $_REQUEST['output'] === 'text') { if(array_key_exists('output', $_REQUEST) && $_REQUEST['output'] === 'text') {
$ignores = array();
if(array_key_exists('ignore', $_REQUEST)) {
$ignores = explode(',', $_REQUEST['ignore']);
}
$ok = TRUE; $ok = TRUE;
foreach ($res AS $tag => $resEntry) { foreach ($res AS $tag => $resEntry) {
if (in_array($tag, $ignores)) continue;
if ($tag == 'time') continue; if ($tag == 'time') continue;
if ($resEntry[0] == 0) { if ($resEntry[0] == 0) {
$ok = FALSE; $ok = FALSE;
......
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