Test Setup Failed
Push — master ( 7cc6f4...b3d19c )
by Tomasz
07:03 queued 12s
created
web/admin/overview_org.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 } else {
39 39
     $link = 'http://';
40 40
 }
41
-$link .= $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
41
+$link .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
42 42
 $link = htmlspecialchars($link);
43 43
 
44 44
 echo $deco->defaultPagePrelude(sprintf(_("%s: %s Dashboard"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant));
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
                                     <ul style='margin:1px'>
166 166
                                         <?php
167 167
                                         foreach ($completeness as $missing_attrib) {
168
-                                            echo "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
168
+                                            echo "<li>".$uiElements->displayName($missing_attrib)."</li>";
169 169
                                         }
170 170
                                         ?>
171 171
                                     </ul>
172 172
                                 </div>
173 173
                                 <?php
174 174
                             } else {
175
-                                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value']) . "<br/>" . sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
175
+                                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value'])."<br/>".sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
176 176
                             }
177 177
                             ?>
178 178
                             <br/>
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                             if ($readonly === FALSE) {
182 182
                                 ?>
183 183
                                 <form action='edit_silverbullet.php?inst_id=<?php echo $my_inst->identifier; ?>&amp;profile_id=<?php echo $profile_list->identifier; ?>' method='POST'>
184
-                                    <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
184
+                                    <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
185 185
                                 </form>
186 186
                                 <?php
187 187
                             }
@@ -207,21 +207,21 @@  discard block
 block discarded – undo
207 207
                                 $has_overrides = TRUE;
208 208
                             }
209 209
                         }
210
-                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>" . _("<strong>EAP Types</strong> (in order of preference):") . "<br/>";
210
+                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>"._("<strong>EAP Types</strong> (in order of preference):")."<br/>";
211 211
                         $typelist = $profile_list->getEapMethodsinOrderOfPreference();
212 212
                         $allcomplete = TRUE;
213 213
                         foreach ($typelist as $eaptype) {
214 214
                             $buffer_eaptypediv .= $eaptype->getPrintableRep();
215 215
                             $completeness = $profile_list->isEapTypeDefinitionComplete($eaptype);
216 216
                             if ($completeness === true) {
217
-                                $buffer_eaptypediv .= " <div class='acceptable'>" . _("OK") . "</div>";
217
+                                $buffer_eaptypediv .= " <div class='acceptable'>"._("OK")."</div>";
218 218
                             } else {
219 219
                                 $buffer_eaptypediv .= " <div class='notacceptable'>";
220 220
                                 $buffer_eaptypediv .= _("Information needed!");
221 221
                                 if (is_array($completeness)) {
222 222
                                     $buffer_eaptypediv .= "<ul style='margin:1px'>";
223 223
                                     foreach ($completeness as $missing_attrib) {
224
-                                        $buffer_eaptypediv .= "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
224
+                                        $buffer_eaptypediv .= "<li>".$uiElements->displayName($missing_attrib)."</li>";
225 225
                                     }
226 226
                                     $buffer_eaptypediv .= "</ul>";
227 227
                                 }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                             foreach ($attribs as $attrib) {
234 234
                                 if ($attrib['level'] == \core\Options::LEVEL_METHOD && !preg_match("/^internal:/", $attrib['name']) && !$justOnce) {
235 235
                                     $justOnce = TRUE;
236
-                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='" . _("Options on EAP Method/Device level are in effect.") . "'>";
236
+                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='"._("Options on EAP Method/Device level are in effect.")."'>";
237 237
                                 }
238 238
                             }
239 239
                             $buffer_eaptypediv .= "<br/>";
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                                 if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == "LOCAL") {
272 272
                                     $diagUrl = "../diag/";
273 273
                                 } else {
274
-                                    $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] . "/diag/";
274
+                                    $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS']."/diag/";
275 275
                                 }
276 276
                                 ?>
277 277
                                 <form action='<?php echo $diagUrl."action_realmcheck.php?inst_id=".$my_inst->identifier."&profile_id=".$profile_list->identifier ?>' method='post' accept-charset='UTF-8'>
@@ -308,9 +308,9 @@  discard block
 block discarded – undo
308 308
                                 ?>
309 309
                                 <div style='display: flex;'>
310 310
                                     <?php
