Passed
Push — master ( b32147...6275ed )
by Maja
06:20
created
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
-                $Tou['short'] . "
53
+<div id='tou_1'>" . $Tou['subtitle'].
54
+                $Tou['short']."
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'>" .
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.
core/UserNetAPI.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $returnArray = [];
66 66
         $returnArray['status'] = $status;
67 67
         $returnArray['data'] = $data;
68
-        $returnArray['tou'] = "Please consult Terms of Use at: //" . $host . \core\CAT::getRootUrlPath() . "/tou.php";
68
+        $returnArray['tou'] = "Please consult Terms of Use at: //".$host.\core\CAT::getRootUrlPath()."/tou.php";
69 69
         if (!empty($otherData)) {
70 70
             $returnArray['otherdata'] = $otherData;
71 71
         }
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function sendLogo($identifier, $type, $width, $height) {
296 296
         $logo = $this->getLogo($identifier, $type, $width, $height);
297
-        $blob = $logo === NULL ? file_get_contents(ROOT . '/web/resources/images/empty.png') : $logo['blob'];
298
-        header("Content-type: " . $logo['filetype']);
297
+        $blob = $logo === NULL ? file_get_contents(ROOT.'/web/resources/images/empty.png') : $logo['blob'];
298
+        header("Content-type: ".$logo['filetype']);
299 299
         header("Cache-Control:max-age=36000, must-revalidate");
300 300
         header($logo['expires']);
301 301
         echo $blob;
Please login to merge, or discard this patch.
devices/ms/DeviceW8W10.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 $delProfiles[] = $ssid;
85 85
             }
86 86
             if ($cipher == 'TKIP') {
87
-                $delProfiles[] = $ssid . ' (TKIP)';
87
+                $delProfiles[] = $ssid.' (TKIP)';
88 88
             }
89 89
         }
90 90
         $windowsProfile = [];
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
         $iterator = 0;
93 93
         foreach ($allSSID as $ssid => $cipher) {
94 94
             if ($cipher == 'TKIP') {
95
-                $windowsProfile[$iterator] = $this->writeWLANprofile($ssid . ' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
95
+                $windowsProfile[$iterator] = $this->writeWLANprofile($ssid.' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator);
96 96
                 $iterator++;
97 97
             }
98 98
             $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator);
99 99
             $iterator++;
100 100
         }
101
-        if (($this->device_id !== 'w8') && (count($this->attributes['internal:consortia']) > 0 )) {
101
+        if (($this->device_id !== 'w8') && (count($this->attributes['internal:consortia']) > 0)) {
102 102
             // this SSID name is later used in common.inc so if you decide to chage it here change it there as well
103 103
             $ssid = 'cat-passpoint-profile';
104 104
             $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator, TRUE);
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
             $retval .= $this->attributes['internal:realm'][0];
158 158
         }
159 159
         $retval .= '</DomainName>';
160
-        $retval .= '<RoamingConsortium><OUI>' .
161
-                implode('</OUI><OUI>', $this->attributes['internal:consortia']) .
160
+        $retval .= '<RoamingConsortium><OUI>'.
161
+                implode('</OUI><OUI>', $this->attributes['internal:consortia']).
162 162
                 '</OUI></RoamingConsortium>';
163 163
         $retval .= '</Hotspot2>';
164 164
         return $retval;
@@ -174,11 +174,11 @@  discard block
 block discarded – undo
174 174
         $profileFileCont = '<EAPConfig><EapHostConfig xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
175 175
 <EapMethod>
176 176
 ';
177
-        $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">' .
178
-                $this->selectedEap["OUTER"] . '</Type>
177
+        $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">'.
178
+                $this->selectedEap["OUTER"].'</Type>
179 179
 <VendorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorId>
180 180
 <VendorType xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorType>
181
-<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId . '</AuthorId>
181
+<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId.'</AuthorId>
182 182
 </EapMethod>
183 183
 ';
184 184
         return $profileFileCont;
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
 <eapTls:ServerValidation>
195 195
 <eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
196 196
 ';
197
-        $profileFileCont .= '<eapTls:ServerNames>' . $this->servers . '</eapTls:ServerNames>';
197
+        $profileFileCont .= '<eapTls:ServerNames>'.$this->servers.'</eapTls:ServerNames>';
198 198
         foreach ($this->caArray as $certAuthority) {
199 199
             if ($certAuthority['root']) {
200
-                $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
200
+                $profileFileCont .= "<eapTls:TrustedRootCA>".$certAuthority['sha1']."</eapTls:TrustedRootCA>\n";
201 201
             }
202 202
         }
203 203
         $profileFileCont .= '</eapTls:ServerValidation>
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
         $profileFileCont = '
216 216
         <ServerValidation>
217 217
 ';
218
-        $profileFileCont .= '<ServerNames>' . $this->servers . '</ServerNames> ';
218
+        $profileFileCont .= '<ServerNames>'.$this->servers.'</ServerNames> ';
219 219
         foreach ($this->caArray as $certAuthority) {
220 220
             if ($certAuthority['root']) {
221
-                $profileFileCont .= "<TrustedRootCAHash>" . chunk_split($certAuthority['sha1'], 2, ' ') . "</TrustedRootCAHash>\n";
221
+                $profileFileCont .= "<TrustedRootCAHash>".chunk_split($certAuthority['sha1'], 2, ' ')."</TrustedRootCAHash>\n";
222 222
             }
223 223
         }
224 224
         $profileFileCont .= '<DisablePrompt>true</DisablePrompt>
@@ -261,10 +261,10 @@  discard block
 block discarded – undo
261 261
         $profileFileCont = '
262 262
         <ServerValidation>
263 263
 <DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation>
264
-<ServerNames>' . $this->servers . '</ServerNames>';
264
+<ServerNames>' . $this->servers.'</ServerNames>';
265 265
         foreach ($this->caArray as $certAuthority) {
266 266
             if ($certAuthority['root']) {
267
-                $profileFileCont .= "<TrustedRootCA>" . $certAuthority['sha1'] . "</TrustedRootCA>\n";
267
+                $profileFileCont .= "<TrustedRootCA>".$certAuthority['sha1']."</TrustedRootCA>\n";
268 268
             }
269 269
         }
270 270
         $profileFileCont .= '</ServerValidation>
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         if ($this->useAnon) {
331 331
             $profileFileCont .= '<IdentityPrivacy>true</IdentityPrivacy>
332 332
 ';
333
-            $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>
333
+            $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity>
334 334
                 ';
335 335
         } else {
336 336
             $profileFileCont .= '<IdentityPrivacy>false</IdentityPrivacy>
@@ -352,10 +352,10 @@  discard block
 block discarded – undo
352 352
         $profileFileCont = '
353 353
 <Config xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
354 354
 <EAPIdentityProviderList xmlns="urn:ietf:params:xml:ns:yang:ietf-eap-metadata">
355
-<EAPIdentityProvider ID="' . $this->deviceUUID . '" namespace="urn:UUID">
355
+<EAPIdentityProvider ID="' . $this->deviceUUID.'" namespace="urn:UUID">
356 356
 
357 357
 <ProviderInfo>
358
-<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage) . '</DisplayName>
358
+<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage).'</DisplayName>
359 359
 </ProviderInfo>
