Passed
Push — master ( 3d7ab7...c6cd3b )
by Maja
07:26
created
core/DeploymentManaged.php 2 patches
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                 $serverCandidates[IdPlist::geoDistance($adminLocation, ['lat' => $iterator->location_lat, 'lon' => $iterator->location_lon])] = $iterator->server_id;
251 251
             }
252 252
             if ($clients > $maxSupportedClients * 0.9) {
253
-                $this->loggerInstance->debug(1, "A RADIUS server for Managed SP (" . $iterator->server_id . ") is serving at more than 90% capacity!");
253
+                $this->loggerInstance->debug(1, "A RADIUS server for Managed SP (".$iterator->server_id.") is serving at more than 90% capacity!");
254 254
             }
255 255
         }
256 256
         if (count($serverCandidates) == 0 && $federation != "DEFAULT") {
@@ -281,28 +281,28 @@  discard block
 block discarded – undo
281 281
             $ourLocation = ['lon' => $geoip['geo']['lon'], 'lat' => $geoip['geo']['lat']];
282 282
         }
283 283
         $inst = new IdP($this->institution);
284
-        $ourserver = $this->findGoodServerLocation($ourLocation, $inst->federation , []);
284
+        $ourserver = $this->findGoodServerLocation($ourLocation, $inst->federation, []);
285 285
         // now, find an unused port in the preferred server
286 286
         $foundFreePort1 = 0;
287 287
         while ($foundFreePort1 == 0) {
288 288
             $portCandidate = random_int(1200, 65535);
289
-            $check = $this->databaseHandle->exec("SELECT port_instance_1 FROM deployment WHERE radius_instance_1 = '" . $ourserver . "' AND port_instance_1 = $portCandidate");
289
+            $check = $this->databaseHandle->exec("SELECT port_instance_1 FROM deployment WHERE radius_instance_1 = '".$ourserver."' AND port_instance_1 = $portCandidate");
290 290
             if (mysqli_num_rows(/** @scrutinizer ignore-type */ $check) == 0) {
291 291
                 $foundFreePort1 = $portCandidate;
292 292
             }
293 293
         }
294
-        $ourSecondServer = $this->findGoodServerLocation($ourLocation, $inst->federation , [$ourserver]);
294
+        $ourSecondServer = $this->findGoodServerLocation($ourLocation, $inst->federation, [$ourserver]);
295 295
         $foundFreePort2 = 0;
296 296
         while ($foundFreePort2 == 0) {
297 297
             $portCandidate = random_int(1200, 65535);
298
-            $check = $this->databaseHandle->exec("SELECT port_instance_2 FROM deployment WHERE radius_instance_2 = '" . $ourSecondServer . "' AND port_instance_2 = $portCandidate");
298
+            $check = $this->databaseHandle->exec("SELECT port_instance_2 FROM deployment WHERE radius_instance_2 = '".$ourSecondServer."' AND port_instance_2 = $portCandidate");
299 299
             if (mysqli_num_rows(/** @scrutinizer ignore-type */ $check) == 0) {
300 300
                 $foundFreePort2 = $portCandidate;
301 301
             }
302 302
         }
303 303
         // and make up a shared secret that is halfways readable
304 304
         $futureSecret = $this->randomString(16, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
305
-        $this->databaseHandle->exec("UPDATE deployment SET radius_instance_1 = '" . $ourserver . "', radius_instance_2 = '" . $ourSecondServer . "', port_instance_1 = $foundFreePort1, port_instance_2 = $foundFreePort2, secret = '$futureSecret' WHERE deployment_id = $this->identifier");
305
+        $this->databaseHandle->exec("UPDATE deployment SET radius_instance_1 = '".$ourserver."', radius_instance_2 = '".$ourSecondServer."', port_instance_1 = $foundFreePort1, port_instance_2 = $foundFreePort2, secret = '$futureSecret' WHERE deployment_id = $this->identifier");
306 306
         return ["port_instance_1" => $foundFreePort1, "port_instance_2" => $foundFreePort2, "secret" => $futureSecret, "radius_instance_1" => $ourserver, "radius_instance_2" => $ourserver];
307 307
     }