311
-                                    $idpLevelUrl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier;
312
-                                    $displayurl = $idpLevelUrl . "&amp;profile=" . $profile_list->identifier;
313
-                                    $QRurl = $idpLevelUrl . "&profile=" . $profile_list->identifier;
311
+                                    $idpLevelUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://').$_SERVER['SERVER_NAME'].dirname(dirname($_SERVER['SCRIPT_NAME']))."?idp=".$my_inst->identifier;
312
+                                    $displayurl = $idpLevelUrl."&amp;profile=".$profile_list->identifier;
313
+                                    $QRurl = $idpLevelUrl."&profile=".$profile_list->identifier;
314 314
                                     $qrCode = new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
315 315
                                                 'outputType' => \chillerlan\QRCode\QRCode::OUTPUT_IMAGE_PNG,
316 316
                                                 'eccLevel' => \chillerlan\QRCode\QRCode::ECC_H,
@@ -322,9 +322,9 @@  discard block
 block discarded – undo
322 322
                                     if (empty($rawQr)) {
323 323
                                         throw new Exception("Something went seriously wrong during QR code generation!");
324 324
                                     }
325
-                                    $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
325
+                                    $uri = "data:image/png;base64,".base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
326 326
                                     $size = getimagesize($uri);
327
-                                    echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>";
327
+                                    echo "<img width='".($size[0] / 4)."' height='".($size[1] / 4)."' src='$uri' alt='QR-code'/>";
328 328
 
329 329
                                     //echo "<nobr>$displayurl</nobr></a>";
330 330
                                     echo "<p>$displayurl</p></a>";
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
                     <div>
375 375
                         <input type="hidden" name="consortium" value="eduroam"/>
376 376
                         <button type='submit' <?php echo ($hasMail > 0 ? "" : "disabled"); ?> name='profile_action' value='new'>
377
-                            <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name'] . " " . \core\DeploymentManaged::PRODUCTNAME); ?>
377
+                            <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name']." ".\core\DeploymentManaged::PRODUCTNAME); ?>
378 378
                         </button>
379 379
 
380 380
                     </div>
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     <?php
401 401
     $hotspotProfiles = $my_inst->listDeployments();
402 402
     if (count($hotspotProfiles) == 0) { // no profiles yet.
403
-        echo "<h2>" . sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot) . "</h2>";
403
+        echo "<h2>".sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot)."</h2>";
404 404
     }
405 405
 
406 406
     foreach ($hotspotProfiles as $counter => $deploymentObject) {
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
                     default:
430 430
                         throw new Exception("We are supposed to operate on a roaming consortium we don't know.");
431 431
                 }