360 360
 <AuthenticationMethods>
361 361
 <AuthenticationMethod>
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
             if ($this->outerUser == '') {
368 368
                 $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>';
369 369
             } else {
370
-                $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>';
370
+                $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity>';
371 371
             }
372 372
         }
373 373
         $profileFileCont .= '</ClientSideCredential>
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         $profileFileCont .= $this->glTtlsServerValidation();
376 376
         $profileFileCont .= '
377 377
 <InnerAuthenticationMethod>
378
-<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'] . '</NonEAPAuthMethod>
378
+<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'].'</NonEAPAuthMethod>
379 379
 </InnerAuthenticationMethod>
380 380
 <VendorSpecific>
381 381
 <SessionResumption>false</SessionResumption>
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 <UseWinLogonCredentials>false</UseWinLogonCredentials>
412 412
 </EapType>
413 413
 </Eap>
414
-<EnableQuarantineChecks>' . $nea . '</EnableQuarantineChecks>
414
+<EnableQuarantineChecks>' . $nea.'</EnableQuarantineChecks>
415 415
 <RequireCryptoBinding>false</RequireCryptoBinding>
416 416
 ';
417 417
         if ($this->useAnon) {
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
                 $profileFileCont .= '<AnonymousUserName/>
424 424
 ';
425 425
             } else {
426
-                $profileFileCont .= '<AnonymousUserName>' . $this->outerUser . '</AnonymousUserName>
426
+                $profileFileCont .= '<AnonymousUserName>'.$this->outerUser.'</AnonymousUserName>
427 427
                 ';
428 428
             }
429 429
             $profileFileCont .= '</IdentityPrivacy>
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     private function prepareEapConfig() {
473 473
         if ($this->useAnon) {
474 474
             $this->outerUser = $this->attributes['internal:anon_local_value'][0];
475
-            $this->outerId = $this->outerUser . '@' . $this->attributes['internal:realm'][0];
475
+            $this->outerId = $this->outerUser.'@'.$this->attributes['internal:realm'][0];
476 476
         }
477 477
 
478 478
         $profileFileCont = $this->eapConfigHeader();
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
             default:
498 498
                 break;
499 499
         }