308 308
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      * @return void
346 346
      */
347 347
     public function deactivate() {
348
-        $this->databaseHandle->exec("UPDATE deployment SET status = " . DeploymentManaged::INACTIVE . " WHERE deployment_id = $this->identifier");
348
+        $this->databaseHandle->exec("UPDATE deployment SET status = ".DeploymentManaged::INACTIVE." WHERE deployment_id = $this->identifier");
349 349
     }
350 350
 
351 351
     /**
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      * @return void
356 356
      */
357 357
     public function activate() {
358
-        $this->databaseHandle->exec("UPDATE deployment SET status = " . DeploymentManaged::ACTIVE . " WHERE deployment_id = $this->identifier");
358
+        $this->databaseHandle->exec("UPDATE deployment SET status = ".DeploymentManaged::ACTIVE." WHERE deployment_id = $this->identifier");
359 359
     }
360 360
 
361 361
     /**
@@ -404,17 +404,17 @@  discard block
 block discarded – undo
404 404
     public function sendToRADIUS($idx, $post) {
405 405
             
406 406
         $hostname = "radius_hostname_$idx";
407
-        $ch = curl_init( "http://" . $this->$hostname );
407
+        $ch = curl_init("http://".$this->$hostname);
408 408
         if ($ch === FALSE) {
409 409
             $res = 'FAILURE';
410 410
         } else {
411
-            curl_setopt( $ch, CURLOPT_POST, 1);
412
-            curl_setopt( $ch, CURLOPT_POSTFIELDS, $post);
413
-            $this->loggerInstance->debug(1, "Posting to http://" . $this->$hostname . ": $post\n");
414
-            curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
415
-            curl_setopt( $ch, CURLOPT_HEADER, 0);
416
-            curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
417
-            $exec = curl_exec( $ch );
411
+            curl_setopt($ch, CURLOPT_POST, 1);
412
+            curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
413
+            $this->loggerInstance->debug(1, "Posting to http://".$this->$hostname.": $post\n");
414
+            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
415
+            curl_setopt($ch, CURLOPT_HEADER, 0);
416
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
417
+            $exec = curl_exec($ch);
418 418
             if ($exec === FALSE) {
419 419
                 $res = 'FAILURE';
420 420
             } else {
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
             $this->loggerInstance->debug(1, "Response from FR configurator: $res\n");
424 424
             $this->loggerInstance->debug(1, $this);           
425 425
         }
426
-        $this->databaseHandle->exec("UPDATE deployment SET radius_status_$idx = " . ($res == 'OK'? \core\AbstractDeployment::RADIUS_OK : \core\AbstractDeployment::RADIUS_FAILURE) . " WHERE deployment_id = $this->identifier");
426
+        $this->databaseHandle->exec("UPDATE deployment SET radius_status_$idx = ".($res == 'OK' ? \core\AbstractDeployment::RADIUS_OK : \core\AbstractDeployment::RADIUS_FAILURE)." WHERE deployment_id = $this->identifier");
427 427
         return $res;
428 428
     }
429 429
     /**
@@ -437,28 +437,28 @@  discard block
 block discarded – undo
437 437
     private function sendMailtoAdmin($remove, $response) {
438 438
         $txt = '';
439 439
         if ($remove) {
440
-            $txt = _('Profile dectivation failed' . ' ');
440
+            $txt = _('Profile dectivation failed'.' ');
441 441
         } else {
442
-            $txt = _('Profile activation/modification failed' . ' ');
442
+            $txt = _('Profile activation/modification failed'.' ');
443 443
         }
444 444
         if (array_count_values($response)['FAILURE'] == 2) {
445
-            $txt = $txt . _('on both RADIUS servers: primary and backup') . '.';
445
+            $txt = $txt._('on both RADIUS servers: primary and backup').'.';
446 446
         } else {
447 447
             if ($response['res[1]'] == 'FAILURE') {
448
-                $txt = $txt . _('on primary RADIUS server') . '.';
448
+                $txt = $txt._('on primary RADIUS server').'.';
449 449
             } else {
450
-                $txt = $txt . _('on backup RADIUS server') . '.';
450
+                $txt = $txt._('on backup RADIUS server').'.';
451 451
             }
452 452
         }
453 453
         $mail = \core\common\OutsideComm::mailHandle();
454 454
         $email = $this->getAttributes("support:email")[0]['value'];
455
-        $mail->FromName = \config\Master::APPEARANCE['productname'] . " Notification System";
455
+        $mail->FromName = \config\Master::APPEARANCE['productname']." Notification System";
456 456
         $mail->addAddress($email);
457 457
         $mail->Subject = _('RADIUS profile update problem');
458 458
         $mail->Body = $txt;
459 459
 
460 460
         $sent = $mail->send();
461
-        if ( $sent === FALSE)
461
+        if ($sent === FALSE)
462 462
         $this->loggerInstance->debug(1, 'Mailing on RADIUS problem failed');
463 463
     }
464 464
     /**
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      * @param integer $idx server index 1 (primary) or 2 (backup)
468 468
      * @return integer or NULL
469 469
      */
