Test Setup Failed
Push — master ( 374e97...950848 )
by Stefan
07:32 queued 17s
created
web/diag/action_realmcheck.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -566,9 +566,9 @@  discard block
 block discarded – undo
566 566
                     $naptr = $rfc7585suite->relevantNAPTR();
567 567
                     if ($naptr == \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) {
568 568
                         if ($dynType == "") {
569
-                        	echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
569
+                            echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
570 570
                         } else {
571
-                        	echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
571
+                            echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
572 572
                         }
573 573
                     } else {
574 574
                         echo "<table>";
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
                         echo "}
673 673
               </script>";
674 674
                         } else {
675
-                   echo ' 
675
+                    echo ' 
676 676
               function run_openroaming() {
677 677
                  running_ajax_openroaming = 0;
678 678
                  $("#main_openroaming_ico").attr("src",icon_loading);
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
          </tr></table>";
706 706
                     }
707 707
                     if (count($orrealm)) {
708
-                      echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
708
+                        echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
709 709
          <table><tr>
710 710
          <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'>&nbsp;</td>
711 711
          </tr></table>";
@@ -743,10 +743,10 @@  discard block
 block discarded – undo
743 743
             <?php
744 744
             for ($i=3; $i<5; $i++) {
745 745
                 if ($i == 3 && $naptr == 0) {
746
-                   continue;
746
+                    continue;
747 747
                 }
748 748
                 if ($i == 4 && count($orrealm) == 0) {
749
-                   continue;
749
+                    continue;
750 750
                 }
751 751
                 if ($i == 3) {
752 752
                     $rfc7585suite = $dnsChecks;
@@ -763,16 +763,16 @@  discard block
 block discarded – undo
763 763
                     echo "_tests'><fieldset class='option_container'>
764 764
                 <legend><strong>";
765 765
                     if ($i==3) {
766
-                     echo _("DYNAMIC connectivity tests");
766
+                        echo _("DYNAMIC connectivity tests");
767 767
                     } else {
768
-                     echo _("OpenRoaming connectivity tests");
768
+                        echo _("OpenRoaming connectivity tests");
769 769
                     }
770 770
                     echo  "</strong></legend>";
771 771
                     $prefix1 = 'dynamic';
772 772
                     $prefix2 = '';
773 773
                     if ($i == 4) {
774
-                    	$prefix1 = 'openroaming';
775
-                    	$prefix2 = $prefix1;
774
+                        $prefix1 = 'openroaming';
775
+                        $prefix2 = $prefix1;
776 776
                     }
777 777
                     $resultstoprint = [];
778 778
                     if (count($rfc7585suite->NAPTR_hostname_records) > 0) {
Please login to merge, or discard this patch.
Spacing   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -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
 
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
             $dnsChecksOR = new \core\diag\RFC7585Tests($check_realm, "aaa+auth:radius.tls.tcp");
70 70
         }
71 71
     } else {
72
-        $error_message = _("You asked for a realm check, but we don't know the realm for this profile!") . "</p>";
72
+        $error_message = _("You asked for a realm check, but we don't know the realm for this profile!")."</p>";
73 73
     }
74 74
 } else { // someone else's realm, and we don't know anything about it... only shallow checks
75 75
     $check_realm = $validator->realm($realm ?? $_SESSION['check_realm'] ?? "");
76 76
     if ($check_realm !== FALSE) {
77 77
         $_SESSION['check_realm'] = $check_realm;
78
-        $testsuite = new \core\diag\RADIUSTests($check_realm, "@" . $check_realm);
78
+        $testsuite = new \core\diag\RADIUSTests($check_realm, "@".$check_realm);
79 79
         $dnsChecks = new \core\diag\RFC7585Tests($check_realm);
80 80
     } else {
81 81
         $error_message = _("No valid realm name given, cannot execute any checks!");
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     var listofcas = "<?php echo _("You should update your list of accredited CAs") ?>";
123 123
     var getitfrom = "<?php echo _("Get it from here.") ?>";
124 124
     var listsource = "<?php echo \config\Diagnostics::RADIUSTESTS['accreditedCAsURL'] ?>";
125
-    var moretext = "<?php echo _("more") . "&raquo;" ?>";
125
+    var moretext = "<?php echo _("more")."&raquo;" ?>";
126 126
     var lesstext = "<?php echo "&laquo" ?>";
127 127
     var morealltext = "<?php echo _("Show detailed information for all tests") ?>";
128 128
     var unknownca_code = "<?php echo \core\diag\RADIUSTests::CERTPROB_UNKNOWN_CA ?>";
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
                         }
266 266
                     }
267 267
                     cliinfo = cliinfo + '<li><table><tbody><tr><td class="icon_td"><img class="icon" src="' + icons[level] + '" style="width: 24px;"></td><td>' + state;
268
-                    cliinfo = cliinfo + ' <?php echo "(" . sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+'&nbsp;") . ")"; ?>' + add + '</td></tr>';
268
+                    cliinfo = cliinfo + ' <?php echo "(".sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+'&nbsp;").")"; ?>' + add + '</td></tr>';
269 269
                     cliinfo = cliinfo + '</tbody></table></ul></li>';