500
-        return ['win' => $profileFileCont . '</EapHostConfig></EAPConfig>'];
500
+        return ['win' => $profileFileCont.'</EapHostConfig></EAPConfig>'];
501 501
     }
502 502
 
503 503
     /**
@@ -514,10 +514,10 @@  discard block
 block discarded – undo
514 514
     private function writeWLANprofile($wlanProfileName, $ssid, $auth, $encryption, $eapConfig, $profileNumber, $hs20 = FALSE) {
515 515
         $profileFileCont = '<?xml version="1.0"?>
516 516
 <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
517
-<name>' . $wlanProfileName . '</name>
517
+<name>' . $wlanProfileName.'</name>
518 518
 <SSIDConfig>
519 519
 <SSID>
520
-<name>' . $ssid . '</name>
520
+<name>' . $ssid.'</name>
521 521
 </SSID>
522 522
 <nonBroadcast>true</nonBroadcast>
523 523
 </SSIDConfig>';
@@ -531,8 +531,8 @@  discard block
 block discarded – undo
531 531
 <MSM>
532 532
 <security>
533 533
 <authEncryption>
534
-<authentication>' . $auth . '</authentication>
535
-<encryption>' . $encryption . '</encryption>
534
+<authentication>' . $auth.'</authentication>
535
+<encryption>' . $encryption.'</encryption>
536 536
 <useOneX>true</useOneX>
537 537
 </authEncryption>
538 538
 ';
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
             mkdir('w8');
560 560
         }
561 561
         $xmlFname = "w8/wlan_prof-$profileNumber.xml";
562
-        file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing);
562
+        file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing);
563 563
         $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n");
564 564
         return("\"$wlanProfileName\" \"$encryption\"");
565 565
     }
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
             mkdir('w8');
593 593
         }
594 594
         $xmlFname = "w8/lan_prof.xml";
595
-        file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing);
595
+        file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing);
596 596
         $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n");
597 597
     }
598 598
 
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
         }
622 622
         foreach ($caArray as $certAuthority) {
623 623
             $store = $certAuthority['root'] ? "root" : "ca";
624
-            $fcontentsCerts .= '!insertmacro install_ca_cert "' . $certAuthority['file'] . '" "' . $certAuthority['sha1'] . '" "' . $store . "\"\n";
624
+            $fcontentsCerts .= '!insertmacro install_ca_cert "'.$certAuthority['file'].'" "'.$certAuthority['sha1'].'" "'.$store."\"\n";
625 625
         }
626 626
         fwrite($fileHandleCerts, $fcontentsCerts);
627 627
         fclose($fileHandleCerts);
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
     private function writeMainNSH($eap, $attr) {
639 639
         $this->loggerInstance->debug(4, "writeMainNSH");
640 640
         $this->loggerInstance->debug(4, $attr);
641
-        $this->loggerInstance->debug(4, "Device_id = " . $this->device_id . "\n");
641
+        $this->loggerInstance->debug(4, "Device_id = ".$this->device_id."\n");
642 642
         $fcontents = "!define W8\n";
643 643
         if ($this->device_id == 'w10') {
644 644
             $fcontents .= "!define W10\n";
@@ -668,8 +668,8 @@  discard block
 block discarded – undo
668 668
         if ($eap == \core\common\EAP::EAPTYPE_SILVERBULLET) {
669 669
             $fcontents .= "!define SILVERBULLET\n";
670 670
         }
671
-        $fcontents .= '!define ' . $eapStr;
672
-        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
671
+        $fcontents .= '!define '.$eapStr;
672
+        $fcontents .= "\n".'!define EXECLEVEL "'.$execLevel.'"';
673 673
         $fcontents .= $this->writeNsisDefines($attr);
674 674
         file_put_contents('main.nsh', $fcontents);
675 675
     }
Please login to merge, or discard this patch.
web/diag/processSociopath.php 1 patch
Spacing   +2 added lines, -2 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
 \core\CAT::sessionStart();
24 24
 $loggerInstance = new \core\common\Logging();
25 25
 $loggerInstance->debug(4, "Sociopath test\n");
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         return NULL;
34 34
     }
35 35
     $loggerInstance->debug(4, $_SESSION['EVIDENCE']['QUESTIONSASKED']);
36
-    $loggerInstance->debug(4, "\nAnswer question " . $QNUM . "\n");
36
+    $loggerInstance->debug(4, "\nAnswer question ".$QNUM."\n");
37 37
     switch ($answer) {
38 38
         case 1:
39 39
             $loggerInstance->debug(4, "Revaluate with FALSE");
Please login to merge, or discard this patch.
web/diag/magicTelepath.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 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
 $realm = filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING);
24
-$visited = filter_input(INPUT_GET,'visited', FILTER_SANITIZE_STRING);
25
-$nro = filter_input(INPUT_GET,'nro', FILTER_SANITIZE_STRING);
24
+$visited = filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING);
25
+$nro = filter_input(INPUT_GET, 'nro', FILTER_SANITIZE_STRING);
26 26
 \core\CAT::sessionStart();
27 27
 $languageObject = new core\common\Language();
28 28
 $languageObject->setTextDomain("diagonstics");
Please login to merge, or discard this patch.
web/admin/inc/option_xhr.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 
24 24
 \core\CAT::sessionStart();
25 25
 
Please login to merge, or discard this patch.
web/user/remindIdP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 \core\CAT::sessionStart();
25 25
 
Please login to merge, or discard this patch.
web/lib/admin/MapOpenLayers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         
84 84
 // use HTML5 geolocation
85 85
         function locateMe() {
86
-            $('#address').val(\"" . _("locating") . "\");
86
+            $('#address').val(\"" . _("locating")."\");
87 87
             navigator.geolocation.getCurrentPosition(locate_succes,locate_fail,{maximumAge:3600000, timeout:5000});
88 88
         }
89 89
         
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 view.fit(extent, {padding: [10, 0, 10, 0]});
206 206
             } else {
207 207
                 view.setCenter([0,0]);
208
-                locate_country('" . $cat->knownFederations[strtoupper($this->fedName)] . "'); // use the federation code to locate the country
208
+                locate_country('" . $cat->knownFederations[strtoupper($this->fedName)]."'); // use the federation code to locate the country
209 209
                 map.setView(view);
210 210
             }
211 211
             view.setMaxZoom(20);
@@ -227,14 +227,14 @@  discard block
 block discarded – undo
227 227
         function getAddressLocation() {
228 228
             var city = $('#address').val();
229 229
             if(city == '') {
230
-                alert(\"" . _("nothing entered in the address field") . "\");
230
+                alert(\"" . _("nothing entered in the address field")."\");
231 231
                 return false;
232 232
             }
233 233
             city = city.replace(/\s*,\s*/g,',+');
