@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | <div class='infobox' style='text-align:center;'> |
| 85 | 85 | <h2><?php echo sprintf(_("QR Code for %s download area"), $uiElements->nomenclature_inst); ?></h2> |
| 86 | 86 | <?php |
| 87 | - $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier; |
|
| 87 | + $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier; |
|
| 88 | 88 | $uri = "data:image/png;base64," . base64_encode(png_inject_consortium_logo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, 12))); |
| 89 | 89 | $size = getimagesize($uri); |
| 90 | 90 | echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>"; |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | </td> |
| 118 | 118 | <td> |
| 119 | 119 | <form action='edit_idp_result.php?inst_id=<?php echo $my_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
| 120 | - <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\admin\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button> |
|
| 120 | + <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\admin\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "") . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button> |
|
| 121 | 121 | </form> |
| 122 | 122 | |
| 123 | 123 | </td> |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | if (isset($URL['device-specific:redirect'])) { |
| 327 | 327 | $displayurl = $URL['device-specific:redirect'][0]; |
| 328 | 328 | } else { |
| 329 | - $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&profile=" . $profile_list->identifier; |
|
| 329 | + $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&profile=" . $profile_list->identifier; |
|
| 330 | 330 | } |
| 331 | 331 | echo "<a href='$displayurl' style='white-space: nowrap; text-align: center;'>"; |
| 332 | 332 | $uri = "data:image/png;base64," . base64_encode(png_inject_consortium_logo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, 12))); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @author Zilvinas Vaira |
| 27 | 27 | * |
| 28 | 28 | */ |
| 29 | -class UserCredentialsForm implements PageElementInterface{ |
|
| 29 | +class UserCredentialsForm implements PageElementInterface { |
|
| 30 | 30 | |
| 31 | 31 | const EDITABLEBLOCK_CLASS = 'sb-editable-block'; |
| 32 | 32 | const TITLEROW_CLASS = 'sb-title-row'; |
@@ -118,10 +118,10 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | $this->acknowledgeDays = CONFIG_CONFASSISTANT['SILVERBULLET']['gracetime'] ?? SilverbulletUser::MAX_ACKNOWLEDGE; |
| 120 | 120 | $this->acknowledgeText = $acknowledgeText; |
| 121 | - if($isAcknowledgeEnabled){ |
|
| 121 | + if ($isAcknowledgeEnabled) { |
|
| 122 | 122 | $div = new CompositeTag('div'); |
| 123 | 123 | $div->addAttribute('style', 'padding-bottom: 20px;'); |
| 124 | - $this->acknowledgeNotice = new Tag ('p'); |
|
| 124 | + $this->acknowledgeNotice = new Tag('p'); |
|
| 125 | 125 | $div->addTag($this->acknowledgeNotice); |
| 126 | 126 | $checkbox = new UnaryTag('input'); |
| 127 | 127 | $checkbox->addAttribute('type', 'checkbox'); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $label->addText('I have verified that all configured users are still eligible for eduroam'); |
| 133 | 133 | $div->addTag($label); |
| 134 | 134 | $this->decorator->addHtmlElement($div); |
| 135 | - $this->decorator->addHtmlElement(new Button(_('Save'),'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
| 135 | + $this->decorator->addHtmlElement(new Button(_('Save'), 'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | $this->addTitleRow(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * |
| 143 | 143 | */ |
| 144 | - private function addTitleRow(){ |
|
| 144 | + private function addTitleRow() { |
|
| 145 | 145 | $row = new Row(array(self::USER_COLUMN => _('User'), self::TOKEN_COLUMN => _('Token/Certificate details'), self::EXPIRY_COLUMN => _('User/Token Expiry'), self::ACTION_COLUMN => _('Actions'))); |
| 146 | 146 | $row->addAttribute('class', self::TITLEROW_CLASS); |
| 147 | 147 | $this->table->addRow($row); |
@@ -151,19 +151,19 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @param SilverbulletUser $user |
| 153 | 153 | */ |
| 154 | - public function addUserRow($user){ |
|
| 154 | + public function addUserRow($user) { |
|
| 155 | 155 | $row = new Row(array(self::USER_COLUMN => $user->getUsername(), self::EXPIRY_COLUMN => new DatePicker(SaveUsersCommand::PARAM_EXPIRY_MULTIPLE, $user->getExpiry()))); |
| 156 | 156 | $row->addAttribute('class', self::USERROW_CLASS); |
| 157 | 157 | |
| 158 | 158 | $acknowledgeLevel = $user->getAcknowledgeLevel(); |
| 159 | - if($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW){ |
|
| 159 | + if ($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW) { |
|
| 160 | 160 | $row->addAttribute('style', 'background-color:#F0EAC0;'); |
| 161 | - }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED){ |
|
| 161 | + }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED) { |
|
| 162 | 162 | $row->addAttribute('style', 'background-color:#F0C0C0;'); |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $acknowledgeDays = $user->getAcknowledgeDays(); |
| 166 | - if($acknowledgeDays < $this->acknowledgeDays){ |
|
| 166 | + if ($acknowledgeDays < $this->acknowledgeDays) { |
|
| 167 | 167 | $this->acknowledgeDays = $acknowledgeDays; |
| 168 | 168 | } |
| 169 | 169 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $action = new CompositeTag('div'); |
| 184 | 184 | $action->addAttribute('class', 'sb-user-buttons'); |
| 185 | 185 | $deactivationButton = new Button(_('Deactivate User'), 'submit', DeleteUserCommand::COMMAND, $user->getIdentifier(), 'delete'); |
| 186 | - if($user->isDeactivated()){ |
|
| 186 | + if ($user->isDeactivated()) { |
|
| 187 | 187 | $deactivationButton->addAttribute('disabled', 'disabled'); |
| 188 | 188 | } |
| 189 | 189 | $action->addTag($deactivationButton); |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | * |
| 207 | 207 | * @param SilverbulletCertificate $certificate |
| 208 | 208 | */ |
| 209 | - public function addCertificateRow($certificate){ |
|
| 210 | - if($certificate->isGenerated()){ |
|
| 209 | + public function addCertificateRow($certificate) { |
|
| 210 | + if ($certificate->isGenerated()) { |
|
| 211 | 211 | |
| 212 | 212 | //Create certificate box |
| 213 | 213 | $certificateBox = new CompositeTag('div'); |
@@ -221,15 +221,15 @@ discard block |
||
| 221 | 221 | |
| 222 | 222 | //Create button container div |
| 223 | 223 | $buttonContainer = new Tag('div'); |
| 224 | - if($certificate->isRevoked()){ |
|
| 224 | + if ($certificate->isRevoked()) { |
|
| 225 | 225 | $certificateBox->addAttribute('style', 'background-color:#F0C0C0;'); |
| 226 | 226 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
| 227 | 227 | $buttonContainer->addText(_("REVOKED")); |
| 228 | - }elseif ($certificate->isExpired()){ |
|
| 228 | + }elseif ($certificate->isExpired()) { |
|
| 229 | 229 | $certificateBox->addAttribute('style', 'background-color:lightgrey;'); |
| 230 | 230 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
| 231 | 231 | $buttonContainer->addText(_("EXPIRED")); |
| 232 | - }else{ |
|
| 232 | + } else { |
|
| 233 | 233 | $buttonContainer->addAttribute('style', 'text-align:right;padding-top: 5px;'); |
| 234 | 234 | $buttonContainer->addText(new Button(_('Revoke'), 'submit', RevokeCertificateCommand::COMMAND, $certificate->getIdentifier(), 'delete')); |
| 235 | 235 | } |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * |
| 244 | 244 | * @param SilverbulletInvitation $invitation |
| 245 | 245 | */ |
| 246 | - public function addInvitationRow($invitation){ |
|
| 246 | + public function addInvitationRow($invitation) { |
|
| 247 | 247 | $expiryColumn = _("Expiry Date: ") . $invitation->getExpiry(); |
| 248 | 248 | $expiryColumn .= "<br>"; |
| 249 | 249 | $expiryColumn .= _("Activations: ") . $invitation->getRemainingActivations(); |
@@ -251,13 +251,13 @@ discard block |
||
| 251 | 251 | $row->addAttribute('class', self::CERTIFICATEROW_CLASS); |
| 252 | 252 | $index = $this->table->size(); |
| 253 | 253 | $this->table->addRow($row); |
| 254 | - if(!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()){ |
|
| 254 | + if (!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()) { |
|
| 255 | 255 | $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Copy to Clipboard'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-copy')); |
| 256 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-compose')); |
|
| 257 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-sms')); |
|
| 258 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-qrcode')); |
|
| 256 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-compose')); |
|
| 257 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-sms')); |
|
| 258 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-qrcode')); |
|
| 259 | 259 | } |
| 260 | - if(!$invitation->isRevoked()){ |
|
| 260 | + if (!$invitation->isRevoked()) { |
|
| 261 | 261 | $this->table->addToCell($index, self::ACTION_COLUMN, new Button(_('Revoke'), 'submit', RevokeInvitationCommand::COMMAND, $invitation->getIdentifier(), 'delete')); |
| 262 | 262 | } |
| 263 | 263 | } |
@@ -268,11 +268,11 @@ discard block |
||
| 268 | 268 | * @see \web\lib\admin\view\PageElementInterface::render() |
| 269 | 269 | */ |
| 270 | 270 | public function render() { |
| 271 | - if($this->acknowledgeNotice!=null){ |
|
| 271 | + if ($this->acknowledgeNotice != null) { |
|
| 272 | 272 | $this->acknowledgeNotice->addText(sprintf($this->acknowledgeText, $this->acknowledgeDays)); |
| 273 | 273 | } |
| 274 | 274 | ?> |
| 275 | - <div class="<?php echo self::EDITABLEBLOCK_CLASS;?>"> |
|
| 275 | + <div class="<?php echo self::EDITABLEBLOCK_CLASS; ?>"> |
|
| 276 | 276 | <?php $this->decorator->render(); ?> |
| 277 | 277 | </div> |
| 278 | 278 | <?php |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | * @var array |
| 132 | 132 | */ |
| 133 | - 'MAILSETTINGS' => [ // we always use Submission |
|
| 133 | + 'MAILSETTINGS' => [// we always use Submission |
|
| 134 | 134 | 'host' => 'submission.capable.mta', |
| 135 | 135 | 'user'=> 'mailuser', |
| 136 | 136 | 'pass' => 'mailpass', |
@@ -146,25 +146,25 @@ discard block |
||
| 146 | 146 | * @var array |
| 147 | 147 | */ |
| 148 | 148 | 'LANGUAGES' => [ |
| 149 | - 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
| 150 | - 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
| 151 | - 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
| 152 | - 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
| 153 | - 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
| 154 | - 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
| 155 | - 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
| 156 | - 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
| 157 | - 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
| 158 | - 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
| 159 | - 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
| 160 | - 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
| 161 | - 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
| 162 | - 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
| 163 | - 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
| 164 | - 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
| 165 | - 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
| 166 | - 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
| 167 | - 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
| 149 | + 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
| 150 | + 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
| 151 | + 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
| 152 | + 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
| 153 | + 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
| 154 | + 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
| 155 | + 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
| 156 | + 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
| 157 | + 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
| 158 | + 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
| 159 | + 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
| 160 | + 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
| 161 | + 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
| 162 | + 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
| 163 | + 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
| 164 | + 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
| 165 | + 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
| 166 | + 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
| 167 | + 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
| 168 | 168 | |
| 169 | 169 | // For the following languages, partial translations exist in Transifex, but |
| 170 | 170 | // they are not complete enough for display. Their Transifex content is not |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function __construct() { |
| 63 | 63 | $this->loggerInstance = new Logging(); |
| 64 | - $this->loggerInstance->debug(3, "--- BEGIN constructing class ". get_class($this)." .\n"); |
|
| 64 | + $this->loggerInstance->debug(3, "--- BEGIN constructing class " . get_class($this) . " .\n"); |
|
| 65 | 65 | $this->languageInstance = new Language(); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * Logs the end of lifetime of the entity to the debug log on level 5. |
| 72 | 72 | */ |
| 73 | 73 | public function __destruct() { |
| 74 | - (new Logging())->debug(5,"--- KILL Destructing class ". get_class($this)." .\n"); |
|
| 74 | + (new Logging())->debug(5, "--- KILL Destructing class " . get_class($this) . " .\n"); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -281,14 +281,14 @@ discard block |
||
| 281 | 281 | <tr> |
| 282 | 282 | <!-- checkbox for "verify--> |
| 283 | 283 | <td> |
| 284 | - <span id='verify_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'> |
|
| 284 | + <span id='verify_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'> |
|
| 285 | 285 | <?php echo _("Verify user input to contain realm suffix:"); ?> |
| 286 | 286 | </span> |
| 287 | 287 | </td> |
| 288 | 288 | <td> |
| 289 | 289 | <input type='checkbox' <?php |
| 290 | - echo ($verify != FALSE ? "checked" : "" ); |
|
| 291 | - echo ($realm == "" ? "disabled" : "" ); |
|
| 290 | + echo ($verify != FALSE ? "checked" : ""); |
|
| 291 | + echo ($realm == "" ? "disabled" : ""); |
|
| 292 | 292 | ?> name='verify_support' onclick=' |
| 293 | 293 | if (this.form.elements["verify_support"].checked !== true) { |
| 294 | 294 | this.form.elements["hint_support"].setAttribute("disabled", "disabled"); |
@@ -296,48 +296,48 @@ discard block |
||
| 296 | 296 | this.form.elements["hint_support"].removeAttribute("disabled"); |
| 297 | 297 | } |
| 298 | 298 | ;'/> |
| 299 | - <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'> |
|
| 299 | + <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'> |
|
| 300 | 300 | <?php echo _("Prefill user input with realm suffix:"); ?> |
| 301 | 301 | </span> |
| 302 | - <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : "" ); ?> name='hint_support' <?php echo ( $hint != FALSE ? "checked" : "" ); ?> /> |
|
| 302 | + <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : ""); ?> name='hint_support' <?php echo ($hint != FALSE ? "checked" : ""); ?> /> |
|
| 303 | 303 | </td> |
| 304 | 304 | </tr> |
| 305 | 305 | <tr> |
| 306 | 306 | |
| 307 | 307 | <!-- checkbox and input field for anonymity support, available only when realm is known--> |
| 308 | 308 | <td> |
| 309 | - <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'> |
|
| 309 | + <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'> |
|
| 310 | 310 | <?php echo _("Enable Anonymous Outer Identity:"); ?> |
| 311 | 311 | </span> |
| 312 | 312 | </td> |
| 313 | 313 | <td> |
| 314 | - <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='anon_support' onclick=' |
|
| 314 | + <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='anon_support' onclick=' |
|
| 315 | 315 | if (this.form.elements["anon_support"].checked !== true) { |
| 316 | 316 | this.form.elements["anon_local"].setAttribute("disabled", "disabled"); |
| 317 | 317 | } else { |
| 318 | 318 | this.form.elements["anon_local"].removeAttribute("disabled"); |
| 319 | 319 | } |
| 320 | 320 | ;'/> |
| 321 | - <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/> |
|
| 321 | + <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/> |
|
| 322 | 322 | </td> |
| 323 | 323 | </tr> |
| 324 | 324 | <tr> |
| 325 | 325 | |
| 326 | 326 | <!-- checkbox and input field for check realm outer id, available only when realm is known--> |
| 327 | 327 | <td> |
| 328 | - <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'> |
|
| 328 | + <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'> |
|
| 329 | 329 | <?php echo _("Use special Outer Identity for realm checks:"); ?> |
| 330 | 330 | </span> |
| 331 | 331 | </td> |
| 332 | 332 | <td> |
| 333 | - <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='checkuser_support' onclick=' |
|
| 333 | + <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "") . ($realm == "" ? " disabled" : ""); ?> name='checkuser_support' onclick=' |
|
| 334 | 334 | if (this.form.elements["checkuser_support"].checked !== true) { |
| 335 | 335 | this.form.elements["checkuser_local"].setAttribute("disabled", "disabled"); |
| 336 | 336 | } else { |
| 337 | 337 | this.form.elements["checkuser_local"].removeAttribute("disabled"); |
| 338 | 338 | } |
| 339 | 339 | ;'/> |
| 340 | - <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/> |
|
| 340 | + <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/> |
|
| 341 | 341 | </td> |
| 342 | 342 | </tr> |
| 343 | 343 | </table> |
@@ -353,14 +353,14 @@ discard block |
||
| 353 | 353 | <p> |
| 354 | 354 | |
| 355 | 355 | <?php |
| 356 | - echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "" ) . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span> |
|
| 357 | - <input type='checkbox' name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked " ) . "onclick=' |
|
| 356 | + echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "") . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span> |
|
| 357 | + <input type='checkbox' name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked ") . "onclick=' |
|
| 358 | 358 | if (this.form.elements[\"redirect\"].checked != true) { |
| 359 | 359 | this.form.elements[\"redirect_target\"].setAttribute(\"disabled\", \"disabled\"); |
| 360 | 360 | } else { |
| 361 | 361 | this.form.elements[\"redirect_target\"].removeAttribute(\"disabled\"); |
| 362 | 362 | };'/> |
| 363 | - <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled" ) . "/>"; |
|
| 363 | + <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled") . "/>"; |
|
| 364 | 364 | ?> |
| 365 | 365 | </p> |
| 366 | 366 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | function priority(string $eapType, bool $isenabled, int $priority) { |
| 385 | 385 | echo "<td><select id='$eapType-priority' name='$eapType-priority' " . (!$isenabled ? "disabled='disabled'" : "") . ">"; |
| 386 | 386 | for ($a = 1; $a < 7; $a = $a + 1) { |
| 387 | - echo "<option id='$eapType-$a' value='$a' " . ( $isenabled && $a == $priority ? "selected" : "" ) . ">$a</option>"; |
|
| 387 | + echo "<option id='$eapType-$a' value='$a' " . ($isenabled && $a == $priority ? "selected" : "") . ">$a</option>"; |
|
| 388 | 388 | } |
| 389 | 389 | echo "</select></td>"; |
| 390 | 390 | } |
@@ -56,8 +56,8 @@ |
||
| 56 | 56 | |
| 57 | 57 | $i = 0; |
| 58 | 58 | foreach ($salvageFedPrivs as $oneFed) { |
| 59 | - $_POST['option']["S123456789".$i] = "user:fedadmin#string##"; |
|
| 60 | - $_POST['value']["S123456789".$i."-0"] = $oneFed; |
|
| 59 | + $_POST['option']["S123456789" . $i] = "user:fedadmin#string##"; |
|
| 60 | + $_POST['value']["S123456789" . $i . "-0"] = $oneFed; |
|
| 61 | 61 | $i++; |
| 62 | 62 | } |
| 63 | 63 | ?> |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | echo $deco->pageheader(sprintf(_("%s: %s Customisation (submission completed)"), CONFIG['APPEARANCE']['productname'], $uiElements->nomenclature_fed), "FEDERATION"); |
| 30 | 30 | $my_fed = $validator->Federation($_GET['fed_id'], $_SESSION['user']); |
| 31 | 31 | if (isset($_POST['submitbutton'])) { |
| 32 | - if (( $_POST['submitbutton'] == web\lib\admin\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go |
|
| 32 | + if (($_POST['submitbutton'] == web\lib\admin\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go |
|
| 33 | 33 | $fed_name = $my_fed->name; |
| 34 | 34 | echo "<h1>" . sprintf(_("Submitted attributes for %s '%s'"), $uiElements->nomenclature_fed, $fed_name) . "</h1>"; |
| 35 | 35 | echo "<table>"; |
@@ -26,4 +26,4 @@ |
||
| 26 | 26 | $Gui->defaultPagePrelude(); |
| 27 | 27 | |
| 28 | 28 | // and now, serve actual data |
| 29 | -include("skins/".$Gui->skinObject->skin."/index.php"); |
|
| 29 | +include("skins/" . $Gui->skinObject->skin . "/index.php"); |
|
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | namespace core\common; |
| 12 | 12 | use \Exception; |
| 13 | 13 | |
| 14 | -require_once(dirname(dirname(__DIR__))."/config/_config.php"); |
|
| 14 | +require_once(dirname(dirname(__DIR__)) . "/config/_config.php"); |
|
| 15 | 15 | |
| 16 | 16 | class Logging { |
| 17 | 17 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | echo " ($category) "; |
| 87 | 87 | echo " " . $user . ": "; |
| 88 | 88 | if (is_string($message)) { |
| 89 | - echo $message ."\n"; |
|
| 89 | + echo $message . "\n"; |
|
| 90 | 90 | } else { |
| 91 | 91 | echo var_export($message); |
| 92 | 92 | } |