270 270
                     if (data.ca[key].certificate[c].finalerror === 1) {
271 271
                         cliinfo = cliinfo + '<li>' + restskipped + '</li>';
@@ -468,8 +468,8 @@  discard block
 block discarded – undo
468 468
 <?php
469 469
 foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
470 470
     print "
471
-$(\"#live_src" . $hostindex . "_img\").attr('src',icon_loading);
472
-$(\"#live_src" . $hostindex . "_img\").show();
471
+$(\"#live_src" . $hostindex."_img\").attr('src',icon_loading);
472
+$(\"#live_src" . $hostindex."_img\").show();
473 473
 $.ajax({
474 474
     url: 'radius_tests.php?src=0&hostindex=$hostindex&realm='+realm,
475 475
     type: 'POST',
@@ -499,15 +499,15 @@  discard block
 block discarded – undo
499 499
 <?php
500 500
 foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
501 501
     if ($testedProfile !== NULL) {
502
-        $extraarg = "profile_id: " . $testedProfile->identifier . ", ";
502
+        $extraarg = "profile_id: ".$testedProfile->identifier.", ";
503 503
     } else {
504 504
         $extraarg = "";
505 505
     }
506 506
     print "
507
-$(\"#src" . $hostindex . "_img\").attr('src',icon_loading);
507
+$(\"#src" . $hostindex."_img\").attr('src',icon_loading);
508 508
 $(\"#src$hostindex\").html('');
509 509
 running_ajax_stat++;
510
-$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex'  }, udp, 'json');
510
+$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex'  }, udp, 'json');
511 511
 
512 512
 ";
513 513
 }
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
     if ($check_realm === FALSE) {
535 535
         print "<p>$error_message</p>";
536 536
     } else {
537
-        print "<h1>" . sprintf(_("Realm testing for: %s"), $check_realm) . "</h1>\n";
537
+        print "<h1>".sprintf(_("Realm testing for: %s"), $check_realm)."</h1>\n";
538 538
         ?>
539 539
         <div id="debug_out" style="display: none"></div>
540 540
         <div id="tabs" style="min-width: 600px; max-width:1000px">
@@ -555,25 +555,25 @@  discard block
 block discarded – undo
555 555
                     // NAPTR existence check
556 556
                     if ($dynType == "") {
557 557
                         $rfc7585suite = $dnsChecks;
558
-                        echo "<strong>" . _("DNS checks") . "</strong><div>";
558
+                        echo "<strong>"._("DNS checks")."</strong><div>";
559 559
                     } else {
560 560
                         if (count($orrealm) == 0) {
561 561
                             continue;
562 562
                         }
563 563
                         $rfc7585suite = $dnsChecksOR;
564
-                        echo "<strong>" . _("OpenRoaming DNS checks") . "</strong><div>";
564
+                        echo "<strong>"._("OpenRoaming DNS checks")."</strong><div>";
565 565
                     }
566 566
                     $naptr = $rfc7585suite->relevantNAPTR();
567 567
                     if ($naptr == \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) {
568 568
                         if ($dynType == "") {
569
-                        	echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
569
+                        	echo "<tr><td>"._("Dynamic discovery test is not configured")."</td><td>";
570 570
                         } else {
571
-                        	echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
571
+                        	echo "<tr><td>"._("OpenRoaming connectivity test is not configured")."</td><td>";
572 572
                         }
573 573
                     } else {
574 574
                         echo "<table>";
575 575
                         // output in friendly words
576
-                        echo "<tr><td>" . _("Checking NAPTR existence:") . "</td><td>";
576
+                        echo "<tr><td>"._("Checking NAPTR existence:")."</td><td>";
577 577
                         switch ($naptr) {
578 578
                             case \core\diag\RFC7585Tests::RETVAL_NONAPTR:
579 579
                                 echo _("This realm has no NAPTR records.");
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 
589 589
                         // compliance checks for NAPTRs
590 590
                         if ($naptr > 0) {
591
-                            echo "<tr><td>" . _("Checking NAPTR compliance (flag = S and regex = {empty}):") . "</td><td>";
591
+                            echo "<tr><td>"._("Checking NAPTR compliance (flag = S and regex = {empty}):")."</td><td>";
592 592
                             $naptr_valid = $rfc7585suite->relevantNAPTRcompliance();
593 593
                             switch ($naptr_valid) {
594 594
                                 case \core\diag\RADIUSTests::RETVAL_OK:
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
                         // SRV resolution
604 604
                         if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK) {
605 605
                             $srv = $rfc7585suite->relevantNAPTRsrvResolution();
606
-                            echo "<tr><td>" . _("Checking SRVs:") . "</td><td>";
606
+                            echo "<tr><td>"._("Checking SRVs:")."</td><td>";
607 607
                             switch ($srv) {
608 608
                                 case \core\diag\RADIUSTests::RETVAL_SKIPPED:
609 609
                                     echo _("This check was skipped.");
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
                         // IP addresses for the hosts
620 620
                         if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK && $srv > 0) {
621 621
                             $hosts = $rfc7585suite->relevantNAPTRhostnameResolution();
622
-                            echo "<tr><td>" . _("Checking IP address resolution:") . "</td><td>";
622
+                            echo "<tr><td>"._("Checking IP address resolution:")."</td><td>";
623 623
                             switch ($srv) {
624 624
                                 case \core\diag\RADIUSTests::RETVAL_SKIPPED:
625 625
                                     echo _("This check was skipped.");
@@ -636,12 +636,12 @@  discard block
 block discarded – undo
636 636
                         echo "</table><br/>";
637 637
                         if ($dynType == "") {
638 638
                             if (count($testsuite->listerrors()) == 0) {
639
-                                echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC"))) . _("with no DNS errors encountered. Congratulations!");
639
+                                echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC")))._("with no DNS errors encountered. Congratulations!");
640 640
                             } else {
641
-                                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.");
641
+                                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.");
642 642
                                 echo "<div class='notacceptable'><table>";
643 643
                                 foreach ($testsuite->listerrors() as $details) {
644
-                                    echo "<tr><td>" . $details['TYPE'] . "</td><td>" . $details['TARGET'] . "</td></tr>";
644
+                                    echo "<tr><td>".$details['TYPE']."</td><td>".$details['TARGET']."</td></tr>";
645 645
                                 }
646 646
                                 echo "</table></div>";
647 647
                             }
@@ -660,13 +660,13 @@  discard block
 block discarded – undo
660 660
                  $("#dynamic_tests").show();
661 661
               ';
662 662
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
663
-                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];
663
+                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];
664 664
                             $expectedName = $addr['hostname'];
665 665
                             print "
666 666
                             running_ajax_dyn++;
667
-                            $.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'}); 
667
+                            $.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'}); 
668 668
                             running_ajax_dyn++;
669
-                            $.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'}); 
669
+                            $.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'}); 
670 670
                        ";
671 671
                         }
672 672
                         echo "}
@@ -682,11 +682,11 @@  discard block
 block discarded – undo
682 682
                  $("#openroaming_tests").show();
683 683
               ';
684 684
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
685
-                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];
685
+                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];
686 686
                             $expectedName = $addr['hostname'];
687 687
                             print "
688 688
                             running_ajax_openroaming++;
689
-                            $.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'}); 
689
+                            $.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'}); 
690 690
                        ";
691 691
                         }
692 692
                         echo "}
@@ -694,18 +694,18 @@  discard block
 block discarded – undo
694 694
                         } 
695 695
                     }
696 696
                 }
697
-                    echo "<strong>" . _("Static connectivity tests") . "</strong>
697
+                    echo "<strong>"._("Static connectivity tests")."</strong>
698 698
          <table><tr>
699 699
          <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'>&nbsp;</td>
700 700
          </tr></table>";
701 701
                     if ($naptr > 0) {
702
-                        echo "<hr><strong>" . _("Dynamic connectivity tests") . "</strong>
702
+                        echo "<hr><strong>"._("Dynamic connectivity tests")."</strong>
703 703
          <table><tr>
704 704
          <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'>&nbsp;</td>
705 705
          </tr></table>";
706 706
                     }
707 707
                     if (count($orrealm)) {
708
-                      echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
708
+                      echo "<hr><strong>"._("OpenRoaming connectivity tests")."</strong>
709 709
          <table><tr>
710 710
          <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'>&nbsp;</td>
711 711
          </tr></table>";
@@ -725,12 +725,12 @@  discard block
 block discarded – undo
725 725
                     print "<p>";
726 726
                     foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
727 727
                         print "<hr>";
728
-                        printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>");
728
+                        printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>");
729 729
                         print "<table id='results$hostindex'  style='width:100%' class='udp_results'>
730 730
 <tr>
731
-<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src" . $hostindex . "_img'></td>
731
+<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src".$hostindex."_img'></td>
732 732
 <td id='src$hostindex' colspan=2>
733
-" . _("testing...") . "
733
+"._("testing...")."
734 734
 </td>
735 735
 </tr>
736 736
 </table>";
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
 
742 742
             </div>
743 743
             <?php
744
-            for ($i=3; $i<5; $i++) {
744
+            for ($i = 3; $i < 5; $i++) {
745 745
                 if ($i == 3 && $naptr == 0) {
746 746
                    continue;
747 747
                 }
@@ -754,15 +754,15 @@  discard block
 block discarded – undo
754 754
                     $rfc7585suite = $dnsChecksOR;
755 755
                 }
756 756
             ?>
757
-                <div id="tabs-<?php echo $i;?>">
758
-                    <button id="run_<?php if ($i==3) echo 'd'; else echo 'o';?>_tests"; onclick="run_<?php if ($i==3) echo 'dynamic'; else echo 'openroaming';?>()"><?php if ($i==3) echo _("Repeat dynamic connectivity tests"); else echo _("Repeat OpenRoaming connectivity tests");?></button>
757
+                <div id="tabs-<?php echo $i; ?>">
758
+                    <button id="run_<?php if ($i == 3) echo 'd'; else echo 'o'; ?>_tests"; onclick="run_<?php if ($i == 3) echo 'dynamic'; else echo 'openroaming'; ?>()"><?php if ($i == 3) echo _("Repeat dynamic connectivity tests"); else echo _("Repeat OpenRoaming connectivity tests"); ?></button>
759 759
 
760 760
                 <?php
761 761
                     echo "<div id='";
762
-                    if ($i==3) { echo 'dynamic'; } else { echo 'openroaming'; }
762
+                    if ($i == 3) { echo 'dynamic'; } else { echo 'openroaming'; }
763 763
                     echo "_tests'><fieldset class='option_container'>
764 764
                 <legend><strong>";
765
-                    if ($i==3) {
765
+                    if ($i == 3) {
766 766
                      echo _("DYNAMIC connectivity tests");
767 767
                     } else {
768 768
                      echo _("OpenRoaming connectivity tests");
@@ -776,17 +776,17 @@  discard block
 block discarded – undo
776 776
                     }
777 777
                     $resultstoprint = [];
778 778
                     if (count($rfc7585suite->NAPTR_hostname_records) > 0) {
779
-                        $resultstoprint[] = '<div style="align:right; display: none;" id="' . $prefix1 . '_result_fail">' . _("Some errors were found during the tests, see below") . '</div><div style="align:right; display: none;" id="' . $prefix1 . '_result_pass">' . _("All tests passed, congratulations!") . '</div>';
780
-                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">' . _('Show detailed information for all tests') . '</a></div>' . '<p><strong>' . _("Checking server handshake...") . "</strong><p>";
779
+                        $resultstoprint[] = '<div style="align:right; display: none;" id="'.$prefix1.'_result_fail">'._("Some errors were found during the tests, see below").'</div><div style="align:right; display: none;" id="'.$prefix1.'_result_pass">'._("All tests passed, congratulations!").'</div>';
780
+                        $resultstoprint[] = '<div style="align:right;"><a href="" class="moreall">'._('Show detailed information for all tests').'</a></div>'.'<p><strong>'._("Checking server handshake...")."</strong><p>";
781 781
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
782
-                            $bracketaddr = ($addr["family"] == "IPv6" ? "[" . $addr["IP"] . "]" : $addr["IP"]);
783
-                            $resultstoprint[] = '<p><strong>' . $bracketaddr . ' TCP/' . $addr['port'] . '</strong>';
782
+                            $bracketaddr = ($addr["family"] == "IPv6" ? "[".$addr["IP"]."]" : $addr["IP"]);
783
+                            $resultstoprint[] = '<p><strong>'.$bracketaddr.' TCP/'.$addr['port'].'</strong>';
784 784
                             $resultstoprint[] = '<ul style="list-style-type: none;" class="caresult"><li>';
785
-                            $resultstoprint[] = "<table id='" . $prefix2 . "caresults$hostindex'  style='width:100%'>
785
+                            $resultstoprint[] = "<table id='".$prefix2."caresults$hostindex'  style='width:100%'>
786 786
 <tr>
787
-<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='" . $prefix2 . "srcca$hostindex" . "_img'></td>
788
-<td id='" . $prefix2 . "srcca$hostindex'>
789
-" . _("testing...") . "
787
+<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='".$prefix2."srcca$hostindex"."_img'></td>
788
+<td id='" . $prefix2."srcca$hostindex'>
789
+"._("testing...")."
790 790
 </td>
791 791
 </tr>
792 792
 </table>";
@@ -794,26 +794,26 @@  discard block
 block discarded – undo
794 794
                         }
795 795
                         $clientstest = [];
796 796
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
797
-                            $clientstest[] = '<p><strong>' . $addr['IP'] . ' TCP/' . $addr['port'] . '</strong></p><ol>';
798
-                            $clientstest[] = "<span id='" . $prefix2 . "clientresults$hostindex$clinx'><table style='width:100%'>
797
+                            $clientstest[] = '<p><strong>'.$addr['IP'].' TCP/'.$addr['port'].'</strong></p><ol>';
798
+                            $clientstest[] = "<span id='".$prefix2."clientresults$hostindex$clinx'><table style='width:100%'>
799 799
 <tr>
800 800
 <td class='icon_td'>";
801
-                            if ($i == 4 ) {
801
+                            if ($i == 4) {
802 802
                                 $clientstest[] = "<!--";
803 803
                             }
804
-                            $clientstest[] = "<img src='../resources/images/icons/loading51.gif' id='" . $prefix2 . "srcclient$hostindex" . "_img'></td>
805
-<td id='" . $prefix2 . "srcclient$hostindex'>
806
-" . _("testing...");
804
+                            $clientstest[] = "<img src='../resources/images/icons/loading51.gif' id='".$prefix2."srcclient$hostindex"."_img'></td>
805
+<td id='" . $prefix2."srcclient$hostindex'>
806
+"._("testing...");
807 807
 
808
-                            if ($i == 4 ) {
809
-                                $clientstest[] = "-->" . _("not implemented yet");
808
+                            if ($i == 4) {
809
+                                $clientstest[] = "-->"._("not implemented yet");
810 810
                             }
811 811
                             $clientstest[] = "</td></tr></table></span>";
812 812
                             $clientstest[] = '</ol>';
813 813
                         }
814 814
                         echo '<div style="align:right;">';
815 815
                         echo join('', $resultstoprint);
816
-                        echo '<span id="' . $prefix2 . '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>';
816
+                        echo '<span id="'.$prefix2.'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>';
817 817
                         print join('', $clientstest);
818 818
                         echo '</span>';
819 819
                         echo '</div>';
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
                 //     check if truncates/dies on Operator-Name
828 828
                 if ($my_profile !== NULL) {
829 829
                     echo "<div id='tabs-n'><fieldset class='option_container'>
830
-                <legend><strong>" . _("Live login test") . "</strong></legend>";
830
+                <legend><strong>" . _("Live login test")."</strong></legend>";
831 831
                     $prof_compl = $my_profile->getEapMethodsinOrderOfPreference(1);
832 832
                     if (count($prof_compl) > 0) {
833 833
                         $passwordReqired = FALSE;
@@ -840,34 +840,34 @@  discard block
 block discarded – undo
840 840
                                 $clientCertRequired = TRUE;
841 841
                             }
842 842
                         }
843
-                        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>
844
-                    <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>
845
-                    <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>
843
+                        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>
844
+                    <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>
845
+                    <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>
846 846
                     <form enctype='multipart/form-data' id='live_form' accept-charset='UTF-8'>
847 847
                     <input type='hidden' name='test_type' value='udp_login'>
848
-                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang() . "'>
849
-                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier . "'>
848
+                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang()."'>
849
+                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier."'>
850 850
                     <table id='live_tests'>";
851 851
 // if any password based EAP methods are available enable this section
852 852
                         if ($passwordReqired) {
853
-                            echo "<tr><td colspan='2'><strong>" . _("Password-based EAP types") . "</strong></td></tr>
854
-                        <tr><td>" . _("Real (inner) username:") . "</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>";
855
-                            echo "<tr><td>" . _("Anonymous outer ID (optional):") . "</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>";
856
-                            echo "<tr><td>" . _("Password:") . "</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>";
853
+                            echo "<tr><td colspan='2'><strong>"._("Password-based EAP types")."</strong></td></tr>
854
+                        <tr><td>" . _("Real (inner) username:")."</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>";
855
+                            echo "<tr><td>"._("Anonymous outer ID (optional):")."</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>";
856
+                            echo "<tr><td>"._("Password:")."</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>";
857 857
                         }
858 858
                         // ask for cert + privkey if TLS-based method is active
859 859
                         if ($clientCertRequired) {
860
-                            echo "<tr><td colspan='2'><strong>" . _("Certificate-based EAP types") . "</strong></td></tr>
861
-                        <tr><td>" . _("Certificate file (.p12 or .pfx):") . "</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr>
862
-                        <tr><td>" . _("Certificate password, if any:") . "</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr>
863
-                        <tr><td>" . _("Username, if different from certificate Subject:") . "</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>";
860
+                            echo "<tr><td colspan='2'><strong>"._("Certificate-based EAP types")."</strong></td></tr>
861
+                        <tr><td>" . _("Certificate file (.p12 or .pfx):")."</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr>
862
+                        <tr><td>" . _("Certificate password, if any:")."</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr>
863
+                        <tr><td>" . _("Username, if different from certificate Subject:")."</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>";
864 864
                         }
865
-                        echo "<tr><td colspan='2'><button id='submit_credentials'>" . _("Submit credentials") . "</button></td></tr></table></form>";
865
+                        echo "<tr><td colspan='2'><button id='submit_credentials'>"._("Submit credentials")."</button></td></tr></table></form>";
866 866
                         echo "<div id='live_login_results' style='display:none'>";
867 867
                         foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
868 868
                             print "<hr>";
869
-                            printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>");
870
-                            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>";
869
+                            printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>");
870
+                            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>";
871 871
                             print "<div id='eap_test$hostindex' class='eap_test_results'></div>";
872 872
                         }
873 873
                         echo "</div>";
@@ -882,9 +882,9 @@  discard block
 block discarded – undo
882 882
             }
883 883
 
884 884
             if (isset($_POST['comefrom'])) {
885
-                $return = htmlspecialchars_decode($_POST['comefrom']) . ( $inst_id ? "?inst_id=" . $inst_id : "" );
885
+                $return = htmlspecialchars_decode($_POST['comefrom']).($inst_id ? "?inst_id=".$inst_id : "");
886 886
                 echo "<form method='post' action='$return' accept-charset='UTF-8'>
887
-                    <button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CLOSE . "'>" . sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_inst) . "</button>"
887
+                    <button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CLOSE."'>".sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_inst)."</button>"
888 888
                 . "</form>";
889 889
             }
890 890
             if ($check_realm !== FALSE) {
Please login to merge, or discard this patch.
Braces   +16 added lines, -1 removed lines patch added patch discarded remove patch
@@ -755,7 +755,22 @@
 block discarded – undo
755 755
                 }
756 756
             ?>
757 757
                 <div id="tabs-<?php echo $i;?>">
758
-                    <button id="run_<?php if ($i==3) echo 'd'; else echo 'o';?>_tests"; onclick="run_<?php if ($i==3) echo 'dynamic'; else echo 'openroaming';?>()"><?php if ($i==3) echo _("Repeat dynamic connectivity tests"); else echo _("Repeat OpenRoaming connectivity tests");?></button>
758
+                    <button id="run_<?php if ($i==3) {
759
+    echo 'd';
760
+} else {
761
+    echo 'o';
762
+}
763
+?>_tests"; onclick="run_<?php if ($i==3) {
764
+    echo 'dynamic';
765
+} else {
766
+    echo 'openroaming';
767
+}
768
+?>()"><?php if ($i==3) {
769
+    echo _("Repeat dynamic connectivity tests");
770
+} else {
771
+    echo _("Repeat OpenRoaming connectivity tests");
772
+}
773
+?></button>
759 774
 
760 775
                 <?php
761 776
                     echo "<div id='";
Please login to merge, or discard this patch.
core/CertificationAuthorityEduPki.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 class CertificationAuthorityEduPki extends EntityWithDBProperties implements CertificationAuthorityInterface
18 18
 {
19 19
 
20
-    private const LOCATION_RA_CERT = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.pem";
21
-    private const LOCATION_RA_KEY = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.clearkey";
22
-    private const LOCATION_WEBROOT = ROOT . "/config/SilverbulletClientCerts/eduPKI-webserver-root.pem";
20
+    private const LOCATION_RA_CERT = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.pem";
21
+    private const LOCATION_RA_KEY = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.clearkey";
22
+    private const LOCATION_WEBROOT = ROOT."/config/SilverbulletClientCerts/eduPKI-webserver-root.pem";
23 23
     private const EDUPKI_RA_ID = 700;
24 24
     private const EDUPKI_CERT_PROFILE = "User SOAP";
25 25
     private const EDUPKI_RA_PKEY_PASSPHRASE = "...";
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
         parent::__construct();
36 36
 
37 37
         if (stat(CertificationAuthorityEduPki::LOCATION_RA_CERT) === FALSE) {
38
-            throw new Exception("RA operator PEM file not found: " . CertificationAuthorityEduPki::LOCATION_RA_CERT);
38
+            throw new Exception("RA operator PEM file not found: ".CertificationAuthorityEduPki::LOCATION_RA_CERT);
39 39
         }
40 40
         if (stat(CertificationAuthorityEduPki::LOCATION_RA_KEY) === FALSE) {
41
-            throw new Exception("RA operator private key file not found: " . CertificationAuthorityEduPki::LOCATION_RA_KEY);
41
+            throw new Exception("RA operator private key file not found: ".CertificationAuthorityEduPki::LOCATION_RA_KEY);
42 42
         }
43 43
         if (stat(CertificationAuthorityEduPki::LOCATION_WEBROOT) === FALSE) {
44
-            throw new Exception("CA website root CA file not found: " . CertificationAuthorityEduPki::LOCATION_WEBROOT);
44
+            throw new Exception("CA website root CA file not found: ".CertificationAuthorityEduPki::LOCATION_WEBROOT);
45 45
         }
46 46
     }
47 47
 
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
         // initialise connection to eduPKI CA / eduroam RA and send the request to them
76 76
         try {
77 77
             $altArray = [# Array mit den Subject Alternative Names
78
-                "email:" . $csr["USERNAME"]
78
+                "email:".$csr["USERNAME"]
79 79
             ];
80 80
             $soapPub = $this->initEduPKISoapSession("PUBLIC");
81 81
             $this->loggerInstance->debug(5, "FIRST ACTUAL SOAP REQUEST (Public, newRequest)!\n");
82
-            $this->loggerInstance->debug(5, "PARAM_1: " . CertificationAuthorityEduPki::EDUPKI_RA_ID . "\n");
83
-            $this->loggerInstance->debug(5, "PARAM_2: " . $csr["CSR_STRING"] . "\n");
82
+            $this->loggerInstance->debug(5, "PARAM_1: ".CertificationAuthorityEduPki::EDUPKI_RA_ID."\n");
83
+            $this->loggerInstance->debug(5, "PARAM_2: ".$csr["CSR_STRING"]."\n");
84 84
             $this->loggerInstance->debug(5, "PARAM_3: ");
85 85
             $this->loggerInstance->debug(5, $altArray);
86
-            $this->loggerInstance->debug(5, "PARAM_4: " . CertificationAuthorityEduPki::EDUPKI_CERT_PROFILE . "\n");
87
-            $this->loggerInstance->debug(5, "PARAM_5: " . sha1("notused") . "\n");
88
-            $this->loggerInstance->debug(5, "PARAM_6: " . $csr["USERNAME"] . "\n");
89
-            $this->loggerInstance->debug(5, "PARAM_7: " . $csr["USERNAME"] . "\n");
90
-            $this->loggerInstance->debug(5, "PARAM_8: " . \config\ConfAssistant::SILVERBULLET['product_name'] . "\n");
86
+            $this->loggerInstance->debug(5, "PARAM_4: ".CertificationAuthorityEduPki::EDUPKI_CERT_PROFILE."\n");
87
+            $this->loggerInstance->debug(5, "PARAM_5: ".sha1("notused")."\n");
88
+            $this->loggerInstance->debug(5, "PARAM_6: ".$csr["USERNAME"]."\n");
89
+            $this->loggerInstance->debug(5, "PARAM_7: ".$csr["USERNAME"]."\n");
90
+            $this->loggerInstance->debug(5, "PARAM_8: ".\config\ConfAssistant::SILVERBULLET['product_name']."\n");
91 91
             $this->loggerInstance->debug(5, "PARAM_9: false\n");
92 92
             $soapNewRequest = $soapPub->newRequest(
93 93
                     CertificationAuthorityEduPki::EDUPKI_RA_ID, # RA-ID
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
         } catch (Exception $e) {
110 110
             // PHP 7.1 can do this much better
111 111
             if (is_soap_fault($e)) {
112
-                throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}:  {
112
+                throw new Exception("Error when sending SOAP request: "."{$e->faultcode}:  {
113 113
                     $e->faultstring
114 114
                 }\n");
115 115
             }
116
-            throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage());
116
+            throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage());
117 117
         }
118 118
         try {
119 119
             $soap = $this->initEduPKISoapSession("RA");
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
                     $soapReqnum, [
126 126
                 "RaID" => CertificationAuthorityEduPki::EDUPKI_RA_ID,
127 127
                 "Role" => CertificationAuthorityEduPki::EDUPKI_CERT_PROFILE,
128
-                "Subject" => "DC=eduroam,DC=test,DC=test,C=" . $csr["FED"] . ",O=" . \config\ConfAssistant::CONSORTIUM['name'] . ",OU=" . $csr["FED"] . ",CN=" . $csr['USERNAME'] . ",emailAddress=" . $csr['USERNAME'],
129
-                "SubjectAltNames" => ["email:" . $csr["USERNAME"]],
128
+                "Subject" => "DC=eduroam,DC=test,DC=test,C=".$csr["FED"].",O=".\config\ConfAssistant::CONSORTIUM['name'].",OU=".$csr["FED"].",CN=".$csr['USERNAME'].",emailAddress=".$csr['USERNAME'],
129
+                "SubjectAltNames" => ["email:".$csr["USERNAME"]],
130 130
                 "NotBefore" => (new \DateTime())->format('c'),
131 131
                 "NotAfter" => $expiry->format('c'),
132 132
                     ]
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file
146 146
             // rather than just using the string. Grr.
147 147
             $tempdir = \core\common\Entity::createTemporaryDirectory("test");
148
-            file_put_contents($tempdir['dir'] . "/content.txt", $soapCleartext);
148
+            file_put_contents($tempdir['dir']."/content.txt", $soapCleartext);
149 149
             // retrieve our RA cert from filesystem                    
150 150
             // the RA certificates are not needed right now because we
151 151
             // have resorted to S/MIME signatures with openssl command-line
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             // sign the data, using cmdline because openssl_pkcs7_sign produces strange results
158 158
             // -binary didn't help, nor switch -md to sha1 sha256 or sha512
159 159
             $this->loggerInstance->debug(5, "Actual content to be signed is this:\n  $soapCleartext\n");
160
-            $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.clearkey -signer " . ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.pem";
160
+            $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".ROOT."/config/SilverbulletClientCerts/edupki-test-ra.clearkey -signer ".ROOT."/config/SilverbulletClientCerts/edupki-test-ra.pem";
161 161
             $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline:   $execCmd\n");
162 162
             $output = [];
163 163
             $return = 999;
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
                 throw new Exception("Non-zero return value from openssl smime!");
167 167
             }
168 168
             // and get the signature blob back from the filesystem
169
-            $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt"));
169
+            $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt"));
170 170
             $this->loggerInstance->debug(5, "Request for server approveRequest has parameters:\n");
171
-            $this->loggerInstance->debug(5, $soapReqnum . "\n");
172
-            $this->loggerInstance->debug(5, $soapCleartext . "\n"); // PHP magically encodes this as base64 while sending!
173
-            $this->loggerInstance->debug(5, $detachedSig . "\n");
171
+            $this->loggerInstance->debug(5, $soapReqnum."\n");
172
+            $this->loggerInstance->debug(5, $soapCleartext."\n"); // PHP magically encodes this as base64 while sending!
173
+            $this->loggerInstance->debug(5, $detachedSig."\n");
174 174
             $soapIssueCert = $soap->approveRequest($soapReqnum, $soapCleartext, $detachedSig);
175
-            $this->loggerInstance->debug(5, "approveRequest Request was: \n" . $soap->__getLastRequest());
176
-            $this->loggerInstance->debug(5, "approveRequest Response was: \n" . $soap->__getLastResponse());
175
+            $this->loggerInstance->debug(5, "approveRequest Request was: \n".$soap->__getLastRequest());
176
+            $this->loggerInstance->debug(5, "approveRequest Response was: \n".$soap->__getLastResponse());
177 177
             if ($soapIssueCert === FALSE) {
178 178
                 throw new Exception("The locally approved request was NOT processed by the CA.");
179 179
             }
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
                 throw new Exception("CAInfo has no root certificate for us!");
211 211
             }
212 212
         } catch (SoapFault $e) {
213
-            throw new Exception("SoapFault: Error when sending or receiving SOAP message: " . "{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
213
+            throw new Exception("SoapFault: Error when sending or receiving SOAP message: "."{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n");
214 214
         } catch (Exception $e) {
215
-            throw new Exception("Exception: Something odd happened between the SOAP requests:" . $e->getMessage());
215
+            throw new Exception("Exception: Something odd happened between the SOAP requests:".$e->getMessage());
216 216
         }
217 217
         return [
218 218
             "CERT" => openssl_x509_read($parsedCert['pem']),
@@ -245,12 +245,12 @@  discard block
 block discarded – undo
245 245
             // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file
246 246
             // rather than just using the string. Grr.
247 247
             $tempdir = \core\common\Entity::createTemporaryDirectory("test");
248
-            file_put_contents($tempdir['dir'] . "/content.txt", $soapRawRevRequest);
248
+            file_put_contents($tempdir['dir']."/content.txt", $soapRawRevRequest);
249 249
             // retrieve our RA cert from filesystem
250 250
             // sign the data, using cmdline because openssl_pkcs7_sign produces strange results
251 251
             // -binary didn't help, nor switch -md to sha1 sha256 or sha512
252 252
             $this->loggerInstance->debug(5, "Actual content to be signed is this:\n$soapRawRevRequest\n");
253
-            $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . CertificationAuthorityEduPki::LOCATION_RA_KEY . " -signer " . CertificationAuthorityEduPki::LOCATION_RA_CERT;
253
+            $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".CertificationAuthorityEduPki::LOCATION_RA_KEY." -signer ".CertificationAuthorityEduPki::LOCATION_RA_CERT;
254 254
             $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline: $execCmd\n");
255 255
             $output = [];
256 256
             $return = 999;
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 throw new Exception("Non-zero return value from openssl smime!");
260 260
             }
261 261
             // and get the signature blob back from the filesystem
262
-            $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt"));
262
+            $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt"));
263 263
             $soapIssueRev = $soap->approveRevocationRequest($soapRevocationSerial, $soapRawRevRequest, $detachedSig);
264 264
             if ($soapIssueRev === FALSE) {
265 265
                 throw new Exception("The locally approved revocation request was NOT processed by the CA.");
@@ -267,9 +267,9 @@  discard block
 block discarded – undo
267 267
         } catch (Exception $e) {
268 268
             // PHP 7.1 can do this much better
269 269
             if (is_soap_fault($e)) {
270
-                throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}: {$e->faultstring}\n");
270
+                throw new Exception("Error when sending SOAP request: "."{$e->faultcode}: {$e->faultstring}\n");
271 271
             }
272
-            throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage());
272
+            throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage());
273 273
         }
274 274
     }