234 234
             city = city.replace(/ +/,'+');
235 235
             $.get(addressService+'?format=json&addressdetails=0&q='+city, '',  function(data) {
236 236
                 if (data[0] === undefined) {
237
-                    alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.") . "');
237
+                    alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.")."');
238 238
                     return;
239 239
                 }
240 240
                 showTmpPointer(data[0].lon, data[0].lat);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         if ($this->readOnly) {
286 286
             return "<div id='map' class='locationmap'></div><script>generateMap('map')</script>";
287 287
         } else {
288
-            return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . "<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>" . $this->htmlPostEdit(FALSE);
288
+            return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml()."<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>".$this->htmlPostEdit(FALSE);
289 289
         }
290 290
     }
291 291
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         // we don't need this parameter in this subclass
311 311
         unset($coords);
312 312
         \core\common\Entity::intoThePotatoes();
313
-        $retval = "<button id='location_b_" . $number . "' class='location_button'>" . _("Click to see location") . " $number</button>";
313
+        $retval = "<button id='location_b_".$number."' class='location_button'>"._("Click to see location")." $number</button>";
314 314
         \core\common\Entity::outOfThePotatoes();
315 315
         return $retval;
316 316
     }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     private function findLocationHtml() {
324 324
         \core\common\Entity::intoThePotatoes();
325
-        $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>";
325
+        $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>";
326 326
         \core\common\Entity::outOfThePotatoes();
327 327
         return $retval;
328 328
     }
Please login to merge, or discard this patch.
web/lib/admin/MapNone.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function htmlShowtime($wizard = FALSE, $additional = FALSE) {
83 83
         if (!$this->readOnly) {
84 84
  //           return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE);
85
-            return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . $this->htmlPostEdit(TRUE);
85
+            return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml().$this->htmlPostEdit(TRUE);
86 86
         }
87 87
     }
88 88
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         // quiesce warnings about unused parameter
107 107
         sprintf("%d", $number);
108 108
         $pair = json_decode($coords, true);
109
-        return "<table><tr><td>Latitude</td><td><strong>" . $pair['lat'] . "</strong></td></tr><tr><td>Longitude</td><td><strong>" . $pair['lon'] . "</strong></td></tr></table>";
109
+        return "<table><tr><td>Latitude</td><td><strong>".$pair['lat']."</strong></td></tr><tr><td>Longitude</td><td><strong>".$pair['lon']."</strong></td></tr></table>";
110 110
     }
111 111
     
112 112
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     private function findLocationHtml() {
118 118
         \core\common\Entity::intoThePotatoes();
119
-        $retval = "<button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>";
119
+        $retval = "<button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>";
120 120
         \core\common\Entity::outOfThePotatoes();
121 121
         return $retval;
122 122
     }
Please login to merge, or discard this patch.