Passed
Push — master ( a7aa10...668d26 )
by Tomasz
07:06
created
web/resources/css/cat.css.php 1 patch
Spacing   +17 added lines, -17 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 dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 $colour1 = \config\Main::APPEARANCE['colour1'];
24 24
 $colour2 = \config\Main::APPEARANCE['colour2'];
25 25
 header('Content-type: text/css; charset=utf-8');
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 body {
32
-    background: <?php echo $colour1;?>;
32
+    background: <?php echo $colour1; ?>;
33 33
     color: #000000;
34 34
     font-family:Verdana, Arial, Helvetica, sans-serif;
35 35
     font-size:11px;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 }
53 53
 
54 54
 button {
55
-    background: <?php echo $colour2;?>; 
55
+    background: <?php echo $colour2; ?>; 
56 56
     color: #FFFFFF; 
57 57
     min-height: 23px;
58 58
     border-left-style: outset; 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
 span.edu_cat {
405 405
     font-weight: bold;
406
-    color: <?php echo $colour2;?>;
406
+    color: <?php echo $colour2; ?>;
407 407
 }
408 408
 
409 409
 span.tooltip {
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
     border-bottom-style:solid;
512 512
     border-top-width:5px; 
513 513
     border-bottom-width:5px; 
514
-    border-color: <?php echo $colour1;?>; 
514
+    border-color: <?php echo $colour1; ?>; 
515 515
     padding-left:30px;
516 516
 }
517 517
 
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 }
582 582
 
583 583
 #close_button {
584
-    background: <?php echo $colour2;?>; 
584
+    background: <?php echo $colour2; ?>; 
585 585
     color: #FFFFFF; 
586 586
     height: 23px;
587 587
     border-left-style: inset; 
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
     width: 30em; 
657 657
     padding-left: 10px; 
658 658
     padding-right: 0px; 
659
-    background: <?php echo $colour2;?>; 
659
+    background: <?php echo $colour2; ?>; 
660 660
     color: white; 
661 661
     box-shadow: 10px 10px 5px #888888;
662 662
 }
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
     padding-top: 4px; 
704 704
     padding-bottom: 12px; 
705 705
     padding-left: 30px; 
706
-    background: <?php echo $colour1;?>; 
706
+    background: <?php echo $colour1; ?>; 
707 707
     text-align: left; 
708 708
     text-shadow: 10px 10px 5px #888888;
709 709
 }
@@ -713,9 +713,9 @@  discard block
 block discarded – undo
713 713
     border-bottom-style:solid;
714 714
     border-top-width:5px;
715 715
     border-bottom-width:5px;
716
-    border-color: <?php echo $colour1;?>;
716
+    border-color: <?php echo $colour1; ?>;
717 717
     padding-left:30px;
718
-    color: <?php echo $colour2;?>;
718
+    color: <?php echo $colour2; ?>;
719 719
 }
720 720
 
721 721
 #heading h1 { 
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
     text-align: justify;
735 735
     border-bottom-style:solid;
736 736
     border-bottom-width:5px;
737
-    border-color: <?php echo $colour1;?>;
737
+    border-color: <?php echo $colour1; ?>;
738 738
     font-size: 11px;
739 739
     font-weight: normal;
740 740
 }
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 
782 782
 #faq {
783 783
     padding: 20px;
784
-    color: <?php echo $colour2;?>;
784
+    color: <?php echo $colour2; ?>;
785 785
     background: #ffffff;
786 786
 }
787 787
 
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
 
834 834
 #line1 {
835 835
     top:145px;
836
-    color: <?php echo $colour2;?>;
836
+    color: <?php echo $colour2; ?>;
837 837
     font-size:20px;
838 838
 }
839 839
 
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
 
881 881
 #front_page_leftmenu {
882 882
     border-right:solid; 
883
-    border-color: <?php echo $colour1;?>; 
883
+    border-color: <?php echo $colour1; ?>; 
884 884
     border-width:5px; 
885 885
     min-height:400px; 
886 886
     padding-left: 10px; 
@@ -905,11 +905,11 @@  discard block
 block discarded – undo
905 905
 }
906 906
 
907 907
 a:link {
908
-    color:<?php echo $colour2;?>;
908
+    color:<?php echo $colour2; ?>;
909 909
 }
910 910
 
911 911
 a:visited {
912
-    color:<?php echo $colour2;?>;
912
+    color:<?php echo $colour2; ?>;
913 913
 }
914 914
 
915 915
 a:hover {
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
 }
918 918
 
919 919
 a:active {
920
-    color:<?php echo $colour2;?>;
920
+    color:<?php echo $colour2; ?>;
921 921
 }
922 922
 