275 275
 
@@ -369,9 +369,9 @@  discard block
 block discarded – undo
369 369
      */
370 370
     public function soapToXmlInteger($x)
371 371
     {
372
-        return '<' . $x[0] . '>'
372
+        return '<'.$x[0].'>'
373 373
                 . htmlentities($x[1], ENT_NOQUOTES | ENT_XML1)
374
-                . '</' . $x[0] . '>';
374
+                . '</'.$x[0].'>';
375 375
     }
376 376
 
377 377
     /**
@@ -390,9 +390,9 @@  discard block
 block discarded – undo
390 390
         // dump private key into directory
391 391
         $outstring = "";
392 392
         openssl_pkey_export($privateKey, $outstring);
393
-        file_put_contents($tempdir . "/pkey.pem", $outstring);
393
+        file_put_contents($tempdir."/pkey.pem", $outstring);
394 394
         // PHP can only do one DC in the Subject. But we need three.
395
-        $execCmd = \config\Master::PATHS['openssl'] . " req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=" . \config\ConfAssistant::CONSORTIUM['name'] . "/OU=$fed/CN=$username/emailAddress=$username";
395
+        $execCmd = \config\Master::PATHS['openssl']." req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=".\config\ConfAssistant::CONSORTIUM['name']."/OU=$fed/CN=$username/emailAddress=$username";
396 396
         $this->loggerInstance->debug(2, "Calling openssl req with following cmdline: $execCmd\n");
397 397
         $output = [];
398 398
         $return = 999;
Please login to merge, or discard this patch.
web/admin/overview_org.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 } else {
39 39
     $link = 'http://';
40 40
 }
41
-$link .= $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
41
+$link .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
42 42
 $link = htmlspecialchars($link);
43 43
 
44 44
 echo $deco->defaultPagePrelude(sprintf(_("%s: %s Dashboard"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant));
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
                                     <ul style='margin:1px'>
168 168
                                     <?php
169 169
                                     foreach ($completeness as $missing_attrib) {
170
-                                        echo "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
170
+                                        echo "<li>".$uiElements->displayName($missing_attrib)."</li>";
171 171
                                     }
172 172
                                     ?>
173 173
                                     </ul>
174 174
                                 </div>
175 175
                 <?php
176 176
             } else {
177
-                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value']) . "<br/>" . sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
177
+                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value'])."<br/>".sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
178 178
             }
179 179
             ?>
180 180
                             <br/>
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             if ($readonly === FALSE) {
184 184
                 ?>
185 185
                                 <form action='edit_silverbullet.php?inst_id=<?php echo $my_inst->identifier; ?>&amp;profile_id=<?php echo $profile_list->identifier; ?>' method='POST'>
186
-                                    <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
186
+                                    <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
187 187
                                 </form>
188 188
                 <?php
189 189
             }
@@ -208,21 +208,21 @@  discard block
 block discarded – undo
208 208
                                 $has_overrides = TRUE;
209 209
                             }
210 210
                         }
211
-                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>" . _("<strong>EAP Types</strong> (in order of preference):") . "<br/>";
211
+                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>"._("<strong>EAP Types</strong> (in order of preference):")."<br/>";
212 212
                         $typelist = $profile_list->getEapMethodsinOrderOfPreference();
213 213
                         $allcomplete = TRUE;
214 214
                         foreach ($typelist as $eaptype) {
215 215
                             $buffer_eaptypediv .= $eaptype->getPrintableRep();
216 216
                             $completeness = $profile_list->isEapTypeDefinitionComplete($eaptype);
217 217
                             if ($completeness === true) {
218
-                                $buffer_eaptypediv .= " <div class='acceptable'>" . _("OK") . "</div>";
218
+                                $buffer_eaptypediv .= " <div class='acceptable'>"._("OK")."</div>";
219 219
                             } else {
220 220
                                 $buffer_eaptypediv .= " <div class='notacceptable'>";
221 221
                                 $buffer_eaptypediv .= _("Information needed!");
222 222
                                 if (is_array($completeness)) {
223 223
                                     $buffer_eaptypediv .= "<ul style='margin:1px'>";
224 224
                                     foreach ($completeness as $missing_attrib) {
225
-                                        $buffer_eaptypediv .= "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
225
+                                        $buffer_eaptypediv .= "<li>".$uiElements->displayName($missing_attrib)."</li>";
226 226
                                     }
227 227
                                     $buffer_eaptypediv .= "</ul>";
228 228
                                 }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                             foreach ($attribs as $attrib) {
235 235
                                 if ($attrib['level'] == \core\Options::LEVEL_METHOD && !preg_match("/^internal:/", $attrib['name']) && !$justOnce) {
236 236
                                     $justOnce = TRUE;
237
-                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='" . _("Options on EAP Method/Device level are in effect.") . "'>";
237
+                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='"._("Options on EAP Method/Device level are in effect.")."'>";
238 238
                                 }
239 239
                             }
240 240
                             $buffer_eaptypediv .= "<br/>";
@@ -272,10 +272,10 @@  discard block
 block discarded – undo
272 272
                             if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == "LOCAL") {
273 273
                                 $diagUrl = "../diag/";
274 274
                             } else {
275
-                                $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] . "/diag/";
275
+                                $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS']."/diag/";
276 276
                             }
277 277
                             ?>
278
-                                <form action='<?php echo $diagUrl . "action_realmcheck.php?inst_id=" . $my_inst->identifier . "&profile_id=" . $profile_list->identifier ?>' method='post' accept-charset='UTF-8'>
278
+                                <form action='<?php echo $diagUrl."action_realmcheck.php?inst_id=".$my_inst->identifier."&profile_id=".$profile_list->identifier ?>' method='post' accept-charset='UTF-8'>
279 279
                                     <input type='hidden' name='comefrom' id='comefrom-<?php echo $profilecount; ?>' value='<?php echo $link; ?>'/>
280 280
                                     <button type='submit' name='profile_action' value='check' <?php echo ($has_realm ? "" : "disabled='disabled'"); ?> title='<?php echo _("The realm can only be checked if you configure the realm!"); ?>'>
281 281
                 <?php echo _("Check realm reachability"); ?>
@@ -309,9 +309,9 @@  discard block
 block discarded – undo
309 309
                 ?>
310 310
                                 <div style='display: flex;'>
311 311
                                 <?php
312
-                                $idpLevelUrl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier;
313
-                                $displayurl = $idpLevelUrl . "&amp;profile=" . $profile_list->identifier;
314
-                                $QRurl = $idpLevelUrl . "&profile=" . $profile_list->identifier;
312
+                                $idpLevelUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://').$_SERVER['SERVER_NAME'].dirname(dirname($_SERVER['SCRIPT_NAME']))."?idp=".$my_inst->identifier;
313
+                                $displayurl = $idpLevelUrl."&amp;profile=".$profile_list->identifier;
314
+                                $QRurl = $idpLevelUrl."&profile=".$profile_list->identifier;
315 315
                                 $qrCode = new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
316 316
                                             'outputType' => \chillerlan\QRCode\QRCode::OUTPUT_IMAGE_PNG,
317 317
                                             'eccLevel' => \chillerlan\QRCode\QRCode::ECC_H,
@@ -323,9 +323,9 @@  discard block
 block discarded – undo
323 323
                                 if (empty($rawQr)) {
324 324
                                     throw new Exception("Something went seriously wrong during QR code generation!");
325 325
                                 }
326
-                                $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
326
+                                $uri = "data:image/png;base64,".base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
327 327
                                 $size = getimagesize($uri);
328
-                                echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>";
328
+                                echo "<img width='".($size[0] / 4)."' height='".($size[1] / 4)."' src='$uri' alt='QR-code'/>";
329 329
 
330 330
                                 //echo "<nobr>$displayurl</nobr></a>";
331 331
                                 echo "<p>$displayurl</p></a>";
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
                     <div>
376 376
                         <input type="hidden" name="consortium" value="eduroam"/>
377 377
                         <button type='submit' <?php echo ($hasMail > 0 ? "" : "disabled"); ?> name='profile_action' value='new'>
378
-        <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name'] . " " . \core\DeploymentManaged::PRODUCTNAME); ?>
378
+        <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name']." ".\core\DeploymentManaged::PRODUCTNAME); ?>
379 379
                         </button>
380 380
 
381 381
                     </div>
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         <?php
402 402
         $hotspotProfiles = $my_inst->listDeployments();
403 403
         if (count($hotspotProfiles) == 0) { // no profiles yet.
404
-            echo "<h2>" . sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot) . "</h2>";
404
+            echo "<h2>".sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot)."</h2>";
405 405
         }
406 406
 
407 407
         foreach ($hotspotProfiles as $counter => $deploymentObject) {
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
                 <h2><?php
423 423
     switch ($deploymentObject->consortium) {
424 424
         case "eduroam":
425
-            $displayname = config\ConfAssistant::CONSORTIUM['name'] . " " . core\DeploymentManaged::PRODUCTNAME;
425
+            $displayname = config\ConfAssistant::CONSORTIUM['name']." ".core\DeploymentManaged::PRODUCTNAME;
426 426
             break;
427 427
         case "OpenRoaming":
428 428
             $displayname = "OpenRoaming ANP";
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         default:
431 431
             throw new Exception("We are supposed to operate on a roaming consortium we don't know.");
432 432
     }
433
-    echo $displayname . " (<span style='color:" . ( $deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>" . _("inactive") : "green;'>" . _("active") ) . "</span>)";
433
+    echo $displayname." (<span style='color:".($deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>"._("inactive") : "green;'>"._("active"))."</span>)";
434 434
             ?></h2>
435 435
                 <table>
436 436
                     <caption><?php echo _("Deployment Details"); ?></caption>
@@ -444,13 +444,13 @@  discard block
 block discarded – undo
444 444
                         <td><strong><?php echo _("Your primary RADIUS server") ?></strong><br/>
445 445
     <?php
446 446
     if ($deploymentObject->host1_v4 !== NULL) {
447
-        echo _("IPv4") . ": " . $deploymentObject->host1_v4;
447
+        echo _("IPv4").": ".$deploymentObject->host1_v4;
448 448
     }
449 449
     if ($deploymentObject->host1_v4 !== NULL && $deploymentObject->host1_v6 !== NULL) {
450 450
         echo "<br/>";
451 451
     }
452 452
     if ($deploymentObject->host1_v6 !== NULL) {
453
-        echo _("IPv6") . ": " . $deploymentObject->host1_v6;
453
+        echo _("IPv6").": ".$deploymentObject->host1_v6;
454 454
     }
455 455
     ?>
456 456
                         </td>
@@ -458,9 +458,9 @@  discard block
 block discarded – undo
458 458
                         <td><?php echo $deploymentObject->port1; ?></td>
459 459
                         <td>
460 460
     <?php
461
-    echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_1]['icon'] .
462
-    "' alt='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] .
463
-    "' title='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . "'>";
461
+    echo "<img src='".$radiusMessages[$deploymentObject->radius_status_1]['icon'].
462
+    "' alt='".$radiusMessages[$deploymentObject->radius_status_1]['text'].
463
+    "' title='".$radiusMessages[$deploymentObject->radius_status_1]['text']."'>";
464 464
     ?>
465 465
                         </td>
466 466
                     </tr>
@@ -468,22 +468,22 @@  discard block
 block discarded – undo
468 468
                         <td><strong><?php echo _("Your backup RADIUS server") ?><br/></strong>
469 469
     <?php
470 470
     if ($deploymentObject->host2_v4 !== NULL) {
471
-        echo _("IPv4") . ": " . $deploymentObject->host2_v4;
471
+        echo _("IPv4").": ".$deploymentObject->host2_v4;
472 472
     }
473 473
     if ($deploymentObject->host2_v4 !== NULL && $deploymentObject->host2_v6 !== NULL) {
474 474
         echo "<br/>";
475 475
     }
476 476
     if ($deploymentObject->host2_v6 !== NULL) {
477
-        echo _("IPv6") . ": " . $deploymentObject->host2_v6;
477
+        echo _("IPv6").": ".$deploymentObject->host2_v6;
478 478
     }
479 479
     ?></td>
480 480
                         <td><?php echo _("RADIUS port number: ") ?></td>
481 481
                         <td><?php echo $deploymentObject->port2; ?></td>
482 482
                         <td>
483 483
     <?php
484
-    echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_2]['icon'] .
485
-    "' alt='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] .
486
-    "' title='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . "'>";
484
+    echo "<img src='".$radiusMessages[$deploymentObject->radius_status_2]['icon'].
485
+    "' alt='".$radiusMessages[$deploymentObject->radius_status_2]['text'].
486
+    "' title='".$radiusMessages[$deploymentObject->radius_status_2]['text']."'>";
487 487
     ?>
488 488
                         </td>
489 489
                     </tr>
@@ -535,12 +535,12 @@  discard block
 block discarded – undo
535 535
                                     if (isset($res['FAILURE']) && $res['FAILURE'] > 0) {
536 536
                                         echo '<br>';
537 537
                                         if ($res['FAILURE'] == 2) {
538
-                                            echo ' <span style="color: red;">' . _("Activation failure.") . '</span>';
538
+                                            echo ' <span style="color: red;">'._("Activation failure.").'</span>';
539 539
                                         } else {
540 540
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
541
-                                                echo ' <span style="color: red;">' . _("Activation failure for your primary RADIUS server.") . '</span>';
541
+                                                echo ' <span style="color: red;">'._("Activation failure for your primary RADIUS server.").'</span>';
542 542
                                             } else {
543
-                                                echo ' <span style="color: red;">' . _("Activation failure for your backup RADIUS server.") . '</span>';
543
+                                                echo ' <span style="color: red;">'._("Activation failure for your backup RADIUS server.").'</span>';
544 544
                                             }
545 545
                                         }
546 546
                                     }
@@ -560,12 +560,12 @@  discard block
 block discarded – undo
560 560
                                     if ($res['FAILURE'] > 0) {
561 561
                                         echo '<br>';
562 562
                                         if ($res['FAILURE'] == 2) {
563
-                                            echo ' <span style="color: red;">' . _("Failure during deactivation, your request is queued for handling") . '</span>';
563
+                                            echo ' <span style="color: red;">'._("Failure during deactivation, your request is queued for handling").'</span>';
564 564
                                         } else {
565 565
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
566
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your primary RADIUS server, your request is queued.") . '</span>';
566
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your primary RADIUS server, your request is queued.").'</span>';
567 567
                                             } else {
568
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your backup RADIUS server, your request is queued.") . '</span>';
568
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your backup RADIUS server, your request is queued.").'</span>';
569 569
                                             }
570 570
                                         }
571 571
                                     }
Please login to merge, or discard this patch.
web/admin/edit_participant_result.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  *          <base_url>/copyright.php after deploying the software
21 21
  */
