@@ 1428-1435 (lines=8) @@ | ||
1425 | $text_response); |
|
1426 | } |
|
1427 | // read the root node of the XML tree |
|
1428 | if (!($tree_response = $dom->document_element())) { |
|
1429 | phpCAS::trace('document_element() failed'); |
|
1430 | $this->authError('ST not validated', |
|
1431 | $validate_url, |
|
1432 | false/*$no_response*/, |
|
1433 | true/*$bad_response*/, |
|
1434 | $text_response); |
|
1435 | } |
|
1436 | // insure that tag name is 'serviceResponse' |
|
1437 | if ($tree_response->node_name() != 'serviceResponse') { |
|
1438 | phpCAS::trace('bad XML root node (should be `serviceResponse\' instead of `' . $tree_response->node_name() . '\''); |
|
@@ 1537-1544 (lines=8) @@ | ||
1534 | $text_response); |
|
1535 | } |
|
1536 | // read the root node of the XML tree |
|
1537 | if (!($tree_response = $dom->document_element())) { |
|
1538 | phpCAS::trace('document_element() failed'); |
|
1539 | $this->authError('SA not validated', |
|
1540 | $validate_url, |
|
1541 | false/*$no_response*/, |
|
1542 | true/*$bad_response*/, |
|
1543 | $text_response); |
|
1544 | } |
|
1545 | // insure that tag name is 'Envelope' |
|
1546 | if ($tree_response->node_name() != 'Envelope') { |
|
1547 | phpCAS::trace('bad XML root node (should be `Envelope\' instead of `' . $tree_response->node_name() . '\''); |
|
@@ 2014-2021 (lines=8) @@ | ||
2011 | // PGT Iou transmitted, extract it |
|
2012 | $pgt_iou = trim($arr[0]->get_content()); |
|
2013 | $pgt = $this->loadPGT($pgt_iou); |
|
2014 | if ($pgt == false) { |
|
2015 | phpCAS::trace('could not load PGT'); |
|
2016 | $this->authError('PGT Iou was transmitted but PGT could not be retrieved', |
|
2017 | $validate_url, |
|
2018 | false/*$no_response*/, |
|
2019 | false/*$bad_response*/, |
|
2020 | $text_response); |
|
2021 | } |
|
2022 | $this->setPGT($pgt); |
|
2023 | } |
|
2024 | // here, cannot use phpCAS::traceEnd(TRUE); alongside domxml-php4-to-php5.php |