923 923
 .comment {
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @return string HTML code <table>
86 86
      */
87 87
     public function prefilledOptionTable(string $attributePrefix) {
88
-        $retval = "<table id='expandable_$attributePrefix" . "_options'>";
88
+        $retval = "<table id='expandable_$attributePrefix"."_options'>";
89 89
 
90 90
         $prepopulate = [];
91 91
         foreach ($this->listOfOptions as $existingAttribute) {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 $prepopulate[] = $existingAttribute;
94 94
             }
95 95
         }
96
-        if (is_array($prepopulate) && ( count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific" )) { // editing... fill with values
96
+        if (is_array($prepopulate) && (count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific")) { // editing... fill with values
97 97
             $retval .= $this->addOptionEdit($attributePrefix, $prepopulate);
98 98
         } else {
99 99
             $retval .= $this->addOptionNew($attributePrefix);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $optiontypearray = $optioninfo->optionType($option['name']);
126 126
                 $loggerInstance = new \core\common\Logging();
127 127
                 $loggerInstance->debug(5, "About to execute optiontext with PREFILL!\n");
128
-                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-' . $option['level'] . '-' . $option['row'] : $option['value']), $option['lang']);
128
+                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-'.$option['level'].'-'.$option['row'] : $option['value']), $option['lang']);
129 129
             }
130 130
         }
131 131
         return $retval;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         if (!isset($descriptions[$input])) {
198 198
             return "";
199 199
         }
200
-        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:" . ($isVisible ? "block" : "none") . "' onclick='alert(\"" . $descriptions[$input] . "\")'><img src='../resources/images/icons/question-mark-icon.png" . "'></span>";
200
+        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:".($isVisible ? "block" : "none")."' onclick='alert(\"".$descriptions[$input]."\")'><img src='../resources/images/icons/question-mark-icon.png"."'></span>";
201 201
     }
202 202
 
203 203
     /**
@@ -210,18 +210,18 @@  discard block
 block discarded – undo
210 210
      */
211 211
     private function selectElement($rowid, $list) {
212 212
         $jsmagic = "onchange='
213
-                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
213
+                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid."-select\").value)) {
214 214
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"block\";
215 215
                                    } else {
216 216
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"none\";
217 217
                                    }";
218 218
         foreach (array_keys(OptionDisplay::HTML_DATATYPE_TEXTS) as $key) {
219
-            $jsmagic .= "if (/#" . $key . "#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
220
-                                  document.getElementById(\"S$rowid-input-file\").style.display = \"" . ($key == \core\Options::TYPECODE_FILE ? "block" : "none") . "\";
221
-                                  document.getElementById(\"S$rowid-input-text\").style.display = \"" . ($key == \core\Options::TYPECODE_TEXT ? "block" : "none") . "\";
222
-                                  document.getElementById(\"S$rowid-input-string\").style.display = \"" . ($key == \core\Options::TYPECODE_STRING ? "block" : "none") . "\";
223
-                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"" . ($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none") . "\";
224
-                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"" . ($key == \core\Options::TYPECODE_INTEGER ? "block" : "none") . "\";
219
+            $jsmagic .= "if (/#".$key."#/.test(document.getElementById(\"option-S".$rowid."-select\").value)) {
220
+                                  document.getElementById(\"S$rowid-input-file\").style.display = \"".($key == \core\Options::TYPECODE_FILE ? "block" : "none")."\";
221
+                                  document.getElementById(\"S$rowid-input-text\").style.display = \"".($key == \core\Options::TYPECODE_TEXT ? "block" : "none")."\";
222
+                                  document.getElementById(\"S$rowid-input-string\").style.display = \"".($key == \core\Options::TYPECODE_STRING ? "block" : "none")."\";
223
+                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"".($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none")."\";
224
+                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"".($key == \core\Options::TYPECODE_INTEGER ? "block" : "none")."\";
225 225
                              }
226 226
                              ";
227 227
             // hide all tooltips (each is a <span>, and there are no other <span>s)
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                 $value = array_shift($list);
253 253
                 $listtype = $optioninfo->optionType($value);
254 254
                 $retval .= $uiElements->displayName($value);
255
-                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#'/>";
255
+                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#".$listtype["type"]."#".$listtype["flag"]."#'/>";
256 256
                 $activelisttype = $listtype;
257 257
                 $tooltips = $this->tooltip($rowid, $value, TRUE);
258 258
                 break;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                 $retval .= "<select id='option-S$rowid-select' name='option[S$rowid]' $jsmagic>";
261 261
                 foreach ($list as $value) {
262 262
                     $listtype = $optioninfo->optionType($value);
263
-                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ";
263
+                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#".$listtype["type"]."#".$listtype["flag"]."#' ";
264 264
                     if ($iterator == $this->optionIterator) {
265 265
                         $retval .= "selected='selected'";
266 266
                         $activelisttype = $listtype;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                     } else {
269 269
                         $tooltips .= $this->tooltip($rowid, $value, FALSE);
270 270
                     }
271
-                    $retval .= ">" . $uiElements->displayName($value) . "</option>";
271
+                    $retval .= ">".$uiElements->displayName($value)."</option>";
272 272
                     $iterator++;
273 273
                 }
274 274
 
@@ -293,9 +293,9 @@  discard block
 block discarded – undo
293 293
      */
294 294
     private function selectLanguage($rowid, $makeVisible) {
295 295
         \core\common\Entity::intoThePotatoes();
296
-        $retval = "<select style='display:" . ($makeVisible ? "block" : "none") . "' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect'>
297
-            <option value='' name='select_language' selected>" . _("select language") . "</option>
298
-            <option value='C' name='all_languages'>" . _("default/other languages") . "</option>";
296
+        $retval = "<select style='display:".($makeVisible ? "block" : "none")."' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect'>
297
+            <option value='' name='select_language' selected>" . _("select language")."</option>
298
+            <option value='C' name='all_languages'>" . _("default/other languages")."</option>";
299 299
         foreach (\config\Main::LANGUAGES as $langindex => $possibleLang) {
300 300
             $thislang = $possibleLang['display'];
301 301
             $retval .= "<option value='$langindex' name='$langindex'>$thislang</option>";
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     private function inputFields($rowid, $activetype) {
324 324
         $retval = "";
325 325
         foreach (OptionDisplay::HTML_DATATYPE_TEXTS as $key => $type) {
326
-            $retval .= "<" . $type['html'] . " style='display:" . ($activetype['type'] == $key ? "block" : "none") . "' name='value[S$rowid-$key]' id='S" . $rowid . "-input-" . $key . "'" . $type['tail'] . ">";
326
+            $retval .= "<".$type['html']." style='display:".($activetype['type'] == $key ? "block" : "none")."' name='value[S$rowid-$key]' id='S".$rowid."-input-".$key."'".$type['tail'].">";
327 327
         }
328 328
         return $retval;
329 329
     }
@@ -338,11 +338,11 @@  discard block
 block discarded – undo
338 338
     private function noPrefillText(int $rowid, array $list) {
339 339
         // first column: the <select> element with the names of options and their field-toggling JS magic
340 340
         $selectorInfo = $this->selectElement($rowid, $list);
341
-        $retval = "<td>" . $selectorInfo["TEXT"] . "</td>";
341
+        $retval = "<td>".$selectorInfo["TEXT"]."</td>";
342 342
         // second column: the <select> element for language selection - only visible if the active option is multi-lang
343
-        $retval .= "<td>" . $this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML") . "</td>";
343
+        $retval .= "<td>".$this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML")."</td>";
344 344
         // third column: the actual input fields; the data type of the active option is visible, all others hidden
345
-        $retval .= "<td>" . $this->inputFields($rowid, $selectorInfo['ACTIVE']) . "</td>";
345
+        $retval .= "<td>".$this->inputFields($rowid, $selectorInfo['ACTIVE'])."</td>";
346 346
         return $retval;
347 347
     }
348 348
 
@@ -365,20 +365,20 @@  discard block
 block discarded – undo
365 365
         $retval .= "<td>";
366 366
         $uiElements = new UIElements();
367 367
         $listtype = $optioninfo->optionType($optionName);
368
-        $retval .= "<span style='display:flex;'>" . $uiElements->displayName($optionName);
369
-        $retval .= $this->tooltip($rowid, $optionName, TRUE) . "</span>";
370
-        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ></td>";
368
+        $retval .= "<span style='display:flex;'>".$uiElements->displayName($optionName);
369
+        $retval .= $this->tooltip($rowid, $optionName, TRUE)."</span>";
370
+        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#".$listtype["type"]."#".$listtype["flag"]."#' ></td>";
371 371
 
372 372
         // language tag if any
373 373
         $retval .= "<td>";
374 374
         if ($listtype["flag"] == "ML") {
375 375
 
376
-            $language = "(" . strtoupper($optionLang) . ")";
376
+            $language = "(".strtoupper($optionLang).")";
377 377
             if ($optionLang == 'C') {
378 378
                 $language = _("(default/other languages)");
379 379
             }
380 380
             $retval .= $language;
381
-            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect' value='" . $optionLang . "' style='display:block'>";
381
+            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect' value='".$optionLang."' style='display:block'>";
382 382
         }
383 383
         $retval .= "</td>";
384 384
 // attribute content
@@ -388,12 +388,12 @@  discard block
 block discarded – undo
388 388
             case \core\Options::TYPECODE_COORDINATES:
389 389
                 $this->allLocationCount = $this->allLocationCount + 1;
390 390
                 // display of the locations varies by map provider
391
-                $classname = "\web\lib\admin\Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'];
391
+                $classname = "\web\lib\admin\Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'];
392 392
                 $link = $classname::optionListDisplayCode($optionValue, $this->allLocationCount);
393
-                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-" . \core\Options::TYPECODE_TEXT . "]' id='S$rowid-input-text' value='$optionValue'>$link";
393
+                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-".\core\Options::TYPECODE_TEXT."]' id='S$rowid-input-text' value='$optionValue'>$link";
394 394
                 break;
395 395
             case \core\Options::TYPECODE_FILE:
396
-                $retval .= "<input readonly type='text' name='value[S$rowid-" . \core\Options::TYPECODE_STRING . "]' id='S" . $rowid . "-input-string' style='display:none' value='" . urlencode($optionValue) . "'>";
396
+                $retval .= "<input readonly type='text' name='value[S$rowid-".\core\Options::TYPECODE_STRING."]' id='S".$rowid."-input-string' style='display:none' value='".urlencode($optionValue)."'>";
397 397
                 $uiElements = new UIElements();
398 398
                 switch ($optionName) {
399 399
                     case "eap:ca_file":
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
                 if ($listtype['type'] == \core\Options::TYPECODE_BOOLEAN) {// only modify in this one case
424 424
                     $displayedVariant = ($optionValue == "on" ? _("on") : _("off"));
425 425
                 }
426
-                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>";
426
+                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>";
427 427
                 break;
428 428
             default:
429 429
                 // this should never happen!
@@ -468,10 +468,10 @@  discard block
 block discarded – undo
468 468
        <td>
469 469
           <button type='button' class='delete' onclick='";
470 470
         if ($prefillValue !== NULL && $item == "general:geo_coordinates") {
471
-            $funcname = "Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'] . 'DeleteCoord';
472
-            $retval .= 'if (typeof ' . $funcname . ' === "function") { ' . $funcname . '(' . $this->allLocationCount . '); } ';
471
+            $funcname = "Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'].'DeleteCoord';
472
+            $retval .= 'if (typeof '.$funcname.' === "function") { '.$funcname.'('.$this->allLocationCount.'); } ';
473 473
         }
474
-        $retval .= 'deleteOption("option-S' . $rowid . '")';
474
+        $retval .= 'deleteOption("option-S'.$rowid.'")';
475 475
         $retval .= "'>-</button>
476 476
        </td>
477 477
     </tr>";
Please login to merge, or discard this patch.
web/lib/admin/MapGoogle.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function htmlHeadCode() {
48 48
         $cat = new \core\CAT();
49 49
         \core\common\Entity::intoThePotatoes();
50
-        $retval = "<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=" . \config\Main::APPEARANCE['google_maps_api_key'] . "'></script>
50
+        $retval = "<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=".\config\Main::APPEARANCE['google_maps_api_key']."'></script>
51 51
     <script type='text/javascript'>
52 52
         // some global variables;
53 53
         var center_lat=49.6114885608729;
@@ -103,19 +103,19 @@  discard block
 block discarded – undo
103 103
          *
104 104
          */
105 105
         function locator_magic() {
106
-            geocoder.geocode({'address':\"" . preg_replace("/\"/", "&quot;", $this->instName) . "\", 'region':\"" . strtolower($this->fedName) . "\"},
106
+            geocoder.geocode({'address':\"" . preg_replace("/\"/", "&quot;", $this->instName)."\", 'region':\"".strtolower($this->fedName)."\"},
107 107
             function(r,status) {
108 108
                 if(status != google.maps.GeocoderStatus.OK) {
109
-                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)] . "\");
109
+                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]."\");
110 110
                 } else {
111 111
                     var i;
112 112
                     for(i = 0; i < r.length; i++) {
113 113
                         Addr = getAddressElements(r[i].address_components);
114
-                        if(Addr.country == \"" . strtoupper($this->fedName) . "\")
114
+                        if(Addr.country == \"" . strtoupper($this->fedName)."\")
115 115
                         break;
116 116
                     }
117
-                    if(Addr.country != \"" . strtoupper($this->fedName) . "\")
118
-                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)] . "\");
117
+                    if(Addr.country != \"" . strtoupper($this->fedName)."\")
118
+                    locate_country(\"" . $cat->knownFederations[strtoupper($this->fedName)]."\");
119 119
                     else {
120 120
                         addMarker(r[i].geometry.location,15,null);
121 121
                     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
          */
129 129
         function markerClicked(m) {
130 130
             info_window.close();
131
-            var t = \"" . _("This is location ") . "\"+m.info;
131
+            var t = \"" . _("This is location ")."\"+m.info;
132 132
             info_window.setContent(t);
133 133
             info_window.setPosition(m.getPosition());
134 134
             info_window.open(map,m);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         function getAddressLocation() {
208 208
             var city = $('#address').val();
209 209
             if(city == '') {
210
-                alert(\"" . _("nothing entered in the address field") . "\");
210
+                alert(\"" . _("nothing entered in the address field")."\");
211 211
                 return false;
212 212
             }
213 213
             geocoder.geocode( { 'address': city}, function(results, status) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
          * trigger geolocation
228 228
          */
229 229
         function locateMe() {
230
-            $('#address').val(\"" . _("locating") . "\");
230
+            $('#address').val(\"" . _("locating")."\");
231 231
             navigator.geolocation.getCurrentPosition(locate_succes,locate_fail,{maximumAge:3600000, timeout:5000});
232 232
         }
233 233
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         if ($this->readOnly) {
346 346
             return "<div id='map' class='googlemap'></div>";
347 347
         } else {
348
-            return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . "<div id='map' class='googlemap'></div>" . $this->htmlPostEdit(FALSE);
348
+            return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml()."<div id='map' class='googlemap'></div>".$this->htmlPostEdit(FALSE);
349 349
         }
350 350
     }
351 351
 
@@ -358,11 +358,11 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public static function optionListDisplayCode($coords, $number) {
360 360
         // quiesce warnings about unused variable
361
-        if (strlen(sprintf("%s", $coords)) <0) {
361
+        if (strlen(sprintf("%s", $coords)) < 0) {
362 362
             throw new \Exception("A miracle! A string with negative length!");
363 363
         };
364 364
         \core\common\Entity::intoThePotatoes();
365
-        $retval = "<button id='location_b_" . $number . "' class='location_button'>" . _("Click to see location") . " $number</button>";
365
+        $retval = "<button id='location_b_".$number."' class='location_button'>"._("Click to see location")." $number</button>";
366 366
         \core\common\Entity::outOfThePotatoes();
367 367
         return $retval;
368 368
     }
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      * @return string
374 374
      */
375 375
     public function bodyTagCode() {
376
-        return "onload='load(" . ($this->readOnly ? "0" : "1") . ")'";
376
+        return "onload='load(".($this->readOnly ? "0" : "1").")'";
377 377
     }
378 378
 
379 379
     /**
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function findLocationHtml() {
385 385
         \core\common\Entity::intoThePotatoes();
386
-        $retval = "<p>" . _("Address:") . " <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>" . _("Find address") . "</button> <button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>";
386
+        $retval = "<p>"._("Address:")." <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>"._("Find address")."</button> <button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>";
387 387
         \core\common\Entity::outOfThePotatoes();
388 388
         return $retval;
389 389
     }
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
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
         $retval = "<div class='sidebar'><p>";
67 67
 
68 68
         if ($advancedControls) {
69
-            $retval .= "<strong>" . _("You are:") . "</strong> ".$_SESSION['name']
69
+            $retval .= "<strong>"._("You are:")."</strong> ".$_SESSION['name']
70 70
             ."<br/>
71 71
               <br/>
72
-              <a href='" . \core\CAT::getRootUrlPath() . "/admin/overview_user.php'>" . _("Go to your Profile page") . "</a> 
73
-              <a href='" . \core\CAT::getRootUrlPath() . "/admin/inc/logout.php'>" . _("Logout") . "</a> ";
72
+              <a href='" . \core\CAT::getRootUrlPath()."/admin/overview_user.php'>"._("Go to your Profile page")."</a> 
73
+              <a href='" . \core\CAT::getRootUrlPath()."/admin/inc/logout.php'>"._("Logout")."</a> ";
74 74
         }
75
-        $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/'>" . _("Start page") . "</a>
75
+        $retval .= "<a href='".\core\CAT::getRootUrlPath()."/'>"._("Start page")."</a>
76 76
             </p>
77 77
         </div> <!-- sidebar -->";
78 78
         \core\common\Entity::outOfThePotatoes();
@@ -96,23 +96,23 @@  discard block
 block discarded – undo
96 96
                     <h1>$cap1</h1>
97 97
                 </div><!--header_captions-->
98 98
                 <div id='langselection' style='padding-top:20px; padding-left:10px;'>
99
-                    <form action='$place' method='GET' accept-charset='UTF-8'>" . _("View this page in") . "&nbsp;
99
+                    <form action='$place' method='GET' accept-charset='UTF-8'>"._("View this page in")."&nbsp;
100 100
                         <select id='lang' name='lang' onchange='this.form.submit()'>";
101 101
 
102 102
         foreach (\config\Main::LANGUAGES as $lang => $getValue) {
103
-            $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $getValue['display'] . "</option> ";
103
+            $retval .= "<option value='$lang' ".(strtoupper($language) == strtoupper($lang) ? "selected" : "")." >".$getValue['display']."</option> ";
104 104
         }
105 105
         $retval .= "</select>";
106 106
 
107 107
         foreach ($_GET as $getVar => $getValue) {
108 108
             $filterValue = filter_input(INPUT_GET, $getVar, FILTER_SANITIZE_STRING);
109 109
             if ($getVar != "lang" && $getValue != "") {
110
-                $retval .= "<input type='hidden' name='" . htmlspecialchars($getVar) . "' value='" . htmlspecialchars($filterValue) . "'>";
110
+                $retval .= "<input type='hidden' name='".htmlspecialchars($getVar)."' value='".htmlspecialchars($filterValue)."'>";
111 111
             }
112 112
         }
113 113
         $retval .= "</form>
114 114
                 </div><!--langselection-->";
115
-        $logoUrl = \core\CAT::getRootUrlPath() . "/resources/images/consortium_logo.png";
115
+        $logoUrl = \core\CAT::getRootUrlPath()."/resources/images/consortium_logo.png";
116 116
         $retval .= "<div class='consortium_logo'>
117 117
                     <img id='test_locate' src='$logoUrl' alt='Consortium Logo'>
118 118
                 </div> <!-- consortium_logo -->
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
         if (isset(\config\Main::APPEARANCE['MOTD']) && \config\Main::APPEARANCE['MOTD'] != "") {
207 207
             $retval .= "<div id='header_MOTD' style='display:inline-block; padding-left:20px;vertical-align:top;'>
208
-              <p class='MOTD'>" . \config\Main::APPEARANCE['MOTD'] . "</p>
208
+              <p class='MOTD'>" . \config\Main::APPEARANCE['MOTD']."</p>
209 209
               </div><!--header_MOTD-->";
210 210
         }
211 211
         $retval .= $this->sidebar($advancedControls);
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
           <html xmlns='http://www.w3.org/1999/xhtml' lang='$ourlocale'>
232 232
           <head lang='$ourlocale'>
233 233
           <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
234
-        $cssUrl = \core\CAT::getRootUrlPath() . "/resources/css/cat.css.php";
234
+        $cssUrl = \core\CAT::getRootUrlPath()."/resources/css/cat.css.php";
235 235
         $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />";
236
-        $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>";
236
+        $retval .= "<title>".htmlspecialchars($pagetitle)."</title>";
237 237
         return $retval;
238 238
     }
239 239
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             // we may need to jump up one dir if we are either in admin/ or accountstatus/
248 248
             // (accountstatus courtesy of my good mood. It's userspace not admin space so
249 249
             // it shouldn't be using this function any more.)
250
-            $logoBase = \core\CAT::getRootUrlPath() . "/resources/images";
250
+            $logoBase = \core\CAT::getRootUrlPath()."/resources/images";
251 251
             return "<span id='logos' style='position:fixed; left:50%;'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/>
252 252
               <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span>
253 253
               <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>";
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
             <table style='width:100%'>
270 270
                 <tr>
271 271
                     <td style='padding-left:20px; padding-right:20px; text-align:left; vertical-align:top;'>
272
-                        " . $cat->catCopyright . "</td>";
272
+                        " . $cat->catCopyright."</td>";
273 273
         if (!empty(\config\Main::APPEARANCE['privacy_notice_url'])) {
274
-            $retval .= "<td><a href='".\config\Main::APPEARANCE['privacy_notice_url']."'>" . sprintf(_("%s Privacy Notice"),\config\ConfAssistant::CONSORTIUM['display_name']) . "</a></td>";
274
+            $retval .= "<td><a href='".\config\Main::APPEARANCE['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), \config\ConfAssistant::CONSORTIUM['display_name'])."</a></td>";
275 275
         }
276 276
         $retval .= "            <td style='padding-left:80px; padding-right:20px; text-align:right; vertical-align:top;'>";
277 277
 
Please login to merge, or discard this patch.
web/lib/user/TextTemplates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 const DOWNLOAD_REDIRECT_CONTINUE = 1054;
49 49
 const SB_GO_AWAY = 1060;
50 50
 const SB_FRONTPAGE_BIGDOWNLOADBUTTON = 1061;
51
-const SB_FRONTPAGE_ROLLER_CUSTOMBUILT= 1062;
51
+const SB_FRONTPAGE_ROLLER_CUSTOMBUILT = 1062;
52 52
 
53 53
 
54 54
 /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $this->templates[WELCOME_ABOARD_BACKTODOWNLOADS] = _("Back to downloads");
88 88
         $this->templates[EDUROAM_WELCOME_ADVERTISING] = sprintf(_("we would like to warmly welcome you among the several million users of %s! From now on, you will be able to use internet access resources on thousands of universities, research centres and other places all over the globe. All of this completely free of charge!"), \config\ConfAssistant::CONSORTIUM['display_name']);
89 89
         $this->templates[HEADING_TOPLEVEL_GREET] = sprintf(_("Welcome to %s"), \config\Main::APPEARANCE['productname']);
90
-        $this->templates[HEADING_TOPLEVEL_PURPOSE] = sprintf(_("Connect your device to %s"),\config\ConfAssistant::CONSORTIUM['display_name']);
90
+        $this->templates[HEADING_TOPLEVEL_PURPOSE] = sprintf(_("Connect your device to %s"), \config\ConfAssistant::CONSORTIUM['display_name']);
91 91
         $this->templates[FRONTPAGE_ROLLER_EASY] = sprintf(_("%s installation made easy:"), \config\ConfAssistant::CONSORTIUM['display_name']);
92 92
         $this->templates[FRONTPAGE_ROLLER_CUSTOMBUILT] = _("Custom built for your organisation");
93 93
         $this->templates[FRONTPAGE_BIGDOWNLOADBUTTON] = sprintf(_("Click here to download your %s installer"), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']);
Please login to merge, or discard this patch.
web/user/faq.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     ],
46 46
     [
47 47
         'title' => sprintf(_("Is it safe to use %s installers?"), \config\Main::APPEARANCE['productname']),
48
-        'text' => sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."), \config\Main::APPEARANCE['productname']) . ' ' . ( isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."), \config\Main::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['signer_name']) : ""),
48
+        'text' => sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."), \config\Main::APPEARANCE['productname']).' '.(isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."), \config\Main::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['signer_name']) : ""),
49 49
     ],
50 50
     [
51 51
         'title' => _("Windows 'SmartScreen' or 'Internet Explorer' tell me that the file is not commonly downloaded and possibly harmful. Should I be concerned?"),
52
-        'text' => _("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.") . " " . (isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."), \config\ConfAssistant::CONSORTIUM['signer_name']) . " " : "") . sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."), "<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>")
52
+        'text' => _("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.")." ".(isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."), \config\ConfAssistant::CONSORTIUM['signer_name'])." " : "").sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."), "<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>")
53 53
     ],
54 54
     [
55 55
         'title' => sprintf(_("I can see %s network and my device is configured but it does not connect, what can be the cause?"), \config\ConfAssistant::CONSORTIUM['display_name']),
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 $consortium = \config\ConfAssistant::CONSORTIUM['display_name'];
69 69
 array_push($Faq,
70 70
         [
71
-            'id' => 'what_is_' . \config\ConfAssistant::CONSORTIUM['name'],
71
+            'id' => 'what_is_'.\config\ConfAssistant::CONSORTIUM['name'],
72 72
             'title' => sprintf(_("What is this %s thing anyway?"), $consortium),
73 73
             'text' => sprintf(_("%s is a global WiFi roaming consortium which gives members of education and research access to the internet <i>for free</i> on all %s hotspots on the planet. There are several million %s users already, enjoying free internet access on more than %d hotspots! Visit <a href='http://www.eduroam.org'>the %s homepage</a> or <a href='http://monitor.eduroam.org/map_service_loc.php'>the %s location map</a> for more details."), $consortium, $consortium, $consortium, $SPs, $consortium, $consortium)
74 74
 ]);
Please login to merge, or discard this patch.
web/user/devel.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-$out = "<h3>" . _("Access the sources") . "</h3>" .
23
-        sprintf(_("%s is an opensource project. If you are interested in the details of the implementation, please visit <a href='%s'>GitHub</a>."), \config\Main::APPEARANCE['productname'], "https://github.com/GEANT/CAT" ) .
24
-        "<h3>" . _("Join the developers mailing list.") . "</h3>" .
25
-        sprintf(_("The list is available at: %s"), \config\Main::APPEARANCE['support-contact']['display']) .
26
-        "<h3>" . _("Add a translation") . "</h3>" .
27
-        _("If you would like to add a new language to CAT then please contact us ...") .
28
-        "<h3><a href='" . \core\CAT::getRootUrlPath() . "/apidoc' target='_blank'>". _("Documentation") . "</a></h3>" ;
22
+$out = "<h3>"._("Access the sources")."</h3>".
23
+        sprintf(_("%s is an opensource project. If you are interested in the details of the implementation, please visit <a href='%s'>GitHub</a>."), \config\Main::APPEARANCE['productname'], "https://github.com/GEANT/CAT").
24
+        "<h3>"._("Join the developers mailing list.")."</h3>".
25
+        sprintf(_("The list is available at: %s"), \config\Main::APPEARANCE['support-contact']['display']).
26
+        "<h3>"._("Add a translation")."</h3>".
27
+        _("If you would like to add a new language to CAT then please contact us ...").
28
+        "<h3><a href='".\core\CAT::getRootUrlPath()."/apidoc' target='_blank'>"._("Documentation")."</a></h3>";
29 29
 
30 30
         
31 31
 
Please login to merge, or discard this patch.
web/user/about_cat.inc.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
 $skinObject = new \web\lib\user\Skinjob("classic");
35 35
 /// eduroam CAT, twice the consortium name eduroam, twice eduroam CAT
36 36
 $out = sprintf(_("<span class='edu_cat'>%s</span> is built as a cooperation platform."))."<p>".
37
-       sprintf(_("Local %s administrators enter their %s configuration details and based on them, <span class='edu_cat'>%s</span> builds customised installers for a number of popular platforms. ".
38
-                 "An installer prepared for one organisation will not work for users of another one, therefore if your organisation is not on the list, you cannot use this system. ".
39
-                 "Please contact your local administrators and try to influence them to add your %s configuration to <span class='edu_cat'>%s</span>."),
37
+        sprintf(_("Local %s administrators enter their %s configuration details and based on them, <span class='edu_cat'>%s</span> builds customised installers for a number of popular platforms. ".
38
+                    "An installer prepared for one organisation will not work for users of another one, therefore if your organisation is not on the list, you cannot use this system. ".
39
+                    "Please contact your local administrators and try to influence them to add your %s configuration to <span class='edu_cat'>%s</span>."),
40 40
         \config\Main::APPEARANCE['productname'],
41 41
         \config\ConfAssistant::CONSORTIUM['display_name'],
42 42
         \config\ConfAssistant::CONSORTIUM['display_name'],
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
         \config\ConfAssistant::CONSORTIUM['display_name'],
43 43
         \config\Main::APPEARANCE['productname'],
44 44
         \config\Main::APPEARANCE['productname']);
45
-$out .= "<p>" . sprintf(_("<span class='edu_cat'>%s</span> currently supports the following devices and EAP type combinations:"), \config\Main::APPEARANCE['productname']) . "</p>";
46
-$out .= "<table><tr><th>" . _("Device Group") . "</th><th>" . _("Device") . "</th>";
45
+$out .= "<p>".sprintf(_("<span class='edu_cat'>%s</span> currently supports the following devices and EAP type combinations:"), \config\Main::APPEARANCE['productname'])."</p>";
46
+$out .= "<table><tr><th>"._("Device Group")."</th><th>"._("Device")."</th>";
47 47
 foreach (\core\common\EAP::listKnownEAPTypes() as $oneeap) {
48
-    $out .= "<th style='min-width: 80px;'>" . $oneeap->getPrintableRep() . "</th>";
48
+    $out .= "<th style='min-width: 80px;'>".$oneeap->getPrintableRep()."</th>";
49 49
 }
50 50
 $out .= "</tr>";
51 51
 foreach (\devices\Devices::listDevices() as $index => $onedevice) {
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
             continue;
55 55
         }
56 56
     }
57
-    $vendor = (new \web\lib\user\Skinjob())->findResourceUrl("IMAGES", "vendorlogo/" . $onedevice['group'] . ".png");
57
+    $vendor = (new \web\lib\user\Skinjob())->findResourceUrl("IMAGES", "vendorlogo/".$onedevice['group'].".png");
58 58
     $vendorImg = "";
59 59
     if ($vendor !== FALSE) {
60 60
         $vendorImg = "<img src='$vendor' alt='logo'>";
61 61
     }
62
-    $out .= "<tr><td class='vendor'>$vendorImg</td><td>" . $onedevice['display'] . "</td>";
62
+    $out .= "<tr><td class='vendor'>$vendorImg</td><td>".$onedevice['display']."</td>";
63 63
     $device_instance = new \core\DeviceFactory($index);
64 64
     foreach (\core\common\EAP::listKnownEAPTypes() as $oneeap) {
65 65
         $out .= "<td>";
Please login to merge, or discard this patch.
web/user/faq.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@  discard block
 block discarded – undo
50 50
 
51 51
 array_push($FAQ, [
52 52
     'title' => sprintf(_("Is it safe to use %s installers?"), \config\Main::APPEARANCE['productname']),
53
-    'text' => sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."), \config\Main::APPEARANCE['productname']) . ' ' . ( isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."), \config\Main::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['signer_name']) : ""),
53
+    'text' => sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."), \config\Main::APPEARANCE['productname']).' '.(isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."), \config\Main::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['signer_name']) : ""),
54 54
 ]);
55 55
 
56 56
 array_push($FAQ, [
57 57
     'title' => _("Windows 'SmartScreen' or 'Internet Explorer' tell me that the file is not commonly downloaded and possibly harmful. Should I be concerned?"),
58
-    'text' => _("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.") . " " . (isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."), \config\ConfAssistant::CONSORTIUM['signer_name']) . " " : "") . sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."), "<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>")
58
+    'text' => _("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.")." ".(isset(\config\ConfAssistant::CONSORTIUM['signer_name']) && \config\ConfAssistant::CONSORTIUM['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."), \config\ConfAssistant::CONSORTIUM['signer_name'])." " : "").sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."), "<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>")
59 59
 ]);
60 60
 
61 61
 if (\config\Main::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == NULL) {
62 62
     $text = sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your organisation and report the problem, the administrators should be able to trace your connections."), \config\ConfAssistant::CONSORTIUM['display_name']);
63 63
 } else {
64 64
     if (\config\Main::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == 'LOCAL') {
65
-        $diagUrl = \config\Main::PATHS['cat_base_url'] . "diag/";
65
+        $diagUrl = \config\Main::PATHS['cat_base_url']."diag/";
66 66
     } else {
67 67
         $diagUrl = \config\Main::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'];
68 68
     }
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
     $tocText = "";
100 100
     $fullText = "";
101 101
     foreach ($FAQ as $faq) {
102
-        $tocText .= '<a href="#toc' . $counter . '">' . $faq['title'] . "</a><br>\n";
103
-        $fullText .= "<dt><a name=toc$counter>" . $faq['title'] . "</a></dt>\n<dd>" . $faq['text'] . "</dd>\n";
102
+        $tocText .= '<a href="#toc'.$counter.'">'.$faq['title']."</a><br>\n";
103
+        $fullText .= "<dt><a name=toc$counter>".$faq['title']."</a></dt>\n<dd>".$faq['text']."</dd>\n";
104 104
         $counter++;
105 105
     }
106 106
     ?>
Please login to merge, or discard this patch.