Passed
Push — release_2_1 ( 0530b6...7784c3 )
by Stefan
12:22 queued 02:15
created
web/admin/css/eapSorter.css.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 ol.eapmethods { list-style-position: inside; margin: 0; padding: 0px; padding-top: 20px; padding-bottom: 0px; width: 20em; }
30 30
 ol.eapmethods li{
31 31
     background: #CCF;
32
-    border-<?php echo $start;?>-style: inset;
33
-    border-<?php echo $start;?>-width: 1px;
34
-    border-<?php echo $start;?>-color: #8BBACB;
32
+    border-<?php echo $start; ?>-style: inset;
33
+    border-<?php echo $start; ?>-width: 1px;
34
+    border-<?php echo $start; ?>-color: #8BBACB;
35 35
     border-top-style: inset;
36 36
     border-top-width: 1px;
37 37
     border-top-color: #8BBACB;
38
-    border-<?php echo $end;?>-style: outset;
39
-    border-<?php echo $end;?>-width: 2px;
40
-    border-<?php echo $end;?>-color: #043D52;
38
+    border-<?php echo $end; ?>-style: outset;
39
+    border-<?php echo $end; ?>-width: 2px;
40
+    border-<?php echo $end; ?>-color: #043D52;
41 41
     border-bottom-style: outset;
42 42
     border-bottom-width: 2px;
43 43
     border-bottom-color: #043D52;
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     background-position:95% 50%;
49 49
     margin: 2px 0px 2px 0px;
50 50
     padding: 3px;
51
-    padding-<?php echo $start;?>: 1em;
52
-    padding-<?php echo $end;?>: 0px;
51
+    padding-<?php echo $start; ?>: 1em;
52
+    padding-<?php echo $end; ?>: 0px;
53 53
 }
54 54
 
55 55
 table.eaptable td {
Please login to merge, or discard this patch.
web/admin/css/silverbullet.css.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,16 +80,16 @@
 block discarded – undo
80 80
     margin-bottom:3px;
81 81
 }
82 82
 .sb-date-picker{
83
-    padding-<?php echo $end;?>:25px;
83
+    padding-<?php echo $end; ?>:25px;
84 84
     width: 140px;
85 85
 }
86 86
 .sb-date-button{
87
-    margin-<?php echo $start;?>:-30px;
87
+    margin-<?php echo $start; ?>:-30px;
88 88
     min-height: 22px;
89
-    border-<?php echo $start;?>-style: solid;
89
+    border-<?php echo $start; ?>-style: solid;
90 90
     border-top-style: solid;
91
-    border-<?php echo $end;?>-style: solid;
92
-    border-<?php echo $end;?>-width: 1px;
91
+    border-<?php echo $end; ?>-style: solid;
92
+    border-<?php echo $end; ?>-width: 1px;
93 93
     border-bottom-width: 1px;
94 94
     border-radius: 1px;
95 95
     box-shadow: 0px 0px 0px #666666;
Please login to merge, or discard this patch.
web/admin/inc/overview_js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     $langInstance = new core\common\Language();
70 70
     $end = $langInstance->rtl ? "left" : "right";
71 71
     ?>
72
-    pressedButton.next().append('<span style="padding-<?php echo $end;?>:1em">'+msg+'<\/span>');
72
+    pressedButton.next().append('<span style="padding-<?php echo $end; ?>:1em">'+msg+'<\/span>');
73 73
     }
74 74
     );
75 75
     }
Please login to merge, or discard this patch.
web/diag/action_realmcheck.php 1 patch
Spacing   +75 added lines, -75 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!");
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     var listofcas = "<?php echo _("You should update your list of accredited CAs") ?>";
127 127
     var getitfrom = "<?php echo _("Get it from here.") ?>";
128 128
     var listsource = "<?php echo \config\Diagnostics::RADIUSTESTS['accreditedCAsURL'] ?>";
129
-    var moretext = "<?php echo _("more") . "&raquo;" ?>";
129
+    var moretext = "<?php echo _("more")."&raquo;" ?>";
130 130
     var lesstext = "<?php echo "&laquo" ?>";
131 131
     var morealltext = "<?php echo _("Show detailed information for all tests") ?>";
132 132
     var unknownca_code = "<?php echo \core\diag\RADIUSTests::CERTPROB_UNKNOWN_CA ?>";
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                         }
270 270
                     }
271 271
                     cliinfo = cliinfo + '<li><table><tbody><tr><td class="icon_td"><img class="icon" src="' + icons[level] + '" style="width: 24px;"></td><td>' + state;
272
-                    cliinfo = cliinfo + ' <?php echo "(" . sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+'&nbsp;") . ")"; ?>' + add + '</td></tr>';
272
+                    cliinfo = cliinfo + ' <?php echo "(".sprintf(_("elapsed time: %sms."), "'+data.ca[key].certificate[c].time_millisec+'&nbsp;").")"; ?>' + add + '</td></tr>';
273 273
                     cliinfo = cliinfo + '</tbody></table></ul></li>';
