@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | namespace core; |
23 | 23 | |
24 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
24 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
25 | 25 | |
26 | 26 | $instMgmt = new \core\UserManagement(); |
27 | 27 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | <?php echo $uiElements->infoblock($user->getAttributes(), "user", "User"); ?> |
62 | 62 | <tr> |
63 | 63 | <td> |
64 | - <?php echo "" . _("Unique Identifier") ?> |
|
64 | + <?php echo ""._("Unique Identifier") ?> |
|
65 | 65 | </td> |
66 | 66 | <td> |
67 | 67 | </td> |
@@ -74,14 +74,14 @@ discard block |
||
74 | 74 | <div> |
75 | 75 | <?php |
76 | 76 | if (\config\Master::DB['USER']['readonly'] === FALSE) { |
77 | - echo "<a href='edit_user.php'><button>" . _("Edit User Details") . "</button></a>"; |
|
77 | + echo "<a href='edit_user.php'><button>"._("Edit User Details")."</button></a>"; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | if ($user->isFederationAdmin()) { |
81 | - echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed) . "</button></form>"; |
|
81 | + echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>".sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed)."</button></form>"; |
|
82 | 82 | } |
83 | 83 | if ($user->isSuperadmin()) { |
84 | - echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . _('Click here to access the superadmin page') . "</button></form>"; |
|
84 | + echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>"._('Click here to access the superadmin page')."</button></form>"; |
|
85 | 85 | } |
86 | 86 | ?> |
87 | 87 | </div> |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") { |
95 | 95 | $target = "https://wiki.geant.org/x/6Zg7Bw"; // Managed IdP manual |
96 | 96 | } |
97 | - $helptext = "<h3 style='display:inline;'>" . sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureParticipant) . "</h3>"; |
|
97 | + $helptext = "<h3 style='display:inline;'>".sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureParticipant)."</h3>"; |
|
98 | 98 | } else { |
99 | 99 | $helptext = ""; |
100 | 100 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | // we need to run the Federation constructor |
104 | 104 | $cat = new \core\CAT; |
105 | 105 | /// first parameter: number of Identity Providers; second param is the literal configured term for 'Identity Provider' (you may or may not be able to add a plural suffix for your locale) |
106 | - echo "<h2>" . sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant) . "</h2>"; |
|
106 | + echo "<h2>".sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant)."</h2>"; |
|
107 | 107 | $instlist = []; |
108 | 108 | $my_idps = []; |
109 | 109 | $myFeds = []; |
@@ -196,14 +196,14 @@ discard block |
||
196 | 196 | <td> |
197 | 197 | <?php |
198 | 198 | if ($blessedUser && \config\Master::DB['INST']['readonly'] === FALSE) { |
199 | - echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $the_inst->identifier . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>" . _("Add/Remove Administrators") . "</button></form></div>"; |
|
199 | + echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=".$the_inst->identifier."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>"._("Add/Remove Administrators")."</button></form></div>"; |
|
200 | 200 | } |
201 | 201 | ?> |
202 | 202 | </td> |
203 | 203 | <td> <!-- danger zone --> |
204 | 204 | |
205 | 205 | <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
206 | - <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( \config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button> |
|
206 | + <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed)." " : "").sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button> |
|
207 | 207 | </form> |
208 | 208 | <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
209 | 209 | <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_FLUSH_AND_RESTART; ?>' onclick="return confirm('<?php echo sprintf(_("This action will delete all properties of the %s and start over the configuration from scratch. Do you really want to reset all settings of the %s %s?"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Reset all %s settings"), $uiElements->nomenclatureParticipant); ?></button> |
@@ -218,18 +218,18 @@ discard block |
||
218 | 218 | </table> |
219 | 219 | <?php |
220 | 220 | } else { |
221 | - echo "<h2>" . sprintf(_("You are not managing any %s."), $uiElements->nomenclatureParticipant) . "</h2>"; |
|
221 | + echo "<h2>".sprintf(_("You are not managing any %s."), $uiElements->nomenclatureParticipant)."</h2>"; |
|
222 | 222 | } |
223 | 223 | if (\config\Master::DB['INST']['readonly'] === FALSE) { |
224 | 224 | if (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL) { |
225 | - echo "<p>" . sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant) . "</p>"; |
|
225 | + echo "<p>".sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant)."</p>"; |
|
226 | 226 | echo "<hr/> |
227 | 227 | <div style='white-space: nowrap;'> |
228 | 228 | <form action='action_enrollment.php' method='get' accept-charset='UTF-8'>" . |
229 | - sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant) . |
|
229 | + sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant). |
|
230 | 230 | " <input type='text' id='token' name='token'/> |
231 | 231 | <button type='submit'>" . |
232 | - _("Go!") . " |
|
232 | + _("Go!")." |
|
233 | 233 | </button> |
234 | 234 | </form> |
235 | 235 | </div>"; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | <div style='white-space: nowrap;'> |
239 | 239 | <form action='action_enrollment.php' method='get'><button type='submit' accept-charset='UTF-8'> |
240 | 240 | <input type='hidden' id='token' name='token' value='SELF-REGISTER'/>" . |
241 | - sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant) . " |
|
241 | + sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant)." |
|
242 | 242 | </button> |
243 | 243 | </form> |
244 | 244 | </div>"; |