| 
                                                        @@ -19,7 +19,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    19
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    19
                                                                                                                                                                                                 | 
                                                              *          <base_url>/copyright.php after deploying the software  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    20
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    20
                                                                                                                                                                                                 | 
                                                              */  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    21
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    21
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    22
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -require_once dirname(dirname(__DIR__)) . "/config/_config.php";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    22
                                                                                                                                                                                                 | 
                                                            +require_once dirname(dirname(__DIR__))."/config/_config.php";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    23
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    23
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    24
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    24
                                                                                                                                                                                                 | 
                                                             $loggerInstance = new \core\common\Logging();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    25
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    25
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -66,13 +66,13 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    66
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    66
                                                                                                                                                                                                 | 
                                                                     $testsuite = new \core\diag\RADIUSTests($check_realm, $testedProfile->getRealmCheckOuterUsername(), $testedProfile->getEapMethodsinOrderOfPreference(1), $testedProfile->getCollapsedAttributes()['eap:server_name'], $testedProfile->getCollapsedAttributes()["eap:ca_file"]);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    67
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    67
                                                                                                                                                                                                 | 
                                                                     $rfc7585suite = new \core\diag\RFC7585Tests($check_realm);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    68
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    68
                                                                                                                                                                                                 | 
                                                                 } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    69
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -        $error_message = _("You asked for a realm check, but we don't know the realm for this profile!") . "</p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    69
                                                                                                                                                                                                 | 
                                                            +        $error_message = _("You asked for a realm check, but we don't know the realm for this profile!")."</p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    70
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    70
                                                                                                                                                                                                 | 
                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    71
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    71
                                                                                                                                                                                                 | 
                                                             } else { // someone else's realm, and we don't know anything about it... only shallow checks | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    72
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    72
                                                                                                                                                                                                 | 
                                                                 $check_realm = $validator->realm($realm ?? $_SESSION['check_realm'] ?? "");  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    73
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    73
                                                                                                                                                                                                 | 
                                                                 if ($check_realm !== FALSE) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    74
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    74
                                                                                                                                                                                                 | 
                                                                     $_SESSION['check_realm'] = $check_realm;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    75
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -        $testsuite = new \core\diag\RADIUSTests($check_realm, "@" . $check_realm);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    75
                                                                                                                                                                                                 | 
                                                            +        $testsuite = new \core\diag\RADIUSTests($check_realm, "@".$check_realm);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    76
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    76
                                                                                                                                                                                                 | 
                                                                     $rfc7585suite = new \core\diag\RFC7585Tests($check_realm);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    77
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    77
                                                                                                                                                                                                 | 
                                                                     //print '<pre>'; print_r($rfc7585suite); print '</pre>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    78
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    78
                                                                                                                                                                                                 | 
                                                                 } else { | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -120,7 +120,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    120
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    120
                                                                                                                                                                                                 | 
                                                                 var listofcas = "<?php echo _("You should update your list of accredited CAs") ?>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    121
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    121
                                                                                                                                                                                                 | 
                                                                 var getitfrom = "<?php echo _("Get it from here.") ?>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    122
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    122
                                                                                                                                                                                                 | 
                                                                 var listsource = "<?php echo \config\Diagnostics::RADIUSTESTS['accreditedCAsURL'] ?>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    123
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -    var moretext = "<?php echo _("more") . "»" ?>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    123
                                                                                                                                                                                                 | 
                                                            +    var moretext = "<?php echo _("more")."»" ?>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    124
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    124
                                                                                                                                                                                                 | 
                                                                 var lesstext = "<?php echo "«" ?>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    125
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    125
                                                                                                                                                                                                 | 
                                                                 var morealltext = "<?php echo _("Show detailed information for all tests") ?>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    126
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    126
                                                                                                                                                                                                 | 
                                                                 var unknownca_code = "<?php echo \core\diag\RADIUSTests::CERTPROB_UNKNOWN_CA ?>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -263,7 +263,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    263
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    263
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    264
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    264
                                                                                                                                                                                                 | 
                                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    265
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    265
                                                                                                                                                                                                 | 
                                                                                 cliinfo = cliinfo + '<li><table><tbody><tr><td class="icon_td"><img class="icon" src="' + icons[level] + '" style="width: 24px;"></td><td>' + state;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    266
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    cliinfo = cliinfo + ' <?php echo "(" . sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+' ") . ")"; ?>' + add + '</td></tr>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    266
                                                                                                                                                                                                 | 
                                                            +                    cliinfo = cliinfo + ' <?php echo "(".sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+' ").")"; ?>' + add + '</td></tr>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    267
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    267
                                                                                                                                                                                                 | 
                                                                                 cliinfo = cliinfo + '</tbody></table></ul></li>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    268
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    268
                                                                                                                                                                                                 | 
                                                                                 if (data.ca[key].certificate[c].finalerror === 1) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    269
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    269
                                                                                                                                                                                                 | 
                                                                                     cliinfo = cliinfo + '<li>' + restskipped + '</li>';  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -466,8 +466,8 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    466
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    466
                                                                                                                                                                                                 | 
                                                             <?php  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    467
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    467
                                                                                                                                                                                                 | 
                                                             foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    468
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    468
                                                                                                                                                                                                 | 
                                                                 print "  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    469
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -$(\"#live_src" . $hostindex . "_img\").attr('src',icon_loading); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    470
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -$(\"#live_src" . $hostindex . "_img\").show();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    469
                                                                                                                                                                                                 | 
                                                            +$(\"#live_src" . $hostindex."_img\").attr('src',icon_loading); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    470
                                                                                                                                                                                                 | 
                                                            +$(\"#live_src" . $hostindex."_img\").show();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    471
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    471
                                                                                                                                                                                                 | 
                                                             $.ajax({ | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    472
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    472
                                                                                                                                                                                                 | 
                                                                 url: 'radius_tests.php?src=0&hostindex=$hostindex&realm='+realm,  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    473
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    473
                                                                                                                                                                                                 | 
                                                                 type: 'POST',  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -497,15 +497,15 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    497
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    497
                                                                                                                                                                                                 | 
                                                             <?php  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    498
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    498
                                                                                                                                                                                                 | 
                                                             foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    499
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    499
                                                                                                                                                                                                 | 
                                                                 if ($testedProfile !== NULL) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    500
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -        $extraarg = "profile_id: " . $testedProfile->identifier . ", ";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    500
                                                                                                                                                                                                 | 
                                                            +        $extraarg = "profile_id: ".$testedProfile->identifier.", ";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    501
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    501
                                                                                                                                                                                                 | 
                                                                 } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    502
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    502
                                                                                                                                                                                                 | 
                                                                     $extraarg = "";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    503
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    503
                                                                                                                                                                                                 | 
                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    504
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    504
                                                                                                                                                                                                 | 
                                                                 print "  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    505
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -$(\"#src" . $hostindex . "_img\").attr('src',icon_loading); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    505
                                                                                                                                                                                                 | 
                                                            +$(\"#src" . $hostindex."_img\").attr('src',icon_loading); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    506
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    506
                                                                                                                                                                                                 | 
                                                             $(\"#src$hostindex\").html(''); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    507
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    507
                                                                                                                                                                                                 | 
                                                             running_ajax_stat++;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    508
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex'  }, udp, 'json'); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    508
                                                                                                                                                                                                 | 
                                                            +$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex'  }, udp, 'json'); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    509
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    509
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    510
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    510
                                                                                                                                                                                                 | 
                                                             ";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    511
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    511
                                                                                                                                                                                                 | 
                                                             }  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -532,7 +532,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    532
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    532
                                                                                                                                                                                                 | 
                                                                 if ($check_realm === FALSE) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    533
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    533
                                                                                                                                                                                                 | 
                                                                     print "<p>$error_message</p>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    534
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    534
                                                                                                                                                                                                 | 
                                                                 } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    535
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -        print "<h1>" . sprintf(_("Realm testing for: %s"), $check_realm) . "</h1>\n"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    535
                                                                                                                                                                                                 | 
                                                            +        print "<h1>".sprintf(_("Realm testing for: %s"), $check_realm)."</h1>\n"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    536
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    536
                                                                                                                                                                                                 | 
                                                                     ?>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    537
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    537
                                                                                                                                                                                                 | 
                                                                     <div id="debug_out" style="display: none"></div>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    538
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    538
                                                                                                                                                                                                 | 
                                                                     <div id="tabs" style="min-width: 600px; max-width:1000px">  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -550,12 +550,12 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    550
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    550
                                                                                                                                                                                                 | 
                                                                                 </legend>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    551
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    551
                                                                                                                                                                                                 | 
                                                                                 <?php  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    552
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    552
                                                                                                                                                                                                 | 
                                                                                 // NAPTR existence check  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    553
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    echo "<strong>" . _("DNS checks") . "</strong><div>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    553
                                                                                                                                                                                                 | 
                                                            +                    echo "<strong>"._("DNS checks")."</strong><div>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    554
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    554
                                                                                                                                                                                                 | 
                                                                                 $naptr = $rfc7585suite->relevantNAPTR();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    555
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    555
                                                                                                                                                                                                 | 
                                                                                 if ($naptr != \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    556
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    556
                                                                                                                                                                                                 | 
                                                                                     echo "<table>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    557
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    557
                                                                                                                                                                                                 | 
                                                                                     // output in friendly words  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    558
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<tr><td>" . _("Checking NAPTR existence:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    558
                                                                                                                                                                                                 | 
                                                            +                        echo "<tr><td>"._("Checking NAPTR existence:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    559
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    559
                                                                                                                                                                                                 | 
                                                                                     switch ($naptr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    560
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    560
                                                                                                                                                                                                 | 
                                                                                         case \core\diag\RFC7585Tests::RETVAL_NONAPTR:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    561
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    561
                                                                                                                                                                                                 | 
                                                                                             echo _("This realm has no NAPTR records."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -570,7 +570,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    570
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    570
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    571
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    571
                                                                                                                                                                                                 | 
                                                                                     // compliance checks for NAPTRs  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    572
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    572
                                                                                                                                                                                                 | 
                                                                                     if ($naptr > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    573
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking NAPTR compliance (flag = S and regex = {empty}):") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    573
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking NAPTR compliance (flag = S and regex = {empty}):")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    574
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    574
                                                                                                                                                                                                 | 
                                                                                         $naptr_valid = $rfc7585suite->relevantNAPTRcompliance();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    575
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    575
                                                                                                                                                                                                 | 
                                                                                         switch ($naptr_valid) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    576
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    576
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_OK:  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -587,7 +587,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    587
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    587
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    588
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    588
                                                                                                                                                                                                 | 
                                                                                     if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    589
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    589
                                                                                                                                                                                                 | 
                                                                                         $srv = $rfc7585suite->relevantNAPTRsrvResolution();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    590
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking SRVs:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    590
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking SRVs:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    591
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    591
                                                                                                                                                                                                 | 
                                                                                         switch ($srv) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    592
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    592
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_SKIPPED:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    593
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    593
                                                                                                                                                                                                 | 
                                                                                                 echo _("This check was skipped."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -603,7 +603,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    603
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    603
                                                                                                                                                                                                 | 
                                                                                     // IP addresses for the hosts  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    604
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    604
                                                                                                                                                                                                 | 
                                                                                     if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK && $srv > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    605
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    605
                                                                                                                                                                                                 | 
                                                                                         $hosts = $rfc7585suite->relevantNAPTRhostnameResolution();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    606
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking IP address resolution:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    606
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking IP address resolution:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    607
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    607
                                                                                                                                                                                                 | 
                                                                                         switch ($srv) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    608
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    608
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_SKIPPED:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    609
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    609
                                                                                                                                                                                                 | 
                                                                                                 echo _("This check was skipped."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -619,12 +619,12 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    619
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    619
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    620
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    620
                                                                                                                                                                                                 | 
                                                                                     echo "</table><br/><br/>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    621
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    621
                                                                                                                                                                                                 | 
                                                                                     if (count($testsuite->listerrors()) == 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    622
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC"))) . _("with no DNS errors encountered. Congratulations!"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    622
                                                                                                                                                                                                 | 
                                                            +                            echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC")))._("with no DNS errors encountered. Congratulations!"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    623
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    623
                                                                                                                                                                                                 | 
                                                                                     } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    624
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC"))) . _("but there were DNS errors! Check them!") . " " . _("You should re-run the tests after fixing the errors; more errors might be uncovered at that point. The exact error causes are listed below."); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    624
                                                                                                                                                                                                 | 
                                                            +                            echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC")))._("but there were DNS errors! Check them!")." "._("You should re-run the tests after fixing the errors; more errors might be uncovered at that point. The exact error causes are listed below."); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    625
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    625
                                                                                                                                                                                                 | 
                                                                                         echo "<div class='notacceptable'><table>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    626
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    626
                                                                                                                                                                                                 | 
                                                                                         foreach ($testsuite->listerrors() as $details) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    627
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                                echo "<tr><td>" . $details['TYPE'] . "</td><td>" . $details['TARGET'] . "</td></tr>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    627
                                                                                                                                                                                                 | 
                                                            +                                echo "<tr><td>".$details['TYPE']."</td><td>".$details['TARGET']."</td></tr>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    628
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    628
                                                                                                                                                                                                 | 
                                                                                         }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    629
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    629
                                                                                                                                                                                                 | 
                                                                                         echo "</table></div>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    630
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    630
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -640,29 +640,29 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    640
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    640
                                                                                                                                                                                                 | 
                                                                              $("#dynamic_tests").show(); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    641
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    641
                                                                                                                                                                                                 | 
                                                                           ';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    642
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    642
                                                                                                                                                                                                 | 
                                                                                     foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    643
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    643
                                                                                                                                                                                                 | 
                                                            +                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    644
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    644
                                                                                                                                                                                                 | 
                                                                                         $expectedName = $addr['hostname'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    645
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    645
                                                                                                                                                                                                 | 
                                                                                         print "  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    646
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    646
                                                                                                                                                                                                 | 
                                                                                         running_ajax_dyn++;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    647
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $.ajax({url:'radius_tests.php', data:{test_type: 'capath', realm: realm, src: '$host', lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex', expectedname: '$expectedName' }, error: eee, success: capath, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    647
                                                                                                                                                                                                 | 
                                                            +                            $.ajax({url:'radius_tests.php', data:{test_type: 'capath', realm: realm, src: '$host', lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex', expectedname: '$expectedName' }, error: eee, success: capath, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    648
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    648
                                                                                                                                                                                                 | 
                                                                                         running_ajax_dyn++;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    649
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $.ajax({url:'radius_tests.php', data:{test_type: 'clients', realm: realm, src: '$host', lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex' }, error: eee, success: clients, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    649
                                                                                                                                                                                                 | 
                                                            +                            $.ajax({url:'radius_tests.php', data:{test_type: 'clients', realm: realm, src: '$host', lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex' }, error: eee, success: clients, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    650
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    650
                                                                                                                                                                                                 | 
                                                                                    ";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    651
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    651
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    652
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    652
                                                                                                                                                                                                 | 
                                                                                     echo "}  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    653
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    653
                                                                                                                                                                                                 | 
                                                                           </script>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    654
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    654
                                                                                                                                                                                                 | 
                                                                                 } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    655
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    655
                                                                                                                                                                                                 | 
                                                            +                        echo "<tr><td>"._("Dynamic discovery test is not configured")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    656
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    656
                                                                                                                                                                                                 | 
                                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    657
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    657
                                                                                                                                                                                                 | 
                                                             #### OpenRoaming  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    658
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    658
                                                                                                                                                                                                 | 
                                                                                 if (count($orrealm)) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    659
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    echo "<br><strong>" . _("OpenRoaming DNS checks") . "</strong><div>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    659
                                                                                                                                                                                                 | 
                                                            +                    echo "<br><strong>"._("OpenRoaming DNS checks")."</strong><div>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    660
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    660
                                                                                                                                                                                                 | 
                                                                                 $dnsChecks = new \core\diag\RFC7585Tests($check_realm, "aaa+auth:radius.tls.tcp");  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    661
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    661
                                                                                                                                                                                                 | 
                                                                                 $ornaptr = $dnsChecks->relevantNAPTR();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    662
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    662
                                                                                                                                                                                                 | 
                                                                                 if ($ornaptr != \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    663
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    663
                                                                                                                                                                                                 | 
                                                                                     echo "<table>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    664
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    664
                                                                                                                                                                                                 | 
                                                                                     // output in friendly words  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    665
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<tr><td>" . _("Checking NAPTR existence:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    665
                                                                                                                                                                                                 | 
                                                            +                        echo "<tr><td>"._("Checking NAPTR existence:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    666
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    666
                                                                                                                                                                                                 | 
                                                                                     switch ($ornaptr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    667
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    667
                                                                                                                                                                                                 | 
                                                                                         case \core\diag\RFC7585Tests::RETVAL_NONAPTR:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    668
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    668
                                                                                                                                                                                                 | 
                                                                                             echo _("This realm has no NAPTR records."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -677,7 +677,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    677
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    677
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    678
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    678
                                                                                                                                                                                                 | 
                                                                                     // compliance checks for NAPTRs  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    679
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    679
                                                                                                                                                                                                 | 
                                                                                     if ($ornaptr > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    680
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking NAPTR compliance (flag = S and regex = {empty}):") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    680
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking NAPTR compliance (flag = S and regex = {empty}):")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    681
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    681
                                                                                                                                                                                                 | 
                                                                                         $naptr_valid = $dnsChecks->relevantNAPTRcompliance();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    682
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    682
                                                                                                                                                                                                 | 
                                                                                         switch ($naptr_valid) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    683
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    683
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_OK:  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -694,7 +694,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    694
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    694
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    695
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    695
                                                                                                                                                                                                 | 
                                                                                     if ($ornaptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    696
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    696
                                                                                                                                                                                                 | 
                                                                                         $srv = $dnsChecks->relevantNAPTRsrvResolution();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    697
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking SRVs:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    697
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking SRVs:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    698
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    698
                                                                                                                                                                                                 | 
                                                                                         switch ($srv) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    699
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    699
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_SKIPPED:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    700
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    700
                                                                                                                                                                                                 | 
                                                                                                 echo _("This check was skipped."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -710,7 +710,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    710
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    710
                                                                                                                                                                                                 | 
                                                                                     // IP addresses for the hosts  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    711
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    711
                                                                                                                                                                                                 | 
                                                                                     if ($ornaptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK && $srv > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    712
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    712
                                                                                                                                                                                                 | 
                                                                                         $hosts = $dnsChecks->relevantNAPTRhostnameResolution();  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    713
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Checking IP address resolution:") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    713
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Checking IP address resolution:")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    714
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    714
                                                                                                                                                                                                 | 
                                                                                         switch ($srv) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    715
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    715
                                                                                                                                                                                                 | 
                                                                                             case \core\diag\RADIUSTests::RETVAL_SKIPPED:  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    716
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    716
                                                                                                                                                                                                 | 
                                                                                                 echo _("This check was skipped."); | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -727,7 +727,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    727
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    727
                                                                                                                                                                                                 | 
                                                                                     echo "</table><br/><br/>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    728
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    728
                                                                                                                                                                                                 | 
                                                                                     echo '</div>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    729
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    729
                                                                                                                                                                                                 | 
                                                                         foreach ($dnsChecks->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    730
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    730
                                                                                                                                                                                                 | 
                                                            +                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    731
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    731
                                                                                                                                                                                                 | 
                                                                                         $expectedName = $addr['hostname'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    732
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    732
                                                                                                                                                                                                 | 
                                                                                         print '<br>'; print "$host $hostindex $expectedName"; print '</br>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    733
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    733
                                                                                                                                                                                                 | 
                                                                         }  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -742,32 +742,32 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    742
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    742
                                                                                                                                                                                                 | 
                                                                              $("#openroaming_tests").show(); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    743
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    743
                                                                                                                                                                                                 | 
                                                                           ';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    744
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    744
                                                                                                                                                                                                 | 
                                                                                     foreach ($dnsChecks->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    745
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    745
                                                                                                                                                                                                 | 
                                                            +                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    746
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    746
                                                                                                                                                                                                 | 
                                                                                         $expectedName = $addr['hostname'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    747
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    747
                                                                                                                                                                                                 | 
                                                                                         print "  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    748
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    748
                                                                                                                                                                                                 | 
                                                                                         running_ajax_openroaming++;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    749
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $.ajax({url:'radius_tests.php', data:{test_type: 'openroamingcapath', realm: realm, src: '$host', lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex', expectedname: '$expectedName' }, error: eee, success: capath, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    749
                                                                                                                                                                                                 | 
                                                            +                            $.ajax({url:'radius_tests.php', data:{test_type: 'openroamingcapath', realm: realm, src: '$host', lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex', expectedname: '$expectedName' }, error: eee, success: capath, dataType: 'json'});  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    750
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    750
                                                                                                                                                                                                 | 
                                                                                    ";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    751
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    751
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    752
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    752
                                                                                                                                                                                                 | 
                                                                                     echo "}  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    753
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    753
                                                                                                                                                                                                 | 
                                                                           </script><hr>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    754
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    754
                                                                                                                                                                                                 | 
                                                                                 } else { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    755
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    755
                                                                                                                                                                                                 | 
                                                            +                        echo "<tr><td>"._("OpenRoaming connectivity test is not configured")."</td><td>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    756
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    756
                                                                                                                                                                                                 | 
                                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    757
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    757
                                                                                                                                                                                                 | 
                                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    758
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    758
                                                                                                                                                                                                 | 
                                                             #### OpenRoaming  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    759
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    echo "<strong>" . _("Static connectivity tests") . "</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    759
                                                                                                                                                                                                 | 
                                                            +                    echo "<strong>"._("Static connectivity tests")."</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    760
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    760
                                                                                                                                                                                                 | 
                                                                      <table><tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    761
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    761
                                                                                                                                                                                                 | 
                                                                      <td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='main_static_ico' class='icon'></td><td id='main_static_result' style='display:none'> </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    762
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    762
                                                                                                                                                                                                 | 
                                                                      </tr></table>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    763
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    763
                                                                                                                                                                                                 | 
                                                                                 if ($naptr > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    764
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<hr><strong>" . _("Dynamic connectivity tests") . "</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    764
                                                                                                                                                                                                 | 
                                                            +                        echo "<hr><strong>"._("Dynamic connectivity tests")."</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    765
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    765
                                                                                                                                                                                                 | 
                                                                      <table><tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    766
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    766
                                                                                                                                                                                                 | 
                                                                      <td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='main_dynamic_ico' class='icon'></td><td id='main_dynamic_result' style='display:none'> </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    767
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    767
                                                                                                                                                                                                 | 
                                                                      </tr></table>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    768
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    768
                                                                                                                                                                                                 | 
                                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    769
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    769
                                                                                                                                                                                                 | 
                                                                                 if (count($orrealm)) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    770
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                      echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    770
                                                                                                                                                                                                 | 
                                                            +                      echo "<hr><strong>"._("OpenRoaming connectivity tests")."</strong> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    771
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    771
                                                                                                                                                                                                 | 
                                                                      <table><tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    772
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    772
                                                                                                                                                                                                 | 
                                                                      <td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='main_openroaming_ico' class='icon'></td><td id='main_openroaming_result' style='display:none'> </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    773
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    773
                                                                                                                                                                                                 | 
                                                                      </tr></table>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -787,12 +787,12 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    787
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    787
                                                                                                                                                                                                 | 
                                                                                 print "<p>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    788
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    788
                                                                                                                                                                                                 | 
                                                                                 foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    789
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    789
                                                                                                                                                                                                 | 
                                                                                     print "<hr>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    790
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    790
                                                                                                                                                                                                 | 
                                                            +                        printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    791
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    791
                                                                                                                                                                                                 | 
                                                                                     print "<table id='results$hostindex'  style='width:100%' class='udp_results'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    792
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    792
                                                                                                                                                                                                 | 
                                                             <tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    793
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src" . $hostindex . "_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    793
                                                                                                                                                                                                 | 
                                                            +<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src".$hostindex."_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    794
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    794
                                                                                                                                                                                                 | 
                                                             <td id='src$hostindex' colspan=2>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    795
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -" . _("testing...") . " | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    795
                                                                                                                                                                                                 | 
                                                            +"._("testing...")." | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    796
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    796
                                                                                                                                                                                                 | 
                                                             </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    797
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    797
                                                                                                                                                                                                 | 
                                                             </tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    798
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    798
                                                                                                                                                                                                 | 
                                                             </table>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -811,21 +811,21 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    811
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    811
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    812
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    812
                                                                                                                                                                                                 | 
                                                                                 <?php  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    813
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    813
                                                                                                                                                                                                 | 
                                                                                 echo "<div id='dynamic_tests'><fieldset class='option_container'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    814
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                <legend><strong>" . _("DYNAMIC connectivity tests") . "</strong></legend>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    814
                                                                                                                                                                                                 | 
                                                            +                <legend><strong>" . _("DYNAMIC connectivity tests")."</strong></legend>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    815
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    815
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    816
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    816
                                                                                                                                                                                                 | 
                                                                                 $resultstoprint = [];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    817
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    817
                                                                                                                                                                                                 | 
                                                                                 if (count($rfc7585suite->NAPTR_hostname_records) > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    818
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        $resultstoprint[] = '<div style="align:right; display: none;" id="dynamic_result_fail">' . _("Some errors were found during the tests, see below") . '</div><div style="align:right; display: none;" id="dynamic_result_pass">' . _("All tests passed, congratulations!") . '</div>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    819
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">' . _('Show detailed information for all tests') . '</a></div>' . '<p><strong>' . _("Checking server handshake...") . "</strong><p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    818
                                                                                                                                                                                                 | 
                                                            +                        $resultstoprint[] = '<div style="align:right; display: none;" id="dynamic_result_fail">'._("Some errors were found during the tests, see below").'</div><div style="align:right; display: none;" id="dynamic_result_pass">'._("All tests passed, congratulations!").'</div>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    819
                                                                                                                                                                                                 | 
                                                            +                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">'._('Show detailed information for all tests').'</a></div>'.'<p><strong>'._("Checking server handshake...")."</strong><p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    820
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    820
                                                                                                                                                                                                 | 
                                                                                     foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    821
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $bracketaddr = ($addr["family"] == "IPv6" ? "[" . $addr["IP"] . "]" : $addr["IP"]);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    822
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $resultstoprint[] = '<p><strong>' . $bracketaddr . ' TCP/' . $addr['port'] . '</strong>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    821
                                                                                                                                                                                                 | 
                                                            +                            $bracketaddr = ($addr["family"] == "IPv6" ? "[".$addr["IP"]."]" : $addr["IP"]);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    822
                                                                                                                                                                                                 | 
                                                            +                            $resultstoprint[] = '<p><strong>'.$bracketaddr.' TCP/'.$addr['port'].'</strong>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    823
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    823
                                                                                                                                                                                                 | 
                                                                                         $resultstoprint[] = '<ul style="list-style-type: none;" class="caresult"><li>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    824
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    824
                                                                                                                                                                                                 | 
                                                                                         $resultstoprint[] = "<table id='caresults$hostindex'  style='width:100%'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    825
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    825
                                                                                                                                                                                                 | 
                                                             <tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    826
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='srcca" . $hostindex . "_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    826
                                                                                                                                                                                                 | 
                                                            +<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='srcca".$hostindex."_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    827
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    827
                                                                                                                                                                                                 | 
                                                             <td id='srcca$hostindex'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    828
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -" . _("testing...") . " | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    828
                                                                                                                                                                                                 | 
                                                            +"._("testing...")." | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    829
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    829
                                                                                                                                                                                                 | 
                                                             </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    830
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    830
                                                                                                                                                                                                 | 
                                                             </tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    831
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    831
                                                                                                                                                                                                 | 
                                                             </table>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -833,12 +833,12 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    833
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    833
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    834
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    834
                                                                                                                                                                                                 | 
                                                                                     $clientstest = [];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    835
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    835
                                                                                                                                                                                                 | 
                                                                                     foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    836
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $clientstest[] = '<p><strong>' . $addr['IP'] . ' TCP/' . $addr['port'] . '</strong></p><ol>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    836
                                                                                                                                                                                                 | 
                                                            +                            $clientstest[] = '<p><strong>'.$addr['IP'].' TCP/'.$addr['port'].'</strong></p><ol>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    837
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    837
                                                                                                                                                                                                 | 
                                                                                         $clientstest[] = "<span id='clientresults$hostindex$clinx'><table style='width:100%'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    838
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    838
                                                                                                                                                                                                 | 
                                                             <tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    839
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='srcclient" . $hostindex . "_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    839
                                                                                                                                                                                                 | 
                                                            +<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='srcclient".$hostindex."_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    840
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    840
                                                                                                                                                                                                 | 
                                                             <td id='srcclient$hostindex'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    841
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -" . _("testing...") . " | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    841
                                                                                                                                                                                                 | 
                                                            +"._("testing...")." | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    842
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    842
                                                                                                                                                                                                 | 
                                                             </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    843
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    843
                                                                                                                                                                                                 | 
                                                             </tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    844
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    844
                                                                                                                                                                                                 | 
                                                             </table></span>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -846,7 +846,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    846
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    846
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    847
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    847
                                                                                                                                                                                                 | 
                                                                                     echo '<div style="align:right;">';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    848
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    848
                                                                                                                                                                                                 | 
                                                                                     echo join('', $resultstoprint); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    849
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo '<span id="clientstest" style="display: none;"><p><hr><b>' . _('Checking if certificates from  CAs are accepted...') . '</b><p>' . _('A few client certificates will be tested to check if servers are resistant to some certificate problems.') . '<p>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    849
                                                                                                                                                                                                 | 
                                                            +                        echo '<span id="clientstest" style="display: none;"><p><hr><b>'._('Checking if certificates from  CAs are accepted...').'</b><p>'._('A few client certificates will be tested to check if servers are resistant to some certificate problems.').'<p>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    850
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    850
                                                                                                                                                                                                 | 
                                                                                     print join('', $clientstest); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    851
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    851
                                                                                                                                                                                                 | 
                                                                                     echo '</span>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    852
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    852
                                                                                                                                                                                                 | 
                                                                                     echo '</div>';  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -863,17 +863,17 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    863
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    863
                                                                                                                                                                                                 | 
                                                                                 echo _("OpenRoaming connectivity tests").'</strong></legend>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    864
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    864
                                                                                                                                                                                                 | 
                                                                                 $resultstoprint = [];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    865
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    865
                                                                                                                                                                                                 | 
                                                                                 if (count($dnsChecks->NAPTR_hostname_records) > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    866
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        $resultstoprint[] = '<div style="align:right; display: none;" id="openroaming_result_fail">' . _("Some errors were found during the tests, see below") . '</div><div style="align:right; display: none;" id="dynamic_result_pass">' . _("All tests passed, congratulations!") . '</div>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    867
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">' . _('Show detailed information for all tests') . '</a></div>' . '<p><strong>' . _("Checking server handshake...") . "</strong><p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    866
                                                                                                                                                                                                 | 
                                                            +                        $resultstoprint[] = '<div style="align:right; display: none;" id="openroaming_result_fail">'._("Some errors were found during the tests, see below").'</div><div style="align:right; display: none;" id="dynamic_result_pass">'._("All tests passed, congratulations!").'</div>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    867
                                                                                                                                                                                                 | 
                                                            +                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">'._('Show detailed information for all tests').'</a></div>'.'<p><strong>'._("Checking server handshake...")."</strong><p>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    868
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    868
                                                                                                                                                                                                 | 
                                                                                     foreach ($dnsChecks->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    869
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $bracketaddr = ($addr["family"] == "IPv6" ? "[" . $addr["IP"] . "]" : $addr["IP"]);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    870
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $resultstoprint[] = '<p><strong>' . $bracketaddr . ' TCP/' . $addr['port'] . '</strong>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    869
                                                                                                                                                                                                 | 
                                                            +                            $bracketaddr = ($addr["family"] == "IPv6" ? "[".$addr["IP"]."]" : $addr["IP"]);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    870
                                                                                                                                                                                                 | 
                                                            +                            $resultstoprint[] = '<p><strong>'.$bracketaddr.' TCP/'.$addr['port'].'</strong>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    871
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    871
                                                                                                                                                                                                 | 
                                                                                         $resultstoprint[] = '<ul style="list-style-type: none;" class="caresult"><li>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    872
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    872
                                                                                                                                                                                                 | 
                                                                                         $resultstoprint[] = "<table id='openroamingcaresults$hostindex'  style='width:100%'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    873
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    873
                                                                                                                                                                                                 | 
                                                             <tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    874
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='openroamingsrcca" . $hostindex . "_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    874
                                                                                                                                                                                                 | 
                                                            +<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='openroamingsrcca".$hostindex."_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    875
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    875
                                                                                                                                                                                                 | 
                                                             <td id='openroamingsrcca$hostindex'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    876
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -" . _("testing...") . " | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    876
                                                                                                                                                                                                 | 
                                                            +"._("testing...")." | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    877
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    877
                                                                                                                                                                                                 | 
                                                             </td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    878
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    878
                                                                                                                                                                                                 | 
                                                             </tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    879
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    879
                                                                                                                                                                                                 | 
                                                             </table>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -881,20 +881,20 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    881
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    881
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    882
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    882
                                                                                                                                                                                                 | 
                                                                                     $clientstest = [];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    883
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    883
                                                                                                                                                                                                 | 
                                                                                     foreach ($dnsChecks->NAPTR_hostname_records as $hostindex => $addr) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    884
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            $clientstest[] = '<p><strong>' . $addr['IP'] . ' TCP/' . $addr['port'] . '</strong></p><ol>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    884
                                                                                                                                                                                                 | 
                                                            +                            $clientstest[] = '<p><strong>'.$addr['IP'].' TCP/'.$addr['port'].'</strong></p><ol>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    885
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    885
                                                                                                                                                                                                 | 
                                                                                         $clientstest[] = "<span id='openroamingclientresults$hostindex$clinx'><table style='width:100%'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    886
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    886
                                                                                                                                                                                                 | 
                                                             <tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    887
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -<td class='icon_td'><!--<img src='../resources/images/icons/loading51.gif' id='openroamingsrcclient" . $hostindex . "_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    887
                                                                                                                                                                                                 | 
                                                            +<td class='icon_td'><!--<img src='../resources/images/icons/loading51.gif' id='openroamingsrcclient".$hostindex."_img'></td>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    888
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    888
                                                                                                                                                                                                 | 
                                                             <td id='srcclient$hostindex'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    889
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -" . _("testing...") . " | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    890
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            --->" . _("not implemented yet") ."</td> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    889
                                                                                                                                                                                                 | 
                                                            +"._("testing...")." | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    890
                                                                                                                                                                                                 | 
                                                            +-->" . _("not implemented yet")."</td> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    891
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    891
                                                                                                                                                                                                 | 
                                                             </tr>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    892
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    892
                                                                                                                                                                                                 | 
                                                             </table></span>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    893
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    893
                                                                                                                                                                                                 | 
                                                                                         $clientstest[] = '</ol>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    894
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    894
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    895
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    895
                                                                                                                                                                                                 | 
                                                                                     echo '<div style="align:right;">';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    896
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    896
                                                                                                                                                                                                 | 
                                                                                     echo join('', $resultstoprint); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    897
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo '<span id="openroamingclientstest" style="display: none;"><p><hr><b>' . _('Checking if certificates from  CAs are accepted...') . '</b><p>' . _('A few client certificates will be tested to check if servers are resistant to some certificate problems.') . '<p>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    897
                                                                                                                                                                                                 | 
                                                            +                        echo '<span id="openroamingclientstest" style="display: none;"><p><hr><b>'._('Checking if certificates from  CAs are accepted...').'</b><p>'._('A few client certificates will be tested to check if servers are resistant to some certificate problems.').'<p>'; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    898
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    898
                                                                                                                                                                                                 | 
                                                                                     print join('', $clientstest); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    899
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    899
                                                                                                                                                                                                 | 
                                                                                     echo '</span>';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    900
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    900
                                                                                                                                                                                                 | 
                                                                                     echo '</div>';  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -908,7 +908,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    908
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    908
                                                                                                                                                                                                 | 
                                                                             //     check if truncates/dies on Operator-Name  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    909
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    909
                                                                                                                                                                                                 | 
                                                                             if ($my_profile !== NULL) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    910
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    910
                                                                                                                                                                                                 | 
                                                                                 echo "<div id='tabs-n'><fieldset class='option_container'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    911
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                <legend><strong>" . _("Live login test") . "</strong></legend>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    911
                                                                                                                                                                                                 | 
                                                            +                <legend><strong>" . _("Live login test")."</strong></legend>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    912
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    912
                                                                                                                                                                                                 | 
                                                                                 $prof_compl = $my_profile->getEapMethodsinOrderOfPreference(1);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    913
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    913
                                                                                                                                                                                                 | 
                                                                                 if (count($prof_compl) > 0) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    914
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    914
                                                                                                                                                                                                 | 
                                                                                     $passwordReqired = FALSE;  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -921,34 +921,34 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    921
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    921
                                                                                                                                                                                                 | 
                                                                                             $clientCertRequired = TRUE;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    922
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    922
                                                                                                                                                                                                 | 
                                                                                         }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    923
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    923
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    924
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<div id='disposable_credential_container'><p>" . _("If you enter an existing login credential here, you can test the actual authentication from various checkpoints all over the world.") . "</p> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    925
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    <p>" . _("The test will use all EAP types you have set in your profile information to check whether the right CAs and server names are used, and of course whether the login with these credentials and the given EAP type actually worked. If you have set anonymous outer ID, the test will use that.") . "</p> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    926
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    <p>" . _("Note: the tool purposefully does not offer you to save these credentials, and they will never be saved in any way on the server side. Please use only <strong>temporary test accounts</strong> here; permanently valid test accounts in the wild are considered harmful!") . "</p></div> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    924
                                                                                                                                                                                                 | 
                                                            +                        echo "<div id='disposable_credential_container'><p>"._("If you enter an existing login credential here, you can test the actual authentication from various checkpoints all over the world.")."</p> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    925
                                                                                                                                                                                                 | 
                                                            +                    <p>" . _("The test will use all EAP types you have set in your profile information to check whether the right CAs and server names are used, and of course whether the login with these credentials and the given EAP type actually worked. If you have set anonymous outer ID, the test will use that.")."</p> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    926
                                                                                                                                                                                                 | 
                                                            +                    <p>" . _("Note: the tool purposefully does not offer you to save these credentials, and they will never be saved in any way on the server side. Please use only <strong>temporary test accounts</strong> here; permanently valid test accounts in the wild are considered harmful!")."</p></div> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    927
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    927
                                                                                                                                                                                                 | 
                                                                                 <form enctype='multipart/form-data' id='live_form' accept-charset='UTF-8'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    928
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    928
                                                                                                                                                                                                 | 
                                                                                 <input type='hidden' name='test_type' value='udp_login'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    929
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang() . "'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    930
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier . "'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    929
                                                                                                                                                                                                 | 
                                                            +                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang()."'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    930
                                                                                                                                                                                                 | 
                                                            +                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier."'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    931
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    931
                                                                                                                                                                                                 | 
                                                                                 <table id='live_tests'>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    932
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    932
                                                                                                                                                                                                 | 
                                                             // if any password based EAP methods are available enable this section  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    933
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    933
                                                                                                                                                                                                 | 
                                                                                     if ($passwordReqired) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    934
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td colspan='2'><strong>" . _("Password-based EAP types") . "</strong></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    935
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        <tr><td>" . _("Real (inner) username:") . "</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    936
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Anonymous outer ID (optional):") . "</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    937
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td>" . _("Password:") . "</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    934
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td colspan='2'><strong>"._("Password-based EAP types")."</strong></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    935
                                                                                                                                                                                                 | 
                                                            +                        <tr><td>" . _("Real (inner) username:")."</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    936
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Anonymous outer ID (optional):")."</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    937
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td>"._("Password:")."</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    938
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    938
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    939
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    939
                                                                                                                                                                                                 | 
                                                                                     // ask for cert + privkey if TLS-based method is active  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    940
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    940
                                                                                                                                                                                                 | 
                                                                                     if ($clientCertRequired) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    941
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            echo "<tr><td colspan='2'><strong>" . _("Certificate-based EAP types") . "</strong></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    942
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        <tr><td>" . _("Certificate file (.p12 or .pfx):") . "</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    943
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        <tr><td>" . _("Certificate password, if any:") . "</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    944
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        <tr><td>" . _("Username, if different from certificate Subject:") . "</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    941
                                                                                                                                                                                                 | 
                                                            +                            echo "<tr><td colspan='2'><strong>"._("Certificate-based EAP types")."</strong></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    942
                                                                                                                                                                                                 | 
                                                            +                        <tr><td>" . _("Certificate file (.p12 or .pfx):")."</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    943
                                                                                                                                                                                                 | 
                                                            +                        <tr><td>" . _("Certificate password, if any:")."</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr> | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    944
                                                                                                                                                                                                 | 
                                                            +                        <tr><td>" . _("Username, if different from certificate Subject:")."</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    945
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    945
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    946
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                        echo "<tr><td colspan='2'><button id='submit_credentials'>" . _("Submit credentials") . "</button></td></tr></table></form>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    946
                                                                                                                                                                                                 | 
                                                            +                        echo "<tr><td colspan='2'><button id='submit_credentials'>"._("Submit credentials")."</button></td></tr></table></form>"; | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    947
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    947
                                                                                                                                                                                                 | 
                                                                                     echo "<div id='live_login_results' style='display:none'>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    948
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    948
                                                                                                                                                                                                 | 
                                                                                     foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    949
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    949
                                                                                                                                                                                                 | 
                                                                                         print "<hr>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    950
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    951
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                            print "<span style='position:relative'><img src='../resources/images/icons/loading51.gif' id='live_src" . $hostindex . "_img' style='width:24px; position: absolute; left: 20px; bottom: 0px; '></span>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    950
                                                                                                                                                                                                 | 
                                                            +                            printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>"); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    951
                                                                                                                                                                                                 | 
                                                            +                            print "<span style='position:relative'><img src='../resources/images/icons/loading51.gif' id='live_src".$hostindex."_img' style='width:24px; position: absolute; left: 20px; bottom: 0px; '></span>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    952
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    952
                                                                                                                                                                                                 | 
                                                                                         print "<div id='eap_test$hostindex' class='eap_test_results'></div>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    953
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    953
                                                                                                                                                                                                 | 
                                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    954
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    954
                                                                                                                                                                                                 | 
                                                                                     echo "</div>";  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -963,9 +963,9 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    963
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    963
                                                                                                                                                                                                 | 
                                                                         }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    964
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    964
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    965
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    965
                                                                                                                                                                                                 | 
                                                                         if (isset($_POST['comefrom'])) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    966
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                $return = htmlspecialchars_decode($_POST['comefrom']) . ( $inst_id ? "?inst_id=" . $inst_id : "" );  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    966
                                                                                                                                                                                                 | 
                                                            +                $return = htmlspecialchars_decode($_POST['comefrom']).($inst_id ? "?inst_id=".$inst_id : "");  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    967
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    967
                                                                                                                                                                                                 | 
                                                                             echo "<form method='post' action='$return' accept-charset='UTF-8'>  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    968
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -                    <button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CLOSE . "'>" . sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_inst) . "</button>" | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    968
                                                                                                                                                                                                 | 
                                                            +                    <button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CLOSE."'>".sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_inst)."</button>" | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    969
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    969
                                                                                                                                                                                                 | 
                                                                             . "</form>";  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    970
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    970
                                                                                                                                                                                                 | 
                                                                         }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    971
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    971
                                                                                                                                                                                                 | 
                                                                         if ($check_realm !== FALSE) { |