470
-    private function checkURL ($idx) {
470
+    private function checkURL($idx) {
471 471
         $ch = curl_init();
472 472
         if ($ch === FALSE) {
473 473
             return NULL;
@@ -480,11 +480,11 @@  discard block
 block discarded – undo
480 480
             return NULL;
481 481
         }
482 482
         $timeout = 10;
483
-        curl_setopt ( $ch, CURLOPT_URL, 'http://'.$host );
484
-        curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
485
-        curl_setopt ( $ch, CURLOPT_TIMEOUT, $timeout );
483
+        curl_setopt($ch, CURLOPT_URL, 'http://'.$host);
484
+        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
485
+        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
486 486
         curl_exec($ch);
487
-        $http_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
487
+        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
488 488
         if ($http_code == 200) {
489 489
             return 1;
490 490
         }
@@ -516,18 +516,18 @@  discard block
 block discarded – undo
516 516
     public function setRADIUSconfig($remove = 0, $onlyone = 0) {
517 517
         $toPost = array();
518 518
         if ($onlyone) {
519
-            $toPost[$onlyone]  = '';
519
+            $toPost[$onlyone] = '';
520 520
         } else {
521 521
             // run on both servers
522 522
             $toPost[1] = '';
523 523
             $toPost[2] = '';
524 524
         }
525
-        $toPostTemplate = 'instid=' . $this->institution . '&deploymentid=' . $this->identifier . '&secret=' . $this->secret . '&country=' . $this->getAttributes("internal:country")[0]['value'] . '&';
525
+        $toPostTemplate = 'instid='.$this->institution.'&deploymentid='.$this->identifier.'&secret='.$this->secret.'&country='.$this->getAttributes("internal:country")[0]['value'].'&';
526 526
         if ($remove) {
527
-            $toPostTemplate = $toPostTemplate . 'remove=1&';
527
+            $toPostTemplate = $toPostTemplate.'remove=1&';
528 528
         } else {
529 529
             if ($this->getAttributes("managedsp:operatorname")[0]['value'] ?? NULL) {
530
-                $toPostTemplate = $toPostTemplate . 'operatorname=' . $this->getAttributes("managedsp:operatorname")[0]['value'] . '&';
530
+                $toPostTemplate = $toPostTemplate.'operatorname='.$this->getAttributes("managedsp:operatorname")[0]['value'].'&';
531 531
             }
532 532
             if ($this->getAttributes("managedsp:vlan")[0]['value'] ?? NULL) {
533 533
                 $idp = new IdP($this->institution);
@@ -544,25 +544,25 @@  discard block
 block discarded – undo
544 544
                     }
545 545
                 }
546 546
                 if (!empty($allRealms)) {
547
-                    $toPostTemplate = $toPostTemplate . 'vlan=' . $this->getAttributes("managedsp:vlan")[0]['value'] . '&';
548
-                    $toPostTemplate = $toPostTemplate . 'realmforvlan[]=' . implode('&realmforvlan[]=', $allRealms) . '&';
547
+                    $toPostTemplate = $toPostTemplate.'vlan='.$this->getAttributes("managedsp:vlan")[0]['value'].'&';
548
+                    $toPostTemplate = $toPostTemplate.'realmforvlan[]='.implode('&realmforvlan[]=', $allRealms).'&';
549 549
                 }
550 550
             }
551 551
         }
552 552
         foreach (array_keys($toPost) as $key) {
553 553
             if ($key == 1) {
554
-                $toPost[$key] = $toPostTemplate . 'port=' . $this->port1;
554
+                $toPost[$key] = $toPostTemplate.'port='.$this->port1;
555 555
             } else {
556
-                $toPost[$key] = $toPostTemplate . 'port=' . $this->port2;
556
+                $toPost[$key] = $toPostTemplate.'port='.$this->port2;
557 557
             }      
558 558
         }
559 559
         $response = array();
560 560
         foreach ($toPost as $key => $value) {
561
-            $this->loggerInstance->debug(1, 'toPost ' . $toPost[$key] ."\n");
561
+            $this->loggerInstance->debug(1, 'toPost '.$toPost[$key]."\n");
562 562
             $response['res['.$key.']'] = $this->sendToRADIUS($key, $toPost[$key]);
563 563
         }
564 564
         if ($onlyone) {
565
-            $response['res['.($onlyone==1)? 2 : 1 . ']'] = \core\AbstractDeployment::RADIUS_OK;
565
+            $response['res['.($onlyone == 1) ? 2 : 1.']'] = \core\AbstractDeployment::RADIUS_OK;
566 566
         }
567 567
         if (in_array('FAILURE', $response)) {
568 568
             $this->sendMailtoAdmin($remove, $response);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -458,8 +458,9 @@
 block discarded – undo
458 458
         $mail->Body = $txt;
459 459
 
460 460
         $sent = $mail->send();
461
-        if ( $sent === FALSE)
462
-        $this->loggerInstance->debug(1, 'Mailing on RADIUS problem failed');
461
+        if ( $sent === FALSE) {
462
+                $this->loggerInstance->debug(1, 'Mailing on RADIUS problem failed');
463
+        }
463 464
     }
464 465
     /**
465 466
      * check if URL responds with 200
Please login to merge, or discard this patch.
web/admin/overview_sp.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 } else {
39 39
     $link = 'http://';
40 40
 }
41
-$link .= $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
41
+$link .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
42 42
 $link = htmlspecialchars($link);
43 43
 
44 44
 echo $deco->defaultPagePrelude(sprintf(_("%s: %s Dashboard"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureHotspot));
@@ -93,21 +93,21 @@  discard block
 block discarded – undo
93 93
         <?php
94 94
         if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] !== NULL) {
95 95
             echo "<tr>
96
-                        <td>" . _("Check another realm's reachability") . "</td>
96
+                        <td>" . _("Check another realm's reachability")."</td>
97 97
                         <td><form method='post' action='../diag/action_realmcheck.php?inst_id=$my_inst->identifier' accept-charset='UTF-8'>
98 98
                               <input type='text' name='realm' id='realm'>
99 99
                               <input type='hidden' name='comefrom' id='comefrom' value='$link'/>
100
-                              <button type='submit'>" . _("Go!") . "</button>
100
+                              <button type='submit'>"._("Go!")."</button>
101 101
                             </form>
102 102
                         </td>
103 103
                     </tr>";
104 104
         }
105 105
         if (\config\ConfAssistant::CONSORTIUM['name'] == "eduroam") { // SW: APPROVED
106 106
             echo "<tr>
107
-                        <td>" . sprintf(_("Check %s server status"), $uiElements->nomenclatureFed) . "</td>
107
+                        <td>" . sprintf(_("Check %s server status"), $uiElements->nomenclatureFed)."</td>
108 108
                         <td>
109 109
                            <form action='https://monitor.eduroam.org/mon_direct.php' accept-charset='UTF-8'>
110
-                              <button type='submit'>" . _("Go!") . "</button>
110
+                              <button type='submit'>" . _("Go!")."</button>
111 111
                            </form>
112 112
                         </td>
113 113
                     </tr>";
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
     <?php
119 119
     $hotspotProfiles = $my_inst->listDeployments();
120 120
     if (count($hotspotProfiles) == 0) { // no profiles yet.
121
-        echo "<h2>" . sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot) . "</h2>";
121
+        echo "<h2>".sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot)."</h2>";
122 122
     }
123 123
     if (count($hotspotProfiles) > 0) { // no profiles yet.
124
-        echo "<h2>" . sprintf(_("Deployments for this %s"), $uiElements->nomenclatureHotspot) . "</h2>";
124
+        echo "<h2>".sprintf(_("Deployments for this %s"), $uiElements->nomenclatureHotspot)."</h2>";
125 125
         // display an info box with the connection data
126 126
     }
127 127
    
@@ -134,19 +134,19 @@  discard block
 block discarded – undo
134 134
         ?>
135 135
         <div style='display: table-row; margin-bottom: 20px;'>
136 136
             <div class='profilebox' style='display: table-cell;'>
137
-                <h2><?php echo core\DeploymentManaged::PRODUCTNAME . " (<span style='color:" . ( $deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>" . _("inactive") : "green;'>" . _("active") ) . "</span>)"; ?></h2>
137
+                <h2><?php echo core\DeploymentManaged::PRODUCTNAME." (<span style='color:".($deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>"._("inactive") : "green;'>"._("active"))."</span>)"; ?></h2>
138 138
                 <table>
139 139
                     <tr>
140 140
                         <td><strong><?php echo _("Your primary RADIUS server") ?></strong><br/>
141 141
                         <?php
142 142
                             if ($deploymentObject->host1_v4 !== NULL) {
143
-                                echo _("IPv4") . ": " . $deploymentObject->host1_v4;
143
+                                echo _("IPv4").": ".$deploymentObject->host1_v4;
144 144
                             }
145 145
                             if ($deploymentObject->host1_v4 !== NULL && $deploymentObject->host1_v6 !== NULL) {
146 146
                                 echo "<br/>";
147 147
                             }
148 148
                             if ($deploymentObject->host1_v6 !== NULL) {
149
-                                echo _("IPv6") . ": " . $deploymentObject->host1_v6;
149
+                                echo _("IPv6").": ".$deploymentObject->host1_v6;
150 150
                             }
151 151
                             ?>
152 152
                         </td>
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
                         <td><?php echo $deploymentObject->port1; ?></td>
155 155
                         <td>
156 156
                             <?php
157
-                                echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_1]['icon'] . 
158
-                                     "' alt='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . 
159
-                                     "' title='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . "'>";
157
+                                echo "<img src='".$radiusMessages[$deploymentObject->radius_status_1]['icon']. 
158
+                                     "' alt='".$radiusMessages[$deploymentObject->radius_status_1]['text']. 
159
+                                     "' title='".$radiusMessages[$deploymentObject->radius_status_1]['text']."'>";
160 160
                             ?>
161 161
                         </td>
162 162
                     </tr>
@@ -164,22 +164,22 @@  discard block
 block discarded – undo
164 164
                         <td><strong><?php echo _("Your backup RADIUS server") ?><br/></strong>
165 165
                             <?php
166 166
                             if ($deploymentObject->host2_v4 !== NULL) {
167
-                                echo _("IPv4") . ": " . $deploymentObject->host2_v4;
167
+                                echo _("IPv4").": ".$deploymentObject->host2_v4;
168 168
                             }
169 169
                             if ($deploymentObject->host2_v4 !== NULL && $deploymentObject->host2_v6 !== NULL) {
170 170
                                 echo "<br/>";
171 171
                             }
172 172
                             if ($deploymentObject->host2_v6 !== NULL) {
173
-                                echo _("IPv6") . ": " . $deploymentObject->host2_v6;
173
+                                echo _("IPv6").": ".$deploymentObject->host2_v6;
174 174
                             }
175 175
                             ?></td>
176 176
                         <td><?php echo _("RADIUS port number: ") ?></td>
177 177
                         <td><?php echo $deploymentObject->port2; ?></td>
178 178
                         <td>
179 179
                             <?php
180
-                                echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_2]['icon'] .
181
-                                     "' alt='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . 
182
-                                     "' title='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . "'>";
180
+                                echo "<img src='".$radiusMessages[$deploymentObject->radius_status_2]['icon'].
181
+                                     "' alt='".$radiusMessages[$deploymentObject->radius_status_2]['text']. 
182
+                                     "' title='".$radiusMessages[$deploymentObject->radius_status_2]['text']."'>";
183 183
                             ?>
184 184
                         </td>
185 185
                     </tr>
@@ -230,12 +230,12 @@  discard block
 block discarded – undo
230 230
                                     if (isset($res['FAILURE']) && $res['FAILURE'] > 0) {
231 231
                                         echo '<br>';
232 232
                                         if ($res['FAILURE'] == 2) {
233
-                                            echo ' <span style="color: red;">' . _("Activation failure.") . '</span>';
233
+                                            echo ' <span style="color: red;">'._("Activation failure.").'</span>';
234 234
                                         } else {
235 235
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
236
-                                                echo ' <span style="color: red;">' . _("Activation failure for your primary RADIUS server.") . '</span>';
236
+                                                echo ' <span style="color: red;">'._("Activation failure for your primary RADIUS server.").'</span>';
237 237
                                             } else {
238
-                                                echo ' <span style="color: red;">' . _("Activation failure for your backup RADIUS server.") . '</span>';
238
+                                                echo ' <span style="color: red;">'._("Activation failure for your backup RADIUS server.").'</span>';
239 239
                                             }
240 240
                                         }
241 241
                                     }
@@ -255,12 +255,12 @@  discard block
 block discarded – undo
255 255
                                     if ($res['FAILURE'] > 0) {
256 256
                                         echo '<br>';
257 257
                                         if ($res['FAILURE'] == 2) {
258
-                                            echo ' <span style="color: red;">' . _("Failure during deactivation, your request is queued for handling") . '</span>';
258
+                                            echo ' <span style="color: red;">'._("Failure during deactivation, your request is queued for handling").'</span>';
259 259
                                         } else {
260 260
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
261
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your primary RADIUS server, your request is queued.") . '</span>';
261
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your primary RADIUS server, your request is queued.").'</span>';
262 262
                                             } else {
263
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your backup RADIUS server, your request is queued.") . '</span>';
263
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your backup RADIUS server, your request is queued.").'</span>';
264 264
                                             }
265 265
                                         }
266 266
                                     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                                 foreach ($retry as $key => $value) {
280 280
                                     if ($value == 1) {
281 281
                                     ?>
282
-                                    <input type="hidden" name='update[]' value='<?php echo $key;?>'>
282
+                                    <input type="hidden" name='update[]' value='<?php echo $key; ?>'>
283 283
                                     <?php
284 284
                                     }
285 285
                                 }
Please login to merge, or discard this patch.