@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | <?php |
| 110 | 110 | foreach ($cat->printCountryList(1) as $country => $name) { |
| 111 | 111 | $selected = ''; |
| 112 | - if ($country == strtoupper($fed_id) ) { |
|
| 112 | + if ($country == strtoupper($fed_id)) { |
|
| 113 | 113 | $selected = 'selected'; |
| 114 | 114 | } |
| 115 | 115 | echo "<option value='$country' $selected>$name</option>\n"; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | ?> |
| 183 | 183 | </table> |
| 184 | 184 | </div> |
| 185 | - <?php if(\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { ?> |
|
| 185 | + <?php if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { ?> |
|
| 186 | 186 | <div class='infobox'> |
| 187 | 187 | <h2> |
| 188 | 188 | <?php $tablecaption3 = sprintf(_("%s Statistics: %s"), $uiElements->nomenclatureFed, $thefed->name); echo $tablecaption3; ?> |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | ?> |
| 329 | 329 | <tr> |
| 330 | 330 | <th scope='col'><?php echo sprintf(_("%s Name"), $uiElements->nomenclatureParticipant); ?></th> |
| 331 | - <?php if(\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { ?> |
|
| 331 | + <?php if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { ?> |
|
| 332 | 332 | <th scope='col'><?php echo _("Status") ?></th> |
| 333 | 333 | <th scope='col'><?php echo $OpenRoamingSymbol ?></th> |
| 334 | 334 | <th scope='col'><?php echo _("Cert"); ?></th> |
@@ -351,14 +351,14 @@ discard block |
||
| 351 | 351 | <?php |
| 352 | 352 | /// nomenclature for 'federation', federation name, nomenclature for 'inst' |
| 353 | 353 | echo "<tbody class='fedlist'>"; |
| 354 | - echo "<tr><td colspan='1'><strong>". _("Quick search:")." </strong><input style='background:#eeeeee;' type='text' id='qsearch_".$fedId."'></td>"; |
|
| 355 | - if(\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { |
|
| 354 | + echo "<tr><td colspan='1'><strong>"._("Quick search:")." </strong><input style='background:#eeeeee;' type='text' id='qsearch_".$fedId."'></td>"; |
|
| 355 | + if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { |
|
| 356 | 356 | echo "<td style='border-bottom-style: dotted;border-bottom-width: 1px;'><input type='checkbox' name='profilecheck' id='profile_ck_".$fedId."'></td>"; |
| 357 | 357 | echo "<td style='border-bottom-style: dotted;border-bottom-width: 1px;'><input type='checkbox' name='orcheck' id='or_ck_".$fedId."'></td>"; |
| 358 | 358 | echo "<td style='border-bottom-style: dotted;border-bottom-width: 1px;'><input type='checkbox' name='brokencert' id='brokencert_ck_".$fedId."'></td>"; |
| 359 | 359 | } |
| 360 | 360 | echo "<td style='border-bottom-style: dotted;border-bottom-width: 1px;'><input type='checkbox' name='unlinked' id='unlinked_ck_".$fedId."'></td>"; |
| 361 | - if($hideWarnings) { |
|
| 361 | + if ($hideWarnings) { |
|
| 362 | 362 | $adminCheckbox = ' '; |
| 363 | 363 | } else { |
| 364 | 364 | $adminCheckbox = "<input type='checkbox' name='adminproblem' id='adminproblem_ck_".$fedId."'>"; |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | |
| 468 | 468 | $adminClass = 'adminok'; |
| 469 | 469 | $adminIcon = '<span style="padding-left:20px"></span>'; |
| 470 | - if(!$hideWarnings) { |
|
| 470 | + if (!$hideWarnings) { |
|
| 471 | 471 | if (!isset($thefed->adminLogins[$index])) { |
| 472 | 472 | $adminIcon = $uiElements->catIcon($uiElements->iconData('ADMINS_MISSING')); |
| 473 | 473 | $adminClass = 'adminproblem'; |
@@ -495,18 +495,18 @@ discard block |
||
| 495 | 495 | <input type='hidden' name='inst' value='" |
| 496 | 496 | . $index."'>" |
| 497 | 497 | . "<span style='display:none' class='inst_name'>".$my_idp."</span>" |
| 498 | - . "<span>". $idp_instance->name."</span>" |
|
| 498 | + . "<span>".$idp_instance->name."</span>" |
|
| 499 | 499 | . " (<a href='overview_org.php?inst_id=" |
| 500 | 500 | . $idp_instance->identifier."'>" |
| 501 | 501 | . (in_array($index, $userIdps) ? _("manage") : _("view")) |
| 502 | 502 | . "</a>)" |
| 503 | - . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>" ) |
|
| 503 | + . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>") |
|
| 504 | 504 | . implode("</li><li>", $listOfSilverbulletRealms) |
| 505 | - . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>" ) |
|
| 505 | + . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>") |
|
| 506 | 506 | . "</td>"; |
| 507 | 507 | // deployment status; need to dive into profiles for this |
| 508 | 508 | // show happy eyeballs if at least one profile is configured/showtime |
| 509 | - if(\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { |
|
| 509 | + if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] !== 'MSP') { |
|
| 510 | 510 | echo "<td>$profileIcon</td>"; |
| 511 | 511 | echo "<td style='text-align: center'>$orIcon</td>"; |
| 512 | 512 | echo "<td>$certIcon</td>"; |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | if ($readonly === FALSE) { |
| 529 | 529 | echo "<div style='white-space: nowrap;'> |
| 530 | 530 | <form method='post' action='inc/manageAdmins.inc.php?inst_id=".$index."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 531 | - <button type='submit' style='vertical-align:middle'>" .$adminIcon." " . |
|
| 531 | + <button type='submit' style='vertical-align:middle'>" .$adminIcon." ". |
|
| 532 | 532 | _("Add/Remove Administrators")." |
| 533 | 533 | </button> |
| 534 | 534 | </form> |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | if (\config\Master::MAILSETTINGS['notify_nro']) { |
| 375 | 375 | foreach ($admins as $id) { |
| 376 | 376 | $user = new User($id); |
| 377 | - /// organisation |
|
| 377 | + /// organisation |
|
| 378 | 378 | $retval = $user->sendMailToUser(sprintf(_("%s in your federation was created"), common\Entity::$nomenclature_participant), $message); |
| 379 | 379 | if ($retval === FALSE) { |
| 380 | 380 | $this->loggerInstance->debug(2, "Mail to federation admin was NOT sent!\n"); |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | $newReq = new CertificationAuthorityEduPkiServer(); |
| 442 | 442 | $reqserial = $newReq->sendRequestToCa($csr, $revocationPin, $expiryDays); |
| 443 | 443 | if ($reqserial > 0) { |
| 444 | - $this->loggerInstance->writeAudit($user, "NEW", "Certificate request - NRO: ".$this->tld." - serial: ".$reqserial." - subject: ".$csr['SUBJECT']); |
|
| 444 | + $this->loggerInstance->writeAudit($user, "NEW", "Certificate request - NRO: ".$this->tld." - serial: ".$reqserial." - subject: ".$csr['SUBJECT']); |
|
| 445 | 445 | $reqQuery = "INSERT INTO federation_servercerts " |
| 446 | 446 | ."(federation_id, ca_name, request_serial, distinguished_name, status, revocation_pin) " |
| 447 | 447 | ."VALUES (?, 'eduPKI', ?, ?, 'REQUESTED', ?)"; |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | $result = $this->databaseHandle->exec($query); |
| 502 | 502 | $rows = $result->fetch_all(); |
| 503 | 503 | foreach ($rows as $row) { |
| 504 | - $activeProfiles[] = $row[0]; |
|
| 504 | + $activeProfiles[] = $row[0]; |
|
| 505 | 505 | } |
| 506 | 506 | $query = "SELECT institution.inst_id AS inst_id, profile.profile_id AS profile_id, profile_option.option_value AS cert FROM profile_option JOIN profile ON profile_option.profile_id=profile.profile_id JOIN institution ON profile.inst_id=institution.inst_id WHERE profile_option.option_name='eap:ca_file' and institution.country='".$this->tld."'"; |
| 507 | 507 | $result = $this->databaseHandle->exec($query); |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | 'country' => strtoupper($idp->federation), |
| 587 | 587 | 'instance' => $idp, |
| 588 | 588 | 'realms' => $idpQuery->realms] |
| 589 | - ; |
|
| 589 | + ; |
|
| 590 | 590 | $returnarray[$idp->identifier] = $idpInfo; |
| 591 | 591 | } |
| 592 | 592 | if ($activeOnly != 0) { // we're only doing this once. |
@@ -728,8 +728,8 @@ discard block |
||
| 728 | 728 | return ["CAT" => $candidatesCat, "EXTERNAL" => $candidatesExternalDb, "FEDERATION" => $country]; |
| 729 | 729 | } |
| 730 | 730 | /** |
| 731 | - * TMW |
|
| 732 | - */ |
|
| 731 | + * TMW |
|
| 732 | + */ |
|
| 733 | 733 | public function loadAdminsLogins() { |
| 734 | 734 | $returnarray = []; |
| 735 | 735 | $inactivityOverride = $this->getAttributes('fed:max-inactivity'); |
@@ -740,7 +740,7 @@ discard block |
||
| 740 | 740 | if ($inactivityOverride == []) { |
| 741 | 741 | $inactivityTimestamp = time() - \config\ConfAssistant::ADMIN_LOGINS['allowed_inactivity_days']; |
| 742 | 742 | } else { |
| 743 | - $inactivityTimestamp = time() - $inactivityOverride[0]['value']*24*3600; |
|
| 743 | + $inactivityTimestamp = time() - $inactivityOverride[0]['value'] * 24 * 3600; |
|
| 744 | 744 | } |
| 745 | 745 | // $active shows the time difference between the moment when a login thime would be considered as inactive |
| 746 | 746 | // and the start of the recording system. If this is negative then we we cannot tell that someone who |
@@ -765,7 +765,7 @@ discard block |
||
| 765 | 765 | $this->adminLogins[$idp] = 1; |
| 766 | 766 | continue; |
| 767 | 767 | } |
| 768 | - if (strtotime($adminLoginQuery->last_login) < $inactivityTimestamp) { |
|
| 768 | + if (strtotime($adminLoginQuery->last_login) < $inactivityTimestamp) { |
|
| 769 | 769 | $this->adminLogins[$idp] = 1; |
| 770 | 770 | continue; |
| 771 | 771 | } |