22 22
 
23
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
23
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
24 24
 
25 25
 $auth = new \web\lib\admin\Authentication();
26 26
 $loggerInstance = new \core\common\Logging();
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
 $myInstOriginal = $validator->existingIdP($_GET['inst_id'], $_SESSION['user']);
34 34
 $instId = $myInstOriginal->identifier;
35 35
 
36
-$hello = _("To whom it may concern,") . "\n\n";
37
-$bye = _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.") . "\n\n" .
38
-        _("Greetings, ") . "\n\n" .
36
+$hello = _("To whom it may concern,")."\n\n";
37
+$bye = _("This mail is merely a cross-check because these changes can be security-relevant. If the change was expected, you do not need to take any action.")."\n\n".
38
+        _("Greetings, ")."\n\n".
39 39
         \config\Master::APPEARANCE['productname_long'];
40 40
 
41 41
 switch ($_POST['submitbutton']) {
42 42
     case web\lib\common\FormElements::BUTTON_DELETE:
43 43
         $myInstOriginal->destroy();
44
-        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP " . $instId);
44
+        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP ".$instId);
45 45
         header("Location: overview_user.php");
46 46
         exit;
47 47
     case web\lib\common\FormElements::BUTTON_FLUSH_AND_RESTART:
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
         }
52 52
         // flush all IdP attributes and send user to creation wizard