432
-                echo $displayname . " (<span style='color:" . ( $deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>" . _("inactive") : "green;'>" . _("active") ) . "</span>)"; ?></h2>
432
+                echo $displayname." (<span style='color:".($deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>"._("inactive") : "green;'>"._("active"))."</span>)"; ?></h2>
433 433
                 <table>
434 434
                     <caption><?php echo _("Deployment Details"); ?></caption>
435 435
                     <tr>
@@ -442,13 +442,13 @@  discard block
 block discarded – undo
442 442
                         <td><strong><?php echo _("Your primary RADIUS server") ?></strong><br/>
443 443
                             <?php
444 444
                             if ($deploymentObject->host1_v4 !== NULL) {
445
-                                echo _("IPv4") . ": " . $deploymentObject->host1_v4;
445
+                                echo _("IPv4").": ".$deploymentObject->host1_v4;
446 446
                             }
447 447
                             if ($deploymentObject->host1_v4 !== NULL && $deploymentObject->host1_v6 !== NULL) {
448 448
                                 echo "<br/>";
449 449
                             }
450 450
                             if ($deploymentObject->host1_v6 !== NULL) {
451
-                                echo _("IPv6") . ": " . $deploymentObject->host1_v6;
451
+                                echo _("IPv6").": ".$deploymentObject->host1_v6;
452 452
                             }
453 453
                             ?>
454 454
                         </td>
@@ -456,9 +456,9 @@  discard block
 block discarded – undo
456 456
                         <td><?php echo $deploymentObject->port1; ?></td>
457 457
                         <td>
458 458
                             <?php
459
-                            echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_1]['icon'] .
460
-                            "' alt='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] .
461
-                            "' title='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . "'>";
459
+                            echo "<img src='".$radiusMessages[$deploymentObject->radius_status_1]['icon'].
460
+                            "' alt='".$radiusMessages[$deploymentObject->radius_status_1]['text'].
461
+                            "' title='".$radiusMessages[$deploymentObject->radius_status_1]['text']."'>";
462 462
                             ?>
463 463
                         </td>
464 464
                     </tr>
@@ -466,22 +466,22 @@  discard block
 block discarded – undo
466 466
                         <td><strong><?php echo _("Your backup RADIUS server") ?><br/></strong>
467 467
                             <?php
468 468
                             if ($deploymentObject->host2_v4 !== NULL) {
469
-                                echo _("IPv4") . ": " . $deploymentObject->host2_v4;
469
+                                echo _("IPv4").": ".$deploymentObject->host2_v4;
470 470
                             }
471 471
                             if ($deploymentObject->host2_v4 !== NULL && $deploymentObject->host2_v6 !== NULL) {
472 472
                                 echo "<br/>";
473 473
                             }
474 474
                             if ($deploymentObject->host2_v6 !== NULL) {
475
-                                echo _("IPv6") . ": " . $deploymentObject->host2_v6;
475
+                                echo _("IPv6").": ".$deploymentObject->host2_v6;
476 476
                             }
477 477
                             ?></td>
478 478
                         <td><?php echo _("RADIUS port number: ") ?></td>
479 479
                         <td><?php echo $deploymentObject->port2; ?></td>
480 480
                         <td>
481 481
                             <?php
482
-                            echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_2]['icon'] .
483
-                            "' alt='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] .
484
-                            "' title='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . "'>";
482
+                            echo "<img src='".$radiusMessages[$deploymentObject->radius_status_2]['icon'].
483
+                            "' alt='".$radiusMessages[$deploymentObject->radius_status_2]['text'].
484
+                            "' title='".$radiusMessages[$deploymentObject->radius_status_2]['text']."'>";
485 485
                             ?>
486 486
                         </td>
487 487
                     </tr>
@@ -533,12 +533,12 @@  discard block
 block discarded – undo
533 533
                                 if (isset($res['FAILURE']) && $res['FAILURE'] > 0) {
534 534
                                     echo '<br>';
535 535
                                     if ($res['FAILURE'] == 2) {
536
-                                        echo ' <span style="color: red;">' . _("Activation failure.") . '</span>';
536
+                                        echo ' <span style="color: red;">'._("Activation failure.").'</span>';
537 537
                                     } else {
538 538
                                         if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
539
-                                            echo ' <span style="color: red;">' . _("Activation failure for your primary RADIUS server.") . '</span>';
539
+                                            echo ' <span style="color: red;">'._("Activation failure for your primary RADIUS server.").'</span>';
540 540
                                         } else {
541
-                                            echo ' <span style="color: red;">' . _("Activation failure for your backup RADIUS server.") . '</span>';
541
+                                            echo ' <span style="color: red;">'._("Activation failure for your backup RADIUS server.").'</span>';
542 542
                                         }
543 543
                                     }
544 544
                                 }
@@ -558,12 +558,12 @@  discard block
 block discarded – undo
558 558
                                 if ($res['FAILURE'] > 0) {
559 559
                                     echo '<br>';
560 560
                                     if ($res['FAILURE'] == 2) {
561
-                                        echo ' <span style="color: red;">' . _("Failure during deactivation, your request is queued for handling") . '</span>';
561
+                                        echo ' <span style="color: red;">'._("Failure during deactivation, your request is queued for handling").'</span>';
562 562
                                     } else {
563 563
                                         if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
564
-                                            echo ' <span style="color: red;">' . _("Deactivation failure for your primary RADIUS server, your request is queued.") . '</span>';
564
+                                            echo ' <span style="color: red;">'._("Deactivation failure for your primary RADIUS server, your request is queued.").'</span>';
565 565
                                         } else {
566
-                                            echo ' <span style="color: red;">' . _("Deactivation failure for your backup RADIUS server, your request is queued.") . '</span>';
566
+                                            echo ' <span style="color: red;">'._("Deactivation failure for your backup RADIUS server, your request is queued.").'</span>';
567 567
                                         }
568 568
                                     }
569 569
                                 }
Please login to merge, or discard this patch.