@@ -19,7 +19,7 @@ discard block |
||
| 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 | $deco = new \web\lib\admin\PageDecoration(); |
| 25 | 25 | $uiElements = new web\lib\admin\UIElements(); |
@@ -50,16 +50,16 @@ discard block |
||
| 50 | 50 | <div class="infobox"> |
| 51 | 51 | <h2><?php $tablecaption = _("Your Personal Information"); echo $tablecaption; ?></h2> |
| 52 | 52 | <table> |
| 53 | - <caption><?php echo $tablecaption;?></caption> |
|
| 53 | + <caption><?php echo $tablecaption; ?></caption> |
|
| 54 | 54 | <tr> |
| 55 | - <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th> |
|
| 56 | - <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th> |
|
| 57 | - <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th> |
|
| 55 | + <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th> |
|
| 56 | + <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th> |
|
| 57 | + <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th> |
|
| 58 | 58 | </tr> |
| 59 | 59 | <?php echo $uiElements->infoblock($user->getAttributes(), "user", "User"); ?> |
| 60 | 60 | <tr> |
| 61 | 61 | <td> |
| 62 | - <?php echo "" . _("Unique Identifier") ?> |
|
| 62 | + <?php echo ""._("Unique Identifier") ?> |
|
| 63 | 63 | </td> |
| 64 | 64 | <td> |
| 65 | 65 | </td> |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $mgmt = new \core\UserManagement(); |
| 75 | 75 | |
| 76 | 76 | if (!$user->isFederationAdmin()) { |
| 77 | - echo "<p>" . sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed) . "</p>"; |
|
| 77 | + echo "<p>".sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed)."</p>"; |
|
| 78 | 78 | echo $deco->footer(); |
| 79 | 79 | exit(0); |
| 80 | 80 | } |
@@ -88,16 +88,16 @@ discard block |
||
| 88 | 88 | <?php $tablecaption2 = sprintf(_("%s Properties: %s"), $uiElements->nomenclatureFed, $thefed->name); echo $tablecaption2; ?> |
| 89 | 89 | </h2> |
| 90 | 90 | <table> |
| 91 | - <caption><?php echo $tablecaption2;?></caption> |
|
| 91 | + <caption><?php echo $tablecaption2; ?></caption> |
|
| 92 | 92 | <tr> |
| 93 | - <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th> |
|
| 94 | - <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th> |
|
| 95 | - <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th> |
|
| 93 | + <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th> |
|
| 94 | + <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th> |
|
| 95 | + <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th> |
|
| 96 | 96 | </tr> |
| 97 | 97 | <!-- fed properties --> |
| 98 | 98 | <tr> |
| 99 | 99 | <td> |
| 100 | - <?php echo "" . _("Country") ?> |
|
| 100 | + <?php echo ""._("Country") ?> |
|
| 101 | 101 | </td> |
| 102 | 102 | <td> |
| 103 | 103 | </td> |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | default: |
| 179 | 179 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
| 180 | 180 | } |
| 181 | - echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter) . " " . $cryptText, _("Sent successfully.")); |
|
| 181 | + echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter)." ".$cryptText, _("Sent successfully.")); |
|
| 182 | 182 | break; |
| 183 | 183 | case "FAILURE": |
| 184 | 184 | echo $uiElements->boxError(_("No invitation email could be sent!"), _("Sending failure!")); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | default: |
| 199 | 199 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
| 200 | 200 | } |
| 201 | - echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter) . " " . $cryptText, _("Partial success.")); |
|
| 201 | + echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter)." ".$cryptText, _("Partial success.")); |
|
| 202 | 202 | break; |
| 203 | 203 | case "INVALIDSYNTAX": |
| 204 | 204 | echo $uiElements->boxError(_("The invitation email address was malformed, no invitation was sent!"), _("The invitation email address was malformed, no invitation was sent!")); |
@@ -214,27 +214,27 @@ discard block |
||
| 214 | 214 | } else { |
| 215 | 215 | $link = 'http://'; |
| 216 | 216 | } |
| 217 | - $link .= $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME']; |
|
| 217 | + $link .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; |
|
| 218 | 218 | $link = htmlspecialchars($link); |
| 219 | 219 | if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_RADIUS'] == 'LOCAL' && \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == 'LOCAL') { |
| 220 | 220 | echo "<table><tr> |
| 221 | - <td>" . sprintf(_("Diagnose reachability and connection parameters of any %s %s"), \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureIdP) . "</td> |
|
| 221 | + <td>" . sprintf(_("Diagnose reachability and connection parameters of any %s %s"), \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureIdP)."</td> |
|
| 222 | 222 | <td><form method='post' action='../diag/action_realmcheck.php' accept-charset='UTF-8'> |
| 223 | 223 | <input type='hidden' name='comefrom' id='comefrom' value='$link'/> |
| 224 | - <button id='realmcheck' style='cursor:pointer;' type='submit'>" . _("Go!") . "</button> |
|
| 224 | + <button id='realmcheck' style='cursor:pointer;' type='submit'>"._("Go!")."</button> |
|
| 225 | 225 | </form> |
| 226 | 226 | </td> |
| 227 | 227 | </tr> |
| 228 | 228 | </table>"; |
| 229 | 229 | } |
| 230 | 230 | if (\config\ConfAssistant::CONSORTIUM['name'] == 'eduroam') { |
| 231 | - $helptext = "<h3>" . sprintf(_("Need help? Refer to the <a href='%s'>%s manual</a>"), "https://wiki.geant.org/x/qJg7Bw", $uiElements->nomenclatureFed) . "</h3>"; |
|
| 231 | + $helptext = "<h3>".sprintf(_("Need help? Refer to the <a href='%s'>%s manual</a>"), "https://wiki.geant.org/x/qJg7Bw", $uiElements->nomenclatureFed)."</h3>"; |
|
| 232 | 232 | } else { |
| 233 | 233 | $helptext = ""; |
| 234 | 234 | } |
| 235 | 235 | ?> |
| 236 | 236 | <table class='user_overview' style='border:0px; width:unset'> |
| 237 | - <caption><?php echo _("Participant Details");?></caption> |
|
| 237 | + <caption><?php echo _("Participant Details"); ?></caption> |
|
| 238 | 238 | <tr> |
| 239 | 239 | <th scope='col' style="width:13em"><?php echo _("Configured / Visible / OpenRoaming"); ?></th> |
| 240 | 240 | <th scope='col'><?php echo sprintf(_("%s Name"), $uiElements->nomenclatureParticipant); ?></th> |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | $pending_invites = $mgmt->listPendingInvitations(); |
| 244 | 244 | |
| 245 | 245 | if (\config\Master::DB['enforce-external-sync']) { |
| 246 | - echo "<th scope='col'>" . sprintf(_("%s Database Sync Status"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</th>"; |
|
| 246 | + echo "<th scope='col'>".sprintf(_("%s Database Sync Status"), \config\ConfAssistant::CONSORTIUM['display_name'])."</th>"; |
|
| 247 | 247 | } |
| 248 | 248 | ?> |
| 249 | 249 | <th scope='col'> |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | foreach ($feds as $onefed) { |
| 259 | 259 | $thefed = new \core\Federation(strtoupper($onefed['value'])); |
| 260 | 260 | /// nomenclature for 'federation', federation name, nomenclature for 'inst' |
| 261 | - echo "<tr><td colspan='8'><strong>" . sprintf(_("The following %s are in your %s %s:"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed, '<span style="color:green">' . $thefed->name . '</span>') . "</strong></td></tr>"; |
|
| 261 | + echo "<tr><td colspan='8'><strong>".sprintf(_("The following %s are in your %s %s:"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed, '<span style="color:green">'.$thefed->name.'</span>')."</strong></td></tr>"; |
|
| 262 | 262 | |
| 263 | 263 | // extract only pending invitations for *this* fed |
| 264 | 264 | $display_pendings = FALSE; |
@@ -283,9 +283,9 @@ discard block |
||
| 283 | 283 | // deployment status; need to dive into profiles for this |
| 284 | 284 | // show happy eyeballs if at least one profile is configured/showtime |
| 285 | 285 | echo "<td>"; |
| 286 | - echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "-" ) |
|
| 286 | + echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "-") |
|
| 287 | 287 | . " " |
| 288 | - . ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : "-" ) |
|
| 288 | + . ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : "-") |
|
| 289 | 289 | . " " |
| 290 | 290 | . "<span style='color:"; |
| 291 | 291 | switch ($idp_instance->maxOpenRoamingStatus()) { |
@@ -320,23 +320,23 @@ discard block |
||
| 320 | 320 | } |
| 321 | 321 | } |
| 322 | 322 | echo "<td style='vertical-align:top;'> |
| 323 | - <input type='hidden' name='inst' value='" . $index . "'>" . $idp_instance->name . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>" ) . implode("</li><li>", $listOfSilverbulletRealms) . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>" ) . " |
|
| 323 | + <input type='hidden' name='inst' value='" . $index."'>".$idp_instance->name.(empty($listOfSilverbulletRealms) ? "" : "<ul><li>").implode("</li><li>", $listOfSilverbulletRealms).(empty($listOfSilverbulletRealms) ? "" : "</li><ul>")." |
|
| 324 | 324 | </td>"; |
| 325 | 325 | // external DB sync, if configured as being necessary |
| 326 | 326 | if (\config\Master::DB['enforce-external-sync']) { |
| 327 | 327 | echo "<td style='display: ruby;'>"; |
| 328 | 328 | if ($readonly === FALSE) { |
| 329 | - echo "<form method='post' action='inc/manageDBLink.inc.php?inst_id=" . $idp_instance->identifier . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
| 330 | - <button type='submit'>" . _("Manage DB Link") . "</button></form> "; |
|
| 329 | + echo "<form method='post' action='inc/manageDBLink.inc.php?inst_id=".$idp_instance->identifier."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
| 330 | + <button type='submit'>" . _("Manage DB Link")."</button></form> "; |
|
| 331 | 331 | } |
| 332 | 332 | switch ($idp_instance->getExternalDBSyncState()) { |
| 333 | 333 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_NOTSUBJECTTOSYNCING: |
| 334 | 334 | break; |
| 335 | 335 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_SYNCED: |
| 336 | - echo "<div class='acceptable'>" . _("Linked") . "</div>"; |
|
| 336 | + echo "<div class='acceptable'>"._("Linked")."</div>"; |
|
| 337 | 337 | break; |
| 338 | 338 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_NOT_SYNCED: |
| 339 | - echo "<div class='notacceptable'>" . _("NOT linked") . "</div>"; |
|
| 339 | + echo "<div class='notacceptable'>"._("NOT linked")."</div>"; |
|
| 340 | 340 | |
| 341 | 341 | |
| 342 | 342 | break; |
@@ -349,9 +349,9 @@ discard block |
||
| 349 | 349 | echo "<td style='vertical-align: top;'>"; |
| 350 | 350 | if ($readonly === FALSE) { |
| 351 | 351 | echo "<div style='white-space: nowrap;'> |
| 352 | - <form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $index . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
| 352 | + <form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $index."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
| 353 | 353 | <button type='submit'>" . |
| 354 | - _("Add/Remove Administrators") . " |
|
| 354 | + _("Add/Remove Administrators")." |
|
| 355 | 355 | </button> |
| 356 | 356 | </form> |
| 357 | 357 | </div>"; |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | echo "<tr> |
| 365 | 365 | <td colspan='2'> |
| 366 | 366 | <strong>" . |
| 367 | - sprintf(_("Pending invitations in the %s:"), $uiElements->nomenclatureFed) . " |
|
| 367 | + sprintf(_("Pending invitations in the %s:"), $uiElements->nomenclatureFed)." |
|
| 368 | 368 | </strong> |
| 369 | 369 | </td> |
| 370 | 370 | </tr>"; |
@@ -372,16 +372,16 @@ discard block |
||
| 372 | 372 | if (strtoupper($oneinvite['country']) == strtoupper($thefed->tld)) { |
| 373 | 373 | echo "<tr> |
| 374 | 374 | <td>" . |
| 375 | - $oneinvite['name'] . " |
|
| 375 | + $oneinvite['name']." |
|
| 376 | 376 | </td> |
| 377 | 377 | <td>" . |
| 378 | - $oneinvite['mail'] . " |
|
| 378 | + $oneinvite['mail']." |
|
| 379 | 379 | </td> |
| 380 | 380 | <td colspan=2>"; |
| 381 | 381 | if ($readonly === FALSE) { |
| 382 | 382 | echo "<form method='post' action='overview_federation.php' accept-charset='UTF-8'> |
| 383 | - <input type='hidden' name='invitation_id' value='" . $oneinvite['token'] . "'/> |
|
| 384 | - <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Revoke Invitation") . "</button> " |
|
| 383 | + <input type='hidden' name='invitation_id' value='" . $oneinvite['token']."'/> |
|
| 384 | + <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE."'>"._("Revoke Invitation")."</button> " |
|
| 385 | 385 | . sprintf(_("(expires %s)"), $oneinvite['expiry']) |
| 386 | 386 | . "</form>"; |
| 387 | 387 | } |