53 53
         $myInstOriginal->flushAttributes();
54
-        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over" . $instId);
55
-        $text = $hello .
56
-                sprintf(_("the %s %s / %s / (previously known as) '%s' has deleted all properties and is starting over freshly. This means that its not recognisable by its name any more, and it may assume a different name in the future. You will get another mail if and when the name change happens."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name) . "\n\n" .
54
+        $loggerInstance->writeAudit($_SESSION['user'], "DEL", "IdP starting over".$instId);
55
+        $text = $hello.
56
+                sprintf(_("the %s %s / %s / (previously known as) '%s' has deleted all properties and is starting over freshly. This means that its not recognisable by its name any more, and it may assume a different name in the future. You will get another mail if and when the name change happens."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name)."\n\n".
57 57
                 $bye;
58 58
         $fed = new core\Federation($myInstOriginal->federation);
59 59
         foreach ($fed->listFederationAdmins() as $id) {
@@ -72,19 +72,19 @@  discard block
 block discarded – undo
72 72
             exit(0);
73 73
         }
74 74
         $inst_name = $myInstOriginal->name;
75
-        echo "<h1>" . sprintf(_("Submitted attributes for IdP '%s'"), $inst_name) . "</h1>";
75
+        echo "<h1>".sprintf(_("Submitted attributes for IdP '%s'"), $inst_name)."</h1>";
76 76
         echo "<table>";
77 77
         echo $optionParser->processSubmittedFields($myInstOriginal, $_POST, $_FILES);
78 78
         echo "</table>";
79 79
 // delete cached logo, if present
80
-        $dir = ROOT . '/web/downloads/logos/';
81
-        $globResult = glob($dir . $myInstOriginal->identifier . "_*.png");
80
+        $dir = ROOT.'/web/downloads/logos/';
81
+        $globResult = glob($dir.$myInstOriginal->identifier."_*.png");
82 82
         if ($globResult === FALSE) { // we should catch the improbable error condition
83 83
             $globResult = [];
84 84
         }
85 85
         array_map('unlink', $globResult);
86 86
         $loggerInstance->debug(4, "UNLINK from $dir\n");
87
-        $loggerInstance->writeAudit($_SESSION['user'], "MOD", "IdP " . $myInstOriginal->identifier . " - attributes changed");
87
+        $loggerInstance->writeAudit($_SESSION['user'], "MOD", "IdP ".$myInstOriginal->identifier." - attributes changed");
88 88
 
89 89
 // re-instantiate ourselves... profiles need fresh data
90 90
         $myInstReinstantiated = $validator->existingIdP($_GET['inst_id'], $_SESSION['user']);
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
         if (count($significantChanges) > 0) {
94 94
             // send a notification/alert mail to someone we know is in charge
95 95
             /// were made to the *Identity Provider* *LU* / integer number of IdP / (previously known as) Name
96
-            $text = $hello . sprintf(_("significant changes were made to the %s %s / %s / (previously known as) '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name) . "\n\n";
96
+            $text = $hello.sprintf(_("significant changes were made to the %s %s / %s / (previously known as) '%s'."), $ui->nomenclatureInst, strtoupper($myInstOriginal->federation), $myInstOriginal->identifier, $myInstOriginal->name)."\n\n";
97 97
             if (isset($significantChanges[\core\IdP::INSTNAME_CHANGED])) {
98
-                $text .= sprintf(_("The %s has changed its name. The details are below:"), $ui->nomenclatureInst) . "\n\n";
99
-                $text .= $significantChanges[\core\IdP::INSTNAME_CHANGED] . "\n\n";
98
+                $text .= sprintf(_("The %s has changed its name. The details are below:"), $ui->nomenclatureInst)."\n\n";
99
+                $text .= $significantChanges[\core\IdP::INSTNAME_CHANGED]."\n\n";
100 100
             }
101 101
             $text .= $bye;
102 102
             // (currently, send hard-wired to NRO - future: for linked insts, check eduroam DBv2 and send to registered admins directly)
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
 
113 113
         if (isset(\config\ConfAssistant::CONSORTIUM['ssid']) && count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0) {
114 114
             foreach (\config\ConfAssistant::CONSORTIUM['ssid'] as $ssidname) {
115
-                $ssids[] = $ssidname . " " . _("(WPA2/AES)");
115
+                $ssids[] = $ssidname." "._("(WPA2/AES)");
116 116
             }
117 117
         }
118 118
 
119 119
         foreach ($myInstReinstantiated->getAttributes("media:SSID") as $ssidname) {
120
-            $ssids[] = $ssidname['value'] . " " . _("(WPA2/AES)");
120
+            $ssids[] = $ssidname['value']." "._("(WPA2/AES)");
121 121
         }
122 122
 
123 123
         echo "<table>";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         if (count($ssids) > 0) {
126 126
             $printedlist = "";
127 127
             foreach ($ssids as $names) {
128
-                $printedlist = $printedlist . "$names ";
128
+                $printedlist = $printedlist."$names ";
129 129
             }
130 130
             echo $uiElements->boxOkay(sprintf(_("Your installers will configure the following SSIDs: <strong>%s</strong>"), $printedlist), _("SSIDs configured"));
131 131
         }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $myfed = new \core\Federation($myInstReinstantiated->federation);
147 147
         $allow_sb = $myfed->getAttributes("fed:silverbullet");
148 148
         // only show IdP parts if fed has enabled hosted services && participant is an SP-type
149
-        if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL" && count($allow_sb) > 0 && preg_match("/IdP/", $myInstReinstantiated->type) ) {
149
+        if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL" && count($allow_sb) > 0 && preg_match("/IdP/", $myInstReinstantiated->type)) {
150 150
 // show the new profile jumpstart buttons only if we do not have any profile at all
151 151
             if (count($myInstReinstantiated->listProfiles()) == 0) {
152 152
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                 // did we get an email address? then, show the silverbullet jumpstart button
155 155
                 // otherwise, issue a smartass comment
156 156
                 if (count($myInstReinstantiated->getAttributes("support:email")) > 0) {
157
-                    echo "<form method='post' action='edit_silverbullet.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . sprintf(_("Continue to %s properties"), \core\ProfileSilverbullet::PRODUCTNAME) . "</button></form>";
157
+                    echo "<form method='post' action='edit_silverbullet.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>".sprintf(_("Continue to %s properties"), \core\ProfileSilverbullet::PRODUCTNAME)."</button></form>";
158 158
                 } else {
159 159
                     echo "<table>";
160 160
                     echo $uiElements->boxError(sprintf(_("You did not submit an e-mail address. This is required for %s. Please go to the %s dashboard and edit your helpdesk settings to include a helpdesk e-mail address."), core\ProfileSilverbullet::PRODUCTNAME, $ui->nomenclatureInst), _("No support e-mail!"));
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
                 }
163 163
 
164 164
                 if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_RADIUS'] == "LOCAL") {
165
-                    echo "<br/><form method='post' action='edit_profile.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . _("Continue to RADIUS/EAP profile definition") . "</button></form>";
165
+                    echo "<br/><form method='post' action='edit_profile.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>"._("Continue to RADIUS/EAP profile definition")."</button></form>";
166 166
                 }
167 167
             }
168 168
         }
169
-        echo "<br/><form method='post' action='overview_user.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>" . _("Continue to dashboard") . "</button></form>";
169
+        echo "<br/><form method='post' action='overview_user.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'><button type='submit'>"._("Continue to dashboard")."</button></form>";
170 170
 
171 171
         break;
172 172
     default:
Please login to merge, or discard this patch.
web/admin/edit_participant.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -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(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 $auth = new \web\lib\admin\Authentication();
25 25
 $deco = new \web\lib\admin\PageDecoration();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 $inst_name = $my_inst->name;
40 40
 
41 41
 if ($wizardStyle) {
42
-    echo $deco->defaultPagePrelude(sprintf(_("%s: %s enrollment wizard (step 2)"), \config\Master::APPEARANCE['productname'],  $uiElements->nomenclatureParticipant));
42
+    echo $deco->defaultPagePrelude(sprintf(_("%s: %s enrollment wizard (step 2)"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant));
43 43
 } else {
44 44
     echo $deco->defaultPagePrelude(sprintf(_("%s: Editing %s '%s'"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant, $inst_name));
45 45
 }
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
         ?>
81 81
     </h1>
82 82
     <div class='infobox'>
83
-        <h2><?php $tablecaption = sprintf(_("%s general properties"), $uiElements->nomenclatureParticipant); echo $tablecaption;?></h2>
83
+        <h2><?php $tablecaption = sprintf(_("%s general properties"), $uiElements->nomenclatureParticipant); echo $tablecaption; ?></h2>
84 84
         <table>
85
-            <caption><?php echo $tablecaption;?></caption>
85
+            <caption><?php echo $tablecaption; ?></caption>
86 86
             <tr>
87
-                <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th>
88
-                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th>
89
-                <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th>
87
+                <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th>
88
+                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th>
89
+                <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th>
90 90
             </tr>
91 91
 
92 92
             <tr>
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
         </table>
102 102
     </div>
103 103
     <?php
104
-    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier" . ($wizardStyle ? "&wizard=true" : "") . "' method='post' accept-charset='UTF-8'>
105
-              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
104
+    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier".($wizardStyle ? "&wizard=true" : "")."' method='post' accept-charset='UTF-8'>
105
+              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
106 106
 
107 107
     if ($wizardStyle) {
108
-        echo "<p>" .
109
-        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant) . "</p>";
108
+        echo "<p>".
109
+        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant)."</p>";
110 110
     }
111 111
     $optionDisplay = new web\lib\admin\OptionDisplay($idpoptions, \core\Options::LEVEL_IDP);
112 112
     ?>
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
         <legend><strong><?php echo _("General Information"); ?></strong></legend>
115 115
         <?php
116 116
         if ($wizardStyle) {
117
-            echo "<p>" .
118
-            _("Some properties are valid across all deployment profiles. This is the place where you can describe those properties in a fine-grained way. The solicited information is used as follows:") . "</p>
117
+            echo "<p>".
118
+            _("Some properties are valid across all deployment profiles. This is the place where you can describe those properties in a fine-grained way. The solicited information is used as follows:")."</p>
119 119
                       <ul>
120
-                         <li>" . _("<strong>Logo</strong>: When you submit a logo, we will embed this logo into all installers where a custom logo is possible. We accept any image format, but for best results, we suggest SVG. If you don't upload a logo, we will use the generic logo instead (see top-right corner of this page).") . "</li>
121
-                         <li>" . sprintf(_("<strong>Name</strong>: The %s may have names in multiple languages. It is recommended to always populate at least the 'default/other' language, as it is used as a fallback if the system does not have a name in the exact language the user requests a download in."),$uiElements->nomenclatureParticipant) . "</li>";
120
+                         <li>" . _("<strong>Logo</strong>: When you submit a logo, we will embed this logo into all installers where a custom logo is possible. We accept any image format, but for best results, we suggest SVG. If you don't upload a logo, we will use the generic logo instead (see top-right corner of this page).")."</li>
121
+                         <li>" . sprintf(_("<strong>Name</strong>: The %s may have names in multiple languages. It is recommended to always populate at least the 'default/other' language, as it is used as a fallback if the system does not have a name in the exact language the user requests a download in."), $uiElements->nomenclatureParticipant)."</li>";
122 122
             echo "</ul>";
123 123
         }
124 124
         echo $optionDisplay->prefilledOptionTable("general", $my_inst->federation);
@@ -132,44 +132,44 @@  discard block
 block discarded – undo
132 132
         <legend><strong><?php echo _("Media Properties"); ?></strong></legend>
133 133
         <?php
134 134
         if ($wizardStyle) {
135
-            echo "<p>" .
136
-            sprintf(_("In this section, you define on which media %s should be configured on user devices."), \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>
135
+            echo "<p>".
136
+            sprintf(_("In this section, you define on which media %s should be configured on user devices."), \config\ConfAssistant::CONSORTIUM['display_name'])."</p>
137 137
           <ul>";
138 138
             echo "<li>";
139
-            echo "<strong>" . ( count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
139
+            echo "<strong>".(count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:"))." </strong>";
140 140
             if (count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0) {
141 141
                 $ssidlist = "";
142 142
                 foreach (\config\ConfAssistant::CONSORTIUM['ssid'] as $ssid) {
143
-                    $ssidlist .= ", '<strong>" . $ssid . "</strong>'";
143
+                    $ssidlist .= ", '<strong>".$ssid."</strong>'";
144 144
                 }
145 145
                 $ssidlist = substr($ssidlist, 2);
146 146
                 echo sprintf(ngettext("We will always configure this SSID for WPA2/AES: %s.", "We will always configure these SSIDs for WPA2/AES: %s.", count(\config\ConfAssistant::CONSORTIUM['ssid'])), $ssidlist);
147
-                echo "<br/>" . sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $uiElements->displayName("media:SSID"));
147
+                echo "<br/>".sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $uiElements->displayName("media:SSID"));
148 148
             } else {
149 149
                 echo _("Please configure which SSIDs should be configured in the installers.");
150 150
             }
151
-            echo " " . _("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
151
+            echo " "._("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
152 152
             echo "</li>";
153 153
 
154 154
             echo "<li>";
155
-            echo "<strong>" . ( count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
155
+            echo "<strong>".(count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:"))." </strong>";
156 156
             if (count(\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi']) > 0) {
157 157
                 $consortiumlist = "";
158 158
                 foreach (\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi'] as $oi) {
159
-                    $consortiumlist .= ", '<strong>" . $oi . "</strong>'";
159
+                    $consortiumlist .= ", '<strong>".$oi."</strong>'";
160 160
                 }
161 161
                 $consortiumlist = substr($consortiumlist, 2);
162 162
                 echo sprintf(ngettext("We will always configure this Consortium OI: %s.", "We will always configure these Consortium OIs: %s.", count(\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi'])), $consortiumlist);
163 163
 
164
-                echo "<br/>" . sprintf(_("It is also possible to define custom additional OIs with the option '%s' below."), $uiElements->displayName("media:consortium_OI"));
164
+                echo "<br/>".sprintf(_("It is also possible to define custom additional OIs with the option '%s' below."), $uiElements->displayName("media:consortium_OI"));
165 165
             } else {
166 166
                 echo _("Please configure which Consortium OIs should be configured in the installers.");
167 167
             }
168 168
             echo "</li>";
169
-            echo "<li><strong>" . _("Support for wired IEEE 802.1X:") . " </strong>"
170
-            . _("If you want to configure your users' devices with IEEE 802.1X support for wired ethernet, please check the corresponding box. Note that this makes the installation process a bit more difficult on some platforms (Windows: needs administrator privileges; Apple: attempting to install a profile with wired support on a device without an active wired ethernet card will fail).") .
169
+            echo "<li><strong>"._("Support for wired IEEE 802.1X:")." </strong>"
170
+            . _("If you want to configure your users' devices with IEEE 802.1X support for wired ethernet, please check the corresponding box. Note that this makes the installation process a bit more difficult on some platforms (Windows: needs administrator privileges; Apple: attempting to install a profile with wired support on a device without an active wired ethernet card will fail).").
171 171
             "</li>";
172
-            echo "<li><strong>" . _("Removal of bootstrap/onboarding SSIDs:") . " </strong>"
172
+            echo "<li><strong>"._("Removal of bootstrap/onboarding SSIDs:")." </strong>"
173 173
             . _("If you use a captive portal to distribute configurations, you may want to unconfigure/disable that SSID after the bootstrap process. With this option, the SSID will either be removed, or be defined as 'Only connect manually'.")
174 174
             . "</li>";
175 175
             echo "</ul>";
@@ -185,16 +185,16 @@  discard block
 block discarded – undo
185 185
             echo "<p>"._("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.")."</p>";
186 186
             
187 187
             if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_RADIUS'] == "LOCAL") {
188
-                echo "<p>" .
188
+                echo "<p>".
189 189
                         
190
-                sprintf(_("Do you provide helpdesk services for your users? If so, it would be nice if you would tell us the pointers to this helpdesk."),$uiElements->nomenclatureParticipant)  . "</p>" .
191
-                "<p>" .
192
-                _("If you enter a value here, it will be added to the installers for all your users, and will be displayed on the download page. If you operate separate helpdesks for different user groups (we call this 'profiles') specify per-profile helpdesk information later in this wizard. If you operate no help desk at all, just leave these fields empty.") . "</p>";
190
+                sprintf(_("Do you provide helpdesk services for your users? If so, it would be nice if you would tell us the pointers to this helpdesk."), $uiElements->nomenclatureParticipant)."</p>".
191
+                "<p>".
192
+                _("If you enter a value here, it will be added to the installers for all your users, and will be displayed on the download page. If you operate separate helpdesks for different user groups (we call this 'profiles') specify per-profile helpdesk information later in this wizard. If you operate no help desk at all, just leave these fields empty.")."</p>";
193 193
                 if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
194
-                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), config\ConfAssistant::SILVERBULLET['product_name']) ." " . _("This is the contact point for your organisation. It may be displayed publicly.") . "</p>";
194
+                echo "<p>".sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), config\ConfAssistant::SILVERBULLET['product_name'])." "._("This is the contact point for your organisation. It may be displayed publicly.")."</p>";
195 195
                 }
196 196
             } elseif (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
197
-                echo "<p>". _("Providing at least a local support e-mail contact is required.")." "._("This is the contact point for your end users' level 1 support.")."</p>";
197
+                echo "<p>"._("Providing at least a local support e-mail contact is required.")." "._("This is the contact point for your end users' level 1 support.")."</p>";
198 198
             }
199 199
             
200 200
         }
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
         <button type='button' class='newoption' onclick='getXML("support", "<?php echo $my_inst->federation ?>")'><?php echo _("Add new option"); ?></button></fieldset>
205 205
     <?php
206 206
     if ($wizardStyle) {
207
-        echo "<p>" . sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CONTINUE . "'>", "</button>") . "</p></form>";
207
+        echo "<p>".sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CONTINUE."'>", "</button>")."</p></form>";
208 208
     } else {
209
-        echo "<div><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_user.php\"'>" . _("Discard changes") . "</button></div></form>";
209
+        echo "<div><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_user.php\"'>"._("Discard changes")."</button></div></form>";
210 210
     }
211 211
     echo $deco->footer();
Please login to merge, or discard this patch.