274 274
                     if (data.ca[key].certificate[c].finalerror === 1) {
275 275
                         cliinfo = cliinfo + '<li>' + restskipped + '</li>';
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 });
462 462
             }
463 463
             o = o + cert_data + '</table>';
464
-            $("#eap_test" + data.hostindex).append('<strong><img style="position: relative; top: 2px;" src="' + icons[v.level] + '"><span style="position: relative; top: -5px; <?php echo $start;?>: 1em">' + v.eap + ' &ndash; <?php printf(_("elapsed time: %sms."), "'+v.time_millisec+'&nbsp;") ?></span></strong><div class="more" style="padding-<?php echo $start;?>: 40px"><div class="morecontent"><div style="display:none; background: #eee;">' + o + '</div><a href="" class="morelink">' + moretext + '</a></div></div>');
464
+            $("#eap_test" + data.hostindex).append('<strong><img style="position: relative; top: 2px;" src="' + icons[v.level] + '"><span style="position: relative; top: -5px; <?php echo $start; ?>: 1em">' + v.eap + ' &ndash; <?php printf(_("elapsed time: %sms."), "'+v.time_millisec+'&nbsp;") ?></span></strong><div class="more" style="padding-<?php echo $start; ?>: 40px"><div class="morecontent"><div style="display:none; background: #eee;">' + o + '</div><a href="" class="morelink">' + moretext + '</a></div></div>');
465 465
         });
466 466
     }
467 467
 
@@ -472,8 +472,8 @@  discard block
 block discarded – undo
472 472
 <?php
473 473
 foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
474 474
     print "
475
-$(\"#live_src" . $hostindex . "_img\").attr('src',icon_loading);
476
-$(\"#live_src" . $hostindex . "_img\").show();
475
+$(\"#live_src" . $hostindex."_img\").attr('src',icon_loading);
476
+$(\"#live_src" . $hostindex."_img\").show();
477 477
 $.ajax({
478 478
     url: 'radius_tests.php?src=0&hostindex=$hostindex&realm='+realm,
479 479
     type: 'POST',
@@ -503,15 +503,15 @@  discard block
 block discarded – undo
503 503
 <?php
504 504
 foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
505 505
     if ($testedProfile !== NULL) {
506
-        $extraarg = "profile_id: " . $testedProfile->identifier . ", ";
506
+        $extraarg = "profile_id: ".$testedProfile->identifier.", ";
507 507
     } else {
508 508
         $extraarg = "";
509 509
     }
510 510
     print "
511
-$(\"#src" . $hostindex . "_img\").attr('src',icon_loading);
511
+$(\"#src" . $hostindex."_img\").attr('src',icon_loading);
512 512
 $(\"#src$hostindex\").html('');
513 513
 running_ajax_stat++;
514
-$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '" . $gui->languageInstance->getLang() . "', hostindex: '$hostindex'  }, udp, 'json');
514
+$.get('radius_tests.php',{test_type: 'udp', $extraarg realm: realm, src: $hostindex, lang: '".$gui->languageInstance->getLang()."', hostindex: '$hostindex'  }, udp, 'json');
515 515
 
516 516
 ";
517 517
 }
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
     if ($check_realm === FALSE) {
539 539
         print "<p>$error_message</p>";
540 540
     } else {
541
-        print "<h1>" . sprintf(_("Realm testing for: %s"), $check_realm) . "</h1>\n";
541
+        print "<h1>".sprintf(_("Realm testing for: %s"), $check_realm)."</h1>\n";
542 542
         ?>
543 543
         <div id="debug_out" style="display: none"></div>
544 544
         <div id="tabs" style="min-width: 600px; max-width:1000px">
@@ -560,25 +560,25 @@  discard block
 block discarded – undo
560 560
                     // NAPTR existence check
561 561
                     if ($dynType == "") {
562 562
                         $rfc7585suite = $dnsChecks;
563
-                        echo "<strong>" . _("DNS checks") . "</strong><div>";
563
+                        echo "<strong>"._("DNS checks")."</strong><div>";
564 564
                     } else {
565 565
                         if (count($orrealm) == 0) {
566 566
                             continue;
567 567
                         }
568 568
                         $rfc7585suite = $dnsChecksOR;
569
-                        echo "<strong>" . _("OpenRoaming DNS checks") . "</strong><div>";
569
+                        echo "<strong>"._("OpenRoaming DNS checks")."</strong><div>";
570 570
                     }
571 571
                     $naptr = $rfc7585suite->relevantNAPTR();
572 572
                     if ($naptr == \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED) {
573 573
                         if ($dynType == "") {
574
-                        	echo "<tr><td>" . _("Dynamic discovery test is not configured") . "</td><td>";
574
+                        	echo "<tr><td>"._("Dynamic discovery test is not configured")."</td><td>";
575 575
                         } else {
576
-                        	echo "<tr><td>" . _("OpenRoaming connectivity test is not configured") . "</td><td>";
576
+                        	echo "<tr><td>"._("OpenRoaming connectivity test is not configured")."</td><td>";
577 577
                         }
578 578
                     } else {
579 579
                         echo "<table>";
580 580
                         // output in friendly words
581
-                        echo "<tr><td>" . _("Checking NAPTR existence:") . "</td><td>";
581
+                        echo "<tr><td>"._("Checking NAPTR existence:")."</td><td>";
582 582
                         switch ($naptr) {
583 583
                             case \core\diag\RFC7585Tests::RETVAL_NONAPTR:
584 584
                                 echo _("This realm has no NAPTR records.");
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
 
594 594
                         // compliance checks for NAPTRs
595 595
                         if ($naptr > 0) {
596
-                            echo "<tr><td>" . _("Checking NAPTR compliance (flag = S and regex = {empty}):") . "</td><td>";
596
+                            echo "<tr><td>"._("Checking NAPTR compliance (flag = S and regex = {empty}):")."</td><td>";
597 597
                             $naptr_valid = $rfc7585suite->relevantNAPTRcompliance();
598 598
                             switch ($naptr_valid) {
599 599
                                 case \core\diag\RADIUSTests::RETVAL_OK:
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
                         // SRV resolution
609 609
                         if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK) {
610 610
                             $srv = $rfc7585suite->relevantNAPTRsrvResolution();
611
-                            echo "<tr><td>" . _("Checking SRVs:") . "</td><td>";
611
+                            echo "<tr><td>"._("Checking SRVs:")."</td><td>";
612 612
                             switch ($srv) {
613 613
                                 case \core\diag\RADIUSTests::RETVAL_SKIPPED:
614 614
                                     echo _("This check was skipped.");
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
                         // IP addresses for the hosts
625 625
                         if ($naptr > 0 && $naptr_valid == \core\diag\RADIUSTests::RETVAL_OK && $srv > 0) {
626 626
                             $hosts = $rfc7585suite->relevantNAPTRhostnameResolution();
627
-                            echo "<tr><td>" . _("Checking IP address resolution:") . "</td><td>";
627
+                            echo "<tr><td>"._("Checking IP address resolution:")."</td><td>";
628 628
                             switch ($srv) {
629 629
                                 case \core\diag\RADIUSTests::RETVAL_SKIPPED:
630 630
                                     echo _("This check was skipped.");
@@ -641,12 +641,12 @@  discard block
 block discarded – undo
641 641
                         echo "</table><br/>";
642 642
                         if ($dynType == "") {
643 643
                             if (count($testsuite->listerrors()) == 0) {
644
-                                echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC"))) . _("with no DNS errors encountered. Congratulations!");
644
+                                echo sprintf(_("Realm is <strong>%s</strong> "), _(($naptr > 0 ? "DYNAMIC" : "STATIC")))._("with no DNS errors encountered. Congratulations!");
645 645
                             } else {
646
-                                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.");
646
+                                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.");
647 647
                                 echo "<div class='notacceptable'><table>";
648 648
                                 foreach ($testsuite->listerrors() as $details) {
649
-                                    echo "<tr><td>" . $details['TYPE'] . "</td><td>" . $details['TARGET'] . "</td></tr>";
649
+                                    echo "<tr><td>".$details['TYPE']."</td><td>".$details['TARGET']."</td></tr>";
650 650
                                 }
651 651
                                 echo "</table></div>";
652 652
                             }
@@ -665,13 +665,13 @@  discard block
 block discarded – undo
665 665
                  $("#dynamic_tests").show();
666 666
               ';
667 667
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
668
-                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];
668
+                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];
669 669
                             $expectedName = $addr['hostname'];
670 670
                             print "
671 671
                             running_ajax_dyn++;
672
-                            $.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'}); 
672
+                            $.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'}); 
673 673
                             running_ajax_dyn++;
674
-                            $.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'}); 
674
+                            $.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'}); 
675 675
                        ";
676 676
                         }
677 677
                         echo "}
@@ -687,11 +687,11 @@  discard block
 block discarded – undo
687 687
                  $("#openroaming_tests").show();
688 688
               ';
689 689
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
690
-                            $host = ($addr['family'] == "IPv6" ? "[" : "") . $addr['IP'] . ($addr['family'] == "IPv6" ? "]" : "") . ":" . $addr['port'];
690
+                            $host = ($addr['family'] == "IPv6" ? "[" : "").$addr['IP'].($addr['family'] == "IPv6" ? "]" : "").":".$addr['port'];
691 691
                             $expectedName = $addr['hostname'];
692 692
                             print "
693 693
                             running_ajax_openroaming++;
694
-                            $.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'}); 
694
+                            $.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'}); 
695 695
                        ";
696 696
                         }
697 697
                         echo "}
@@ -704,18 +704,18 @@  discard block
 block discarded – undo
704 704
                          $naptrs[1] = $naptr;
705 705
                      }
706 706
                 }
707
-                    echo "<strong>" . _("Static connectivity tests") . "</strong>
707
+                    echo "<strong>"._("Static connectivity tests")."</strong>
708 708
          <table><tr>
709 709
          <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>
710 710
          </tr></table>";
711 711
                     if ($naptrs[0] > 0) {
712
-                        echo "<hr><strong>" . _("Dynamic connectivity tests") . "</strong>
712
+                        echo "<hr><strong>"._("Dynamic connectivity tests")."</strong>
713 713
          <table><tr>
714 714
          <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>
715 715
          </tr></table>";
716 716
                     }
717 717
                     if (count($orrealm) && ($naptrs[1] > 0)) {
718
-                      echo "<hr><strong>" . _("OpenRoaming connectivity tests") . "</strong>
718
+                      echo "<hr><strong>"._("OpenRoaming connectivity tests")."</strong>
719 719
          <table><tr>
720 720
          <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>
721 721
          </tr></table>";
@@ -735,12 +735,12 @@  discard block
 block discarded – undo
735 735
                     print "<p>";
736 736
                     foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
737 737
                         print "<hr>";
738
-                        printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>");
738
+                        printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>");
739 739
                         print "<table id='results$hostindex'  style='width:100%' class='udp_results'>
740 740
 <tr>
741
-<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src" . $hostindex . "_img'></td>
741
+<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='src".$hostindex."_img'></td>
742 742
 <td id='src$hostindex' colspan=2>
743
-" . _("testing...") . "
743
+"._("testing...")."
744 744
 </td>
745 745
 </tr>
746 746
 </table>";
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
 
752 752
             </div>
753 753
             <?php
754
-            for ($i=3; $i<5; $i++) {
754
+            for ($i = 3; $i < 5; $i++) {
755 755
                 if ($i == 3 && $naptrs[0] <= 0) {
756 756
                    continue;
757 757
                 }
@@ -766,15 +766,15 @@  discard block
 block discarded – undo
766 766
                     $rfc7585suite = $dnsChecksOR;
767 767
                 }
768 768
             ?>
769
-                <div id="tabs-<?php echo $i;?>">
770
-                    <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>
769
+                <div id="tabs-<?php echo $i; ?>">
770
+                    <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>
771 771
 
772 772
                 <?php
773 773
                     echo "<div id='";
774
-                    if ($i==3) { echo 'dynamic'; } else { echo 'openroaming'; }
774
+                    if ($i == 3) { echo 'dynamic'; } else { echo 'openroaming'; }
775 775
                     echo "_tests'><fieldset class='option_container'>
776 776
                 <legend><strong>";
777
-                    if ($i==3) {
777
+                    if ($i == 3) {
778 778
                      echo _("DYNAMIC connectivity tests");
779 779
                     } else {
780 780
                      echo _("OpenRoaming connectivity tests");
@@ -788,17 +788,17 @@  discard block
 block discarded – undo
788 788
                     }
789 789
                     $resultstoprint = [];
790 790
                     if (count($rfc7585suite->NAPTR_hostname_records) > 0) {
791
-                        $resultstoprint[] = '<div style="align:'.$end.'; display: none;" id="' . $prefix1 . '_result_fail">' . _("Some errors were found during the tests, see below") . '</div><div style="align:'.$end.'; display: none;" id="' . $prefix1 . '_result_pass">' . _("All tests passed, congratulations!") . '</div>';
792
-                        $resultstoprint[] = '<div style="align:'.$end.';"><a href="" class="moreall">' . _('Show detailed information for all tests') . '</a></div>' . '<p><strong>' . _("Checking server handshake...") . "</strong><p>";
791
+                        $resultstoprint[] = '<div style="align:'.$end.'; display: none;" id="'.$prefix1.'_result_fail">'._("Some errors were found during the tests, see below").'</div><div style="align:'.$end.'; display: none;" id="'.$prefix1.'_result_pass">'._("All tests passed, congratulations!").'</div>';
792
+                        $resultstoprint[] = '<div style="align:'.$end.';"><a href="" class="moreall">'._('Show detailed information for all tests').'</a></div>'.'<p><strong>'._("Checking server handshake...")."</strong><p>";
793 793
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
794
-                            $bracketaddr = ($addr["family"] == "IPv6" ? "[" . $addr["IP"] . "]" : $addr["IP"]);
795
-                            $resultstoprint[] = '<p><strong>' . $bracketaddr . ' TCP/' . $addr['port'] . '</strong>';
794
+                            $bracketaddr = ($addr["family"] == "IPv6" ? "[".$addr["IP"]."]" : $addr["IP"]);
795
+                            $resultstoprint[] = '<p><strong>'.$bracketaddr.' TCP/'.$addr['port'].'</strong>';
796 796
                             $resultstoprint[] = '<ul style="list-style-type: none;" class="caresult"><li>';
797
-                            $resultstoprint[] = "<table id='" . $prefix2 . "caresults$hostindex'  style='width:100%'>
797
+                            $resultstoprint[] = "<table id='".$prefix2."caresults$hostindex'  style='width:100%'>
798 798
 <tr>
799
-<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='" . $prefix2 . "srcca$hostindex" . "_img'></td>
800
-<td id='" . $prefix2 . "srcca$hostindex'>
801
-" . _("testing...") . "
799
+<td class='icon_td'><img src='../resources/images/icons/loading51.gif' id='".$prefix2."srcca$hostindex"."_img'></td>
800
+<td id='" . $prefix2."srcca$hostindex'>
801
+"._("testing...")."
802 802
 </td>
803 803
 </tr>
804 804
 </table>";
@@ -806,26 +806,26 @@  discard block
 block discarded – undo
806 806
                         }
807 807
                         $clientstest = [];
808 808
                         foreach ($rfc7585suite->NAPTR_hostname_records as $hostindex => $addr) {
809
-                            $clientstest[] = '<p><strong>' . $addr['IP'] . ' TCP/' . $addr['port'] . '</strong></p><ol>';
810
-                            $clientstest[] = "<span id='" . $prefix2 . "clientresults$hostindex$clinx'><table style='width:100%'>
809
+                            $clientstest[] = '<p><strong>'.$addr['IP'].' TCP/'.$addr['port'].'</strong></p><ol>';
810
+                            $clientstest[] = "<span id='".$prefix2."clientresults$hostindex$clinx'><table style='width:100%'>
811 811
 <tr>
812 812
 <td class='icon_td'>";
813
-                            if ($i == 4 ) {
813
+                            if ($i == 4) {
814 814
                                 $clientstest[] = "<!--";
815 815
                             }
816
-                            $clientstest[] = "<img src='../resources/images/icons/loading51.gif' id='" . $prefix2 . "srcclient$hostindex" . "_img'></td>
817
-<td id='" . $prefix2 . "srcclient$hostindex'>
818
-" . _("testing...");
816
+                            $clientstest[] = "<img src='../resources/images/icons/loading51.gif' id='".$prefix2."srcclient$hostindex"."_img'></td>
817
+<td id='" . $prefix2."srcclient$hostindex'>
818
+"._("testing...");
819 819
 
820
-                            if ($i == 4 ) {
821
-                                $clientstest[] = "-->" . _("not implemented yet");
820
+                            if ($i == 4) {
821
+                                $clientstest[] = "-->"._("not implemented yet");
822 822
                             }
823 823
                             $clientstest[] = "</td></tr></table></span>";
824 824
                             $clientstest[] = '</ol>';
825 825
                         }
826 826
                         echo '<div style="align:'.$end.';">';
827 827
                         echo join('', $resultstoprint);
828
-                        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>';
828
+                        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>';
829 829
                         print join('', $clientstest);
830 830
                         echo '</span>';
831 831
                         echo '</div>';
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
                 //     check if truncates/dies on Operator-Name
840 840
                 if ($my_profile !== NULL) {
841 841
                     echo "<div id='tabs-n'><fieldset class='option_container'>
842
-                <legend><strong>" . _("Live login test") . "</strong></legend>";
842
+                <legend><strong>" . _("Live login test")."</strong></legend>";
843 843
                     $prof_compl = $my_profile->getEapMethodsinOrderOfPreference(1);
844 844
                     if (count($prof_compl) > 0) {
845 845
                         $passwordReqired = FALSE;
@@ -852,34 +852,34 @@  discard block
 block discarded – undo
852 852
                                 $clientCertRequired = TRUE;
853 853
                             }
854 854
                         }
855
-                        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>
856
-                    <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>
857
-                    <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>
855
+                        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>
856
+                    <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>
857
+                    <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>
858 858
                     <form enctype='multipart/form-data' id='live_form' accept-charset='UTF-8'>
859 859
                     <input type='hidden' name='test_type' value='udp_login'>
860
-                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang() . "'>
861
-                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier . "'>
860
+                    <input type='hidden' name='lang' value='" . $gui->languageInstance->getLang()."'>
861
+                    <input type='hidden' name='profile_id' value='" . $my_profile->identifier."'>
862 862
                     <table id='live_tests'>";
863 863
 // if any password based EAP methods are available enable this section
864 864
                         if ($passwordReqired) {
865
-                            echo "<tr><td colspan='2'><strong>" . _("Password-based EAP types") . "</strong></td></tr>
866
-                        <tr><td>" . _("Real (inner) username:") . "</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>";
867
-                            echo "<tr><td>" . _("Anonymous outer ID (optional):") . "</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>";
868
-                            echo "<tr><td>" . _("Password:") . "</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>";
865
+                            echo "<tr><td colspan='2'><strong>"._("Password-based EAP types")."</strong></td></tr>
866
+                        <tr><td>" . _("Real (inner) username:")."</td><td><input type='text' id='username' class='mandatory' name='username'/></td></tr>";
867
+                            echo "<tr><td>"._("Anonymous outer ID (optional):")."</td><td><input type='text' id='outer_username' name='outer_username'/></td></tr>";
868
+                            echo "<tr><td>"._("Password:")."</td><td><input type='text' id='password' class='mandatory' name='password'/></td></tr>";
869 869
                         }
870 870
                         // ask for cert + privkey if TLS-based method is active
871 871
                         if ($clientCertRequired) {
872
-                            echo "<tr><td colspan='2'><strong>" . _("Certificate-based EAP types") . "</strong></td></tr>
873
-                        <tr><td>" . _("Certificate file (.p12 or .pfx):") . "</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr>
874
-                        <tr><td>" . _("Certificate password, if any:") . "</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr>
875
-                        <tr><td>" . _("Username, if different from certificate Subject:") . "</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>";
872
+                            echo "<tr><td colspan='2'><strong>"._("Certificate-based EAP types")."</strong></td></tr>
873
+                        <tr><td>" . _("Certificate file (.p12 or .pfx):")."</td><td><input type='file' id='cert' accept='application/x-pkcs12' name='cert'/></td></tr>
874
+                        <tr><td>" . _("Certificate password, if any:")."</td><td><input type='text' id='privkey' name='privkey_pass'/></td></tr>
875
+                        <tr><td>" . _("Username, if different from certificate Subject:")."</td><td><input type='text' id='tls_username' name='tls_username'/></td></tr>";
876 876
                         }
877
-                        echo "<tr><td colspan='2'><button id='submit_credentials'>" . _("Submit credentials") . "</button></td></tr></table></form>";
877
+                        echo "<tr><td colspan='2'><button id='submit_credentials'>"._("Submit credentials")."</button></td></tr></table></form>";
878 878
                         echo "<div id='live_login_results' style='display:none'>";
879 879
                         foreach (\config\Diagnostics::RADIUSTESTS['UDP-hosts'] as $hostindex => $host) {
880 880
                             print "<hr>";
881
-                            printf(_("Testing from: %s"), "<strong>" . \config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name'] . "</strong>");
882
-                            print "<span style='position:relative'><img src='../resources/images/icons/loading51.gif' id='live_src" . $hostindex . "_img' style='width:24px; position: absolute; $start: 20px; bottom: 0px; '></span>";
881
+                            printf(_("Testing from: %s"), "<strong>".\config\Diagnostics::RADIUSTESTS['UDP-hosts'][$hostindex]['display_name']."</strong>");
882
+                            print "<span style='position:relative'><img src='../resources/images/icons/loading51.gif' id='live_src".$hostindex."_img' style='width:24px; position: absolute; $start: 20px; bottom: 0px; '></span>";
883 883
                             print "<div id='eap_test$hostindex' class='eap_test_results'></div>";
884 884
                         }
885 885
                         echo "</div>";
@@ -894,9 +894,9 @@  discard block
 block discarded – undo
894 894
             }
895 895
 
896 896
             if (isset($_POST['comefrom'])) {
897
-                $return = htmlspecialchars_decode($_POST['comefrom']) . ( $inst_id ? "?inst_id=" . $inst_id : "" );
897
+                $return = htmlspecialchars_decode($_POST['comefrom']).($inst_id ? "?inst_id=".$inst_id : "");
898 898
                 echo "<form method='post' action='$return' accept-charset='UTF-8'>
899
-                    <button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CLOSE . "'>" . sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_idp) . "</button>"
899
+                    <button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CLOSE."'>".sprintf(_("Return to %s administrator area"), core\common\Entity::$nomenclature_idp)."</button>"
900 900
                 . "</form>";
901 901
             }
902 902
             if ($check_realm !== FALSE) {
Please login to merge, or discard this patch.
core/common/Language.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
         $loggerInstance = new \core\common\Logging();
82 82
         $olddomain = textdomain(NULL);
83 83
         $loggerInstance->debug(4, "set_locale($domain)\n");
84
-        $loggerInstance->debug(4, ROOT . "\n");
84
+        $loggerInstance->debug(4, ROOT."\n");
85 85
         textdomain($domain);
86
-        bindtextdomain($domain, ROOT . "/translation/");
86
+        bindtextdomain($domain, ROOT."/translation/");
87 87
         bind_textdomain_codeset($domain, "UTF-8");
88 88
         return $olddomain;
89 89
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
             // check if this language is supported by the CAT config
138 138
             foreach (\config\Master::LANGUAGES as $language => $value) {
139
-                if (preg_match("/^" . $language . ".*/", $tryLang)) {
139
+                if (preg_match("/^".$language.".*/", $tryLang)) {
140 140
                     $localeTmp = $value['locale'];
141 141
                     $langIndex = $language; // ???
142 142
                     break;
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
             }
153 153
         }
154 154
         $isRtl = \config\Master::LANGUAGES[$langIndex]['rtl'];
155
-        putenv("LC_ALL=" . $theLocale);
155
+        putenv("LC_ALL=".$theLocale);
156 156
         $_SESSION['language'] = $langIndex;
157 157
         $loggerInstance->debug(4, "selected lang:$langIndex:$theLocale\n");
158 158
         $loggerInstance->debug(4, print_r($langConverted, true));
159
-        return([$langIndex, $theLocale,$isRtl]);
159
+        return([$langIndex, $theLocale, $isRtl]);
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
web/skins/modern/user/cat_info.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  * the receiving end to strip this marker and not add the title by itself.
32 32
  *
33 33
  */
34
-require_once dirname(dirname(dirname((dirname(dirname(__FILE__)))))) . "/config/_config.php";
34
+require_once dirname(dirname(dirname((dirname(dirname(__FILE__))))))."/config/_config.php";
35 35
 
36 36
 $Gui = new \web\lib\user\Gui();
37 37
 
@@ -41,46 +41,46 @@  discard block
 block discarded – undo
41 41
 $subpage = $_REQUEST['subpage'];
42 42
 switch ($page) {
43 43
     case 'about':
44
-        include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php";
44
+        include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/about_cat.inc.php";
45 45
         $out = "<div class='padding'>$out</div>";
46 46
         break;
47 47
     case 'tou':
48
-        include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/tou.inc.php";
48
+        include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/tou.inc.php";
49 49
         $out = "no_title<div>
50 50
            <h1>
51
-         " . $Tou['title'] . "
51
+         " . $Tou['title']."
52 52
     </h1>
53
-<div id='tou_1'>" . $Tou['subtitle'] .
54
-               '<div style="direction:ltr">' . $Tou['short'] . "</div>
53
+<div id='tou_1'>" . $Tou['subtitle'].
54
+               '<div style="direction:ltr">'.$Tou['short']."</div>
55 55
 </div>
56 56
 <div id='all_tou_link'><a href='javascript:showTOU()'>Click here to see the full terms</a></div>
57 57
 <div id='tou_2' style='display:none; padding-top:20px; direction:ltr'>" .
58
-                $Tou['full'] . "
58
+                $Tou['full']."
59 59
 </div>
60 60
 </div>
61 61
 ";
62 62
         break;
63 63
     case 'help':
64
-        include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/faq.inc.php";
64
+        include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/faq.inc.php";
65 65
         switch ($subpage) {
66 66
             case 'contact':
67 67
             case 'idp_not_listed':
68 68
             case 'device_not_listed':
69 69
             case 'what_is_eduroam':
70
-                $out = "no_title<div><h1>" . _("Help") . "</h1>";
70
+                $out = "no_title<div><h1>"._("Help")."</h1>";
71 71
                 foreach ($Faq as $faqItem) {
72 72
                     if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) {
73
-                        $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
74
-                        $out .= "" . $faqItem['text'] . "</div>\n";
73
+                        $out .= "<div><h3>".$faqItem['title']."</h3>\n";
74
+                        $out .= "".$faqItem['text']."</div>\n";
75 75
                     }
76 76
                 }
77 77
                 $out .= "</div>";
78 78
                 break;
79 79
             case 'faq':
80
-                $out = "no_title<div><h1>" . _("Frequently Asked Questions") . "</h1>";
80
+                $out = "no_title<div><h1>"._("Frequently Asked Questions")."</h1>";
81 81
                 foreach ($Faq as $faqItem) {
82
-                    $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
83
-                    $out .= "" . $faqItem['text'] . "</div>\n";
82
+                    $out .= "<div><h3>".$faqItem['title']."</h3>\n";
83
+                    $out .= "".$faqItem['text']."</div>\n";
84 84
                 }
85 85
                 $out .= "</div>";
86 86
                 break;
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
                     $rn = uniqid();
105 105
                     $_SESSION['remindIdP'] = $rn;
106 106
                     $out .= "<input type='hidden' id='remindIdPs' value='$rn'>";
107
-                    $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>" . _("Login") . "</button>";
108
-                    $out .= "<br/><br/><p>" . _("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.") . "</p>";
109
-                    $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>" . _("Get IdP Reminder") . "</button>";
107
+                    $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>"._("Login")."</button>";
108
+                    $out .= "<br/><br/><p>"._("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.")."</p>";
109
+                    $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>"._("Get IdP Reminder")."</button>";
110 110
                     $out .= "<div id='remindIdPd'><span id='remindIdPh'></span><ul id='remindIdPl'></ul></div>";
111 111
                     $out = "<div  class='padding'>$out</div>";
112 112
                 }
113 113
                 break;
114 114
             case 'develop':
115
-                include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/devel.inc.php";
115
+                include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/devel.inc.php";
116 116
                 $out = "<div class='padding'>$out</div>";
117 117
                 break;
118 118
         }
Please login to merge, or discard this patch.
web/lib/admin/PageDecoration.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
         $retval = "<div class='sidebar'><p>";
74 74
 
75 75
         if ($advancedControls) {
76
-            $retval .= "<strong>" . _("You are:") . "</strong> ".$_SESSION['name']
76
+            $retval .= "<strong>"._("You are:")."</strong> ".$_SESSION['name']
77 77
             ."<br/>
78 78
               <br/>
79
-              <a href='" . \core\CAT::getRootUrlPath() . "/admin/overview_user.php'>" . _("Go to your Profile page") . "</a> 
80
-              <a href='" . \core\CAT::getRootUrlPath() . "/admin/inc/logout.php'>" . _("Logout") . "</a> ";
79
+              <a href='" . \core\CAT::getRootUrlPath()."/admin/overview_user.php'>"._("Go to your Profile page")."</a> 
80
+              <a href='" . \core\CAT::getRootUrlPath()."/admin/inc/logout.php'>"._("Logout")."</a> ";
81 81
         }
82
-        $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/'>" . _("Start page") . "</a>
82
+        $retval .= "<a href='".\core\CAT::getRootUrlPath()."/'>"._("Start page")."</a>
83 83
             </p>
84 84
         </div> <!-- sidebar -->";
85 85
         \core\common\Entity::outOfThePotatoes();
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
                     <h1>$cap1</h1>
104 104
                 </div><!--header_captions-->
105 105
                 <div id='langselection' style='padding-top:20px; padding-".$this->start.":10px;'>
106
-                    <form action='$place' method='GET' accept-charset='UTF-8'>" . _("View this page in") . "&nbsp;
106
+                    <form action='$place' method='GET' accept-charset='UTF-8'>"._("View this page in")."&nbsp;
107 107
                         <select id='lang' name='lang' onchange='this.form.submit()'>";
108 108
 
109 109
         foreach (\config\Master::LANGUAGES as $lang => $getValue) {
110
-            $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $getValue['display'] . "</option> ";
110
+            $retval .= "<option value='$lang' ".(strtoupper($language) == strtoupper($lang) ? "selected" : "")." >".$getValue['display']."</option> ";
111 111
         }
112 112
         $retval .= "</select>";
113 113
 
114 114
         foreach ($_GET as $getVar => $getValue) {
115 115
             $filterValue = filter_input(INPUT_GET, $getVar, FILTER_SANITIZE_STRING);
116 116
             if ($getVar != "lang" && $getValue != "") {
117
-                $retval .= "<input type='hidden' name='" . htmlspecialchars($getVar) . "' value='" . htmlspecialchars($filterValue) . "'>";
117
+                $retval .= "<input type='hidden' name='".htmlspecialchars($getVar)."' value='".htmlspecialchars($filterValue)."'>";
118 118
             }
119 119
         }
120 120
         $retval .= "</form>
121 121
                 </div><!--langselection-->";
122
-        $logoUrl = \core\CAT::getRootUrlPath() . "/resources/images/consortium_logo.png";
122
+        $logoUrl = \core\CAT::getRootUrlPath()."/resources/images/consortium_logo.png";
123 123
         $retval .= "<div class='consortium_logo'>
124 124
                     <img id='test_locate' src='$logoUrl' alt='Consortium Logo'>
125 125
                 </div> <!-- consortium_logo -->
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         if (isset(\config\Master::APPEARANCE['MOTD']) && \config\Master::APPEARANCE['MOTD'] != "") {
214 214
             $retval .= "<div id='header_MOTD' style='display:inline-block; padding-".$this->start.":20px;vertical-align:top;'>
215
-              <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD'] . "</p>
215
+              <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD']."</p>
216 216
               </div><!--header_MOTD-->";
217 217
         }
218 218
         $retval .= $this->sidebar($advancedControls);
@@ -238,9 +238,9 @@  discard block
 block discarded – undo
238 238
           <html xmlns='http://www.w3.org/1999/xhtml' lang='$ourlocale'".($this->langObject->rtl ? "dir='rtl'" : "").">
239 239
           <head lang='$ourlocale'>
240 240
           <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
241
-        $cssUrl = \core\CAT::getRootUrlPath() . "/resources/css/cat.css.php";
241
+        $cssUrl = \core\CAT::getRootUrlPath()."/resources/css/cat.css.php";
242 242
         $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />";
243
-        $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>";
243
+        $retval .= "<title>".htmlspecialchars($pagetitle)."</title>";
244 244
         return $retval;
245 245
     }
246 246
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             // we may need to jump up one dir if we are either in admin/ or accountstatus/
255 255
             // (accountstatus courtesy of my good mood. It's userspace not admin space so
256 256
             // it shouldn't be using this function any more.)
257
-            $logoBase = \core\CAT::getRootUrlPath() . "/resources/images";
257
+            $logoBase = \core\CAT::getRootUrlPath()."/resources/images";
258 258
             return "<span id='logos'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/>
259 259
               <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span>
260 260
               <span id='eu_text' style='text-align:right;'><a href='http://ec.europa.eu/dgs/connect/index_en.htm' style='text-decoration:none; vertical-align:top;'>European Commission Communications Networks, Content and Technology</a></span>";
@@ -276,9 +276,9 @@  discard block
 block discarded – undo
276 276
             <table style='width:100%'>
277 277
                 <tr>
278 278
                     <td style='padding-".$this->start.":20px; padding-".$this->end.":20px; text-align:".$this->start."; vertical-align:top;'>
279
-                        " . $cat->catCopyright . "</td>";
279
+                        " . $cat->catCopyright."</td>";
280 280
         if (!empty(\config\Master::APPEARANCE['privacy_notice_url'])) {
281
-            $retval .= "<td><a href='".\config\Master::APPEARANCE['privacy_notice_url']."'>" . sprintf(_("%s Privacy Notice"),\config\ConfAssistant::CONSORTIUM['display_name']) . "</a></td>";
281
+            $retval .= "<td><a href='".\config\Master::APPEARANCE['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), \config\ConfAssistant::CONSORTIUM['display_name'])."</a></td>";
282 282
         }
283 283
         $retval .= "            <td style='padding-".$this->start.":80px; padding-".$this->end.":20px; text-align:".$this->end."; vertical-align:top;'>";
284 284
 
Please login to merge, or discard this patch.