@@ -174,15 +174,15 @@ discard block |
||
174 | 174 | <key>PayloadDescription</key> |
175 | 175 | <string>$tagline</string> |
176 | 176 | <key>PayloadDisplayName</key> |
177 | - <string>" . \config\ConfAssistant::CONSORTIUM['display_name'] . "</string> |
|
177 | + <string>".\config\ConfAssistant::CONSORTIUM['display_name']."</string> |
|
178 | 178 | <key>PayloadIdentifier</key> |
179 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
179 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
180 | 180 | <key>PayloadOrganization</key> |
181 | - <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ( $this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
181 | + <string>".htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8').($this->attributes['internal:profile_count'][0] > 1 ? " (".htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8').")" : "")."</string> |
|
182 | 182 | <key>PayloadType</key> |
183 | 183 | <string>Configuration</string> |
184 | 184 | <key>PayloadUUID</key> |
185 | - <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX . $this->massagedConsortium . $this->massagedCountry . $this->massagedInst . $this->massagedProfile) . "</string> |
|
185 | + <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX.$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile)."</string> |
|
186 | 186 | <key>PayloadVersion</key> |
187 | 187 | <integer>1</integer>"; |
188 | 188 | \core\common\Entity::outOfThePotatoes(); |
@@ -213,15 +213,15 @@ discard block |
||
213 | 213 | protected function consentBlock() { |
214 | 214 | \core\common\Entity::intoThePotatoes(); |
215 | 215 | if (isset($this->attributes['support:info_file'])) { |
216 | - return MobileconfigSuperclass::BUFFER_CONSENT_PRE . htmlspecialchars(iconv("UTF-8", "UTF-8//TRANSLIT", $this->attributes['support:info_file'][0]), ENT_XML1, 'UTF-8') . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
216 | + return MobileconfigSuperclass::BUFFER_CONSENT_PRE.htmlspecialchars(iconv("UTF-8", "UTF-8//TRANSLIT", $this->attributes['support:info_file'][0]), ENT_XML1, 'UTF-8').MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
217 | 217 | } |
218 | 218 | if ($this->attributes['internal:verify_userinput_suffix'][0] != 0) { |
219 | 219 | if (strlen($this->attributes['internal:realm'][0]) > 0) { |
220 | - $retval =MobileconfigSuperclass::BUFFER_CONSENT_PRE . sprintf(_("Important Notice: your username must end with @%s!"), $this->attributes['internal:realm'][0]) . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
220 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE.sprintf(_("Important Notice: your username must end with @%s!"), $this->attributes['internal:realm'][0]).MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
221 | 221 | \core\common\Entity::outOfThePotatoes(); |
222 | 222 | return $retval; |
223 | 223 | } |
224 | - $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE . _("Important Notice: your username MUST be in the form of xxx@yyy where the yyy is a common suffix identifying your Identity Provider. Please find out what to use there and enter the username in the correct format.") . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
224 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE._("Important Notice: your username MUST be in the form of xxx@yyy where the yyy is a common suffix identifying your Identity Provider. Please find out what to use there and enter the username in the correct format.").MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
225 | 225 | \core\common\Entity::outOfThePotatoes(); |
226 | 226 | return $retval; |
227 | 227 | } |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | // also escape htmlspecialchars |
246 | 246 | // not all names and profiles have a name, so be prepared |
247 | 247 | |
248 | - $this->loggerInstance->debug(5, "List of available attributes: " . var_export($this->attributes, TRUE)); |
|
248 | + $this->loggerInstance->debug(5, "List of available attributes: ".var_export($this->attributes, TRUE)); |
|
249 | 249 | |
250 | 250 | $this->instName = $this->attributes['general:instname'][0] ?? _("Unnamed Organisation"); |
251 | 251 | $this->profileName = $this->attributes['profile:name'][0] ?? _("Unnamed Profile"); |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | textdomain($dom); |
291 | 291 | |
292 | - $fileName = $this->installerBasename . '.mobileconfig'; |
|
292 | + $fileName = $this->installerBasename.'.mobileconfig'; |
|
293 | 293 | |
294 | 294 | if (!$this->sign) { |
295 | 295 | rename("installer_profile", $fileName); |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | return $fileName; |
298 | 298 | } |
299 | 299 | // still here? Then we are signing. |
300 | - $signing = system($this->sign . " installer_profile '$fileName' > /dev/null"); |
|
300 | + $signing = system($this->sign." installer_profile '$fileName' > /dev/null"); |
|
301 | 301 | if ($signing === FALSE) { |
302 | 302 | $this->loggerInstance->debug(2, "Signing the mobileconfig installer $fileName FAILED!\n"); |
303 | 303 | } |
@@ -315,19 +315,19 @@ discard block |
||
315 | 315 | \core\common\Entity::intoThePotatoes(); |
316 | 316 | $ssidCount = count($this->attributes['internal:SSID']); |
317 | 317 | $certCount = count($this->attributes['internal:CAs'][0]); |
318 | - $out = "<p>" . _("For best results, please use the built-in browser (Safari) to open the configuration file.") . "</p>"; |
|
318 | + $out = "<p>"._("For best results, please use the built-in browser (Safari) to open the configuration file.")."</p>"; |
|
319 | 319 | $out .= "<p>"; |
320 | 320 | $out .= _("The profile will install itself after you click (or tap) the button. You will be asked for confirmation/input at several points:"); |
321 | 321 | $out .= "<ul>"; |
322 | - $out .= "<li>" . _("to install the profile") . "</li>"; |
|
323 | - $out .= "<li>" . ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
322 | + $out .= "<li>"._("to install the profile")."</li>"; |
|
323 | + $out .= "<li>".ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
324 | 324 | if ($certCount > 1) { |
325 | - $out .= " " . sprintf(_("(%d times)"), $certCount); |
|
325 | + $out .= " ".sprintf(_("(%d times)"), $certCount); |
|
326 | 326 | } |
327 | 327 | $out .= "</li>"; |
328 | - $out .= "<li>" . _("to enter the username and password you have been given by your organisation"); |
|
328 | + $out .= "<li>"._("to enter the username and password you have been given by your organisation"); |
|
329 | 329 | if ($ssidCount > 1) { |
330 | - $out .= " " . sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, \config\ConfAssistant::CONSORTIUM['display_name'], $ssidCount); |
|
330 | + $out .= " ".sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, \config\ConfAssistant::CONSORTIUM['display_name'], $ssidCount); |
|
331 | 331 | } |
332 | 332 | $out .= "</li>"; |
333 | 333 | $out .= "</ul>"; |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | <key>ServiceProviderRoamingEnabled</key> |
365 | 365 | <true/> |
366 | 366 | <key>DisplayedOperatorName</key> |
367 | - <string>" . \config\ConfAssistant::CONSORTIUM['display_name'] . " via Passpoint</string>"; |
|
367 | + <string>" . \config\ConfAssistant::CONSORTIUM['display_name']." via Passpoint</string>"; |
|
368 | 368 | // if we don't know the realm, omit the entire DomainName key |
369 | 369 | if (isset($this->attributes['internal:realm'])) { |
370 | 370 | $retval .= "<key>DomainName</key> |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | <dict> |
413 | 413 | <key>AcceptEAPTypes</key> |
414 | 414 | <array> |
415 | - <integer>" . $eapType['OUTER'] . "</integer> |
|
415 | + <integer>" . $eapType['OUTER']."</integer> |
|
416 | 416 | </array> |
417 | 417 | <key>EAPFASTProvisionPAC</key> |
418 | 418 | <true /> |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | "; |
426 | 426 | if ($realm !== NULL) { |
427 | 427 | $retval .= "<key>OuterIdentity</key> |
428 | - <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8') . "</string> |
|
428 | + <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8')."</string> |
|
429 | 429 | "; |
430 | 430 | } |
431 | 431 | $retval .= "<key>PayloadCertificateAnchorUUID</key> |
@@ -449,11 +449,11 @@ discard block |
||
449 | 449 | $retval .= " |
450 | 450 | </array>"; |
451 | 451 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
452 | - $retval .= "<key>UserName</key><string>" . $this->clientCert["certObject"]->username . "</string>"; |
|
452 | + $retval .= "<key>UserName</key><string>".$this->clientCert["certObject"]->username."</string>"; |
|
453 | 453 | } |
454 | 454 | $retval .= " |
455 | 455 | <key>TTLSInnerAuthentication</key> |
456 | - <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2") . "</string> |
|
456 | + <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2")."</string> |
|
457 | 457 | </dict>"; |
458 | 458 | return $retval; |
459 | 459 | } |
@@ -472,9 +472,9 @@ discard block |
||
472 | 472 | // characters are still reversed, invert on use! |
473 | 473 | $buffer .= "<string>Manual</string> |
474 | 474 | <key>ProxyServer</key> |
475 | - <string>" . strrev($serverAndPort[1]) . "</string> |
|
475 | + <string>" . strrev($serverAndPort[1])."</string> |
|
476 | 476 | <key>ProxyServerPort</key> |
477 | - <integer>" . strrev($serverAndPort[0]) . "</integer> |
|
477 | + <integer>" . strrev($serverAndPort[0])."</integer> |
|
478 | 478 | <key>ProxyPACFallbackAllowed</key> |
479 | 479 | <false/>"; |
480 | 480 | } else { |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | throw new Exception("SSID must be a string!"); |
503 | 503 | } |
504 | 504 | $escapedSSID = htmlspecialchars($toBeConfigured, ENT_XML1, 'UTF-8'); |
505 | - $payloadIdentifier = "wifi." . $this->serial; |
|
505 | + $payloadIdentifier = "wifi.".$this->serial; |
|
506 | 506 | $payloadShortName = sprintf(_("SSID %s"), $escapedSSID); |
507 | 507 | $payloadName = sprintf(_("%s configuration for network name %s"), \config\ConfAssistant::CONSORTIUM['display_name'], $escapedSSID); |
508 | 508 | $encryptionTypeString = "WPA"; |
@@ -550,11 +550,11 @@ discard block |
||
550 | 550 | <key>PayloadDisplayName</key> |
551 | 551 | <string>$payloadShortName</string> |
552 | 552 | <key>PayloadIdentifier</key> |
553 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
553 | + <string>".self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
554 | 554 | <key>PayloadOrganization</key> |
555 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
555 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
556 | 556 | <key>PayloadType</key> |
557 | - <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi") . ".managed</string>"; |
|
557 | + <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi").".managed</string>"; |
|
558 | 558 | $retval .= $this->proxySettings(); |
559 | 559 | $retval .= $setupModesString; |
560 | 560 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | } |
567 | 567 | $retval .= " |
568 | 568 | <key>PayloadUUID</key> |
569 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
569 | + <string>" . \core\common\Entity::uuid()."</string> |
|
570 | 570 | <key>PayloadVersion</key> |
571 | 571 | <integer>1</integer> |
572 | 572 | $wifiNetworkIdentification</dict>"; |
@@ -595,15 +595,15 @@ discard block |
||
595 | 595 | <key>IsHotspot</key> |
596 | 596 | <false/> |
597 | 597 | <key>PayloadDescription</key> |
598 | - <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</string> |
|
598 | + <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name'])."</string> |
|
599 | 599 | <key>PayloadDisplayName</key> |
600 | - <string>" . _("Disabled WiFi network") . "</string> |
|
600 | + <string>" . _("Disabled WiFi network")."</string> |
|
601 | 601 | <key>PayloadIdentifier</key> |
602 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
602 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
603 | 603 | <key>PayloadType</key> |
604 | 604 | <string>com.apple.wifi.managed</string> |
605 | 605 | <key>PayloadUUID</key> |
606 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
606 | + <string>".\core\common\Entity::uuid()."</string> |
|
607 | 607 | <key>PayloadVersion</key> |
608 | 608 | <real>1</real>"; |
609 | 609 | $retval .= $this->proxySettings(); |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | $mimeBlob = base64_encode($binaryBlob); |
678 | 678 | $mimeFormatted = chunk_split($mimeBlob, 52, "\r\n"); |
679 | 679 | $payloadUUID = \core\common\Entity::uuid('', $mimeBlob); |
680 | - $retArray = ["block" => "<dict>" . |
|
680 | + $retArray = ["block" => "<dict>". |
|
681 | 681 | // we don't include the import password. It's displayed on screen, and should be input by the user. |
682 | 682 | // <key>Password</key> |
683 | 683 | // <string>" . $this->clientCert['password'] . "</string> |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | <key>PayloadDescription</key> |
691 | 691 | <string>MIME Base-64 encoded PKCS#12 Client Certificate</string> |
692 | 692 | <key>PayloadDisplayName</key> |
693 | - <string>" . _("eduroam user certificate") . "</string> |
|
693 | + <string>"._("eduroam user certificate")."</string> |
|
694 | 694 | <key>PayloadIdentifier</key> |
695 | 695 | <string>com.apple.security.pkcs12.$payloadUUID</string> |
696 | 696 | <key>PayloadType</key> |
@@ -700,7 +700,7 @@ discard block |
||
700 | 700 | <key>PayloadVersion</key> |
701 | 701 | <integer>1</integer> |
702 | 702 | </dict>", |
703 | - "UUID" => $payloadUUID,]; |
|
703 | + "UUID" => $payloadUUID, ]; |
|
704 | 704 | \core\common\Entity::outOfThePotatoes(); |
705 | 705 | return $retArray; |
706 | 706 | } |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | } |
719 | 719 | $expiryTime = new \DateTime($this->clientCert['certObject']->expiry); |
720 | 720 | return "<key>RemovalDate</key> |
721 | - <date>" . $expiryTime->format("Y-m-d") . "T" . $expiryTime->format("H:i:s") . "Z</date>"; |
|
721 | + <date>" . $expiryTime->format("Y-m-d")."T".$expiryTime->format("H:i:s")."Z</date>"; |
|
722 | 722 | } |
723 | 723 | |
724 | 724 | /** |
@@ -739,21 +739,21 @@ discard block |
||
739 | 739 | $stream = " |
740 | 740 | <dict> |
741 | 741 | <key>PayloadCertificateFileName</key> |
742 | - <string>" . $ca['uuid'] . ".der</string> |
|
742 | + <string>" . $ca['uuid'].".der</string> |
|
743 | 743 | <key>PayloadContent</key> |
744 | 744 | <data> |
745 | -" . $trimmedPem . "</data> |
|
745 | +" . $trimmedPem."</data> |
|
746 | 746 | <key>PayloadDescription</key> |
747 | - <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
747 | + <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst)."</string> |
|
748 | 748 | <key>PayloadDisplayName</key> |
749 | - <string>" . sprintf(_("%s CA"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
749 | + <string>" . sprintf(_("%s CA"), \core\common\Entity::$nomenclature_inst)."</string> |
|
750 | 750 | <key>PayloadIdentifier</key> |
751 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
751 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
752 | 752 | <key>PayloadOrganization</key> |
753 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
753 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
754 | 754 | <key>PayloadType</key> |
755 | 755 | <string>com.apple.security.root</string> |
756 | - <key>PayloadUUID</key><string>" . $ca['uuid'] . "</string> |
|
756 | + <key>PayloadUUID</key><string>" . $ca['uuid']."</string> |
|
757 | 757 | <key>PayloadVersion</key> |
758 | 758 | <integer>1</integer> |
759 | 759 | </dict>"; |
@@ -49,14 +49,14 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | switch ($_GET['token']) { |
52 | - case "SELF-REGISTER": |
|
53 | - $token = "SELF-REGISTER"; |
|
54 | - $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
55 | - $federation = \config\ConfAssistant::CONSORTIUM['selfservice_registration']; |
|
56 | - break; |
|
57 | - default: |
|
58 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
59 | - $checkval = $usermgmt->checkTokenValidity($token); |
|
52 | + case "SELF-REGISTER": |
|
53 | + $token = "SELF-REGISTER"; |
|
54 | + $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
55 | + $federation = \config\ConfAssistant::CONSORTIUM['selfservice_registration']; |
|
56 | + break; |
|
57 | + default: |
|
58 | + $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
59 | + $checkval = $usermgmt->checkTokenValidity($token); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | if ($checkval < 0) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ?> |
31 | 31 | <?php |
32 | 32 | |
33 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
33 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
34 | 34 | |
35 | 35 | $auth = new \web\lib\admin\Authentication(); |
36 | 36 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | $auth->authenticate(); |
42 | 42 | |
43 | 43 | if (!isset($_GET['token'])) { |
44 | - $elements->errorPage(_("Error creating new IdP binding!"),_("This page needs to be called with a valid invitation token!")); |
|
44 | + $elements->errorPage(_("Error creating new IdP binding!"), _("This page needs to be called with a valid invitation token!")); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | if (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL && $_GET['token'] == "SELF-REGISTER") { |
48 | - $elements->errorPage(_("Error creating new IdP binding!"),_("You tried to register in self-service, but this deployment does not allow self-service!")); |
|
48 | + $elements->errorPage(_("Error creating new IdP binding!"), _("You tried to register in self-service, but this deployment does not allow self-service!")); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | switch ($_GET['token']) { |
@@ -55,22 +55,22 @@ discard block |
||
55 | 55 | $federation = \config\ConfAssistant::CONSORTIUM['selfservice_registration']; |
56 | 56 | break; |
57 | 57 | default: |
58 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
58 | + $token = $validator->token(filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING)); |
|
59 | 59 | $checkval = $usermgmt->checkTokenValidity($token); |
60 | 60 | } |
61 | 61 | |
62 | 62 | if ($checkval < 0) { |
63 | 63 | echo $deco->pageheader(_("Error creating new IdP binding!"), "ADMIN-IDP"); |
64 | - echo "<h1>" . _("Error creating new IdP binding!") . "</h1>"; |
|
64 | + echo "<h1>"._("Error creating new IdP binding!")."</h1>"; |
|
65 | 65 | switch ($checkval) { |
66 | 66 | case \core\UserManagement::TOKENSTATUS_FAIL_ALREADYCONSUMED: |
67 | - echo "<p>" . sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureInst) . "</p>"; |
|
67 | + echo "<p>".sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureInst)."</p>"; |
|
68 | 68 | break; |
69 | 69 | case \core\UserManagement::TOKENSTATUS_FAIL_EXPIRED: |
70 | - echo "<p>" . sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed) . "</p>"; |
|
70 | + echo "<p>".sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed)."</p>"; |
|
71 | 71 | break; |
72 | 72 | default: |
73 | - echo "<p>" . _("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.") . "</p>"; |
|
73 | + echo "<p>"._("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.")."</p>"; |
|
74 | 74 | } |
75 | 75 | echo $deco->footer(); |
76 | 76 | throw new Exception("Terminating because something is wrong with the token we received."); |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | case "SELF-REGISTER": |
86 | 86 | $fed = new \core\Federation($federation); |
87 | 87 | $newidp = new \core\IdP($fed->newIdP(core\IdP::TYPE_IDPSP, $user, "FED", "SELFSERVICE")); |
88 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - selfservice registration"); |
|
88 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - selfservice registration"); |
|
89 | 89 | break; |
90 | 90 | default: |
91 | 91 | $newidp = $usermgmt->createIdPFromToken($token, $user); |
92 | 92 | $usermgmt->invalidateToken($token); |
93 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - Token used and invalidated"); |
|
93 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - Token used and invalidated"); |
|
94 | 94 | break; |
95 | 95 | } |
96 | 96 |
@@ -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 | $loggerInstance = new \core\common\Logging(); |
25 | 25 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | $user = new \core\User($_SESSION['user']); |
31 | 31 | if (!isset($_POST['submitbutton']) || $_POST['submitbutton'] != web\lib\common\FormElements::BUTTON_SAVE) { // what are we supposed to do? |
32 | - echo "<p>" . _("The page was called with insufficient data. Please report this as an error.") . "</p>"; |
|
32 | + echo "<p>"._("The page was called with insufficient data. Please report this as an error.")."</p>"; |
|
33 | 33 | echo $deco->footer(); |
34 | 34 | exit(0); |
35 | 35 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | if (isset($_POST['option'])) { |
47 | 47 | foreach ($_POST['option'] as $opt_id => $optname) { |
48 | 48 | if ($optname == "user:fedadmin") { |
49 | - echo "Security violation: user tried to make himself " . \config\ConfAssistant::CONSORTIUM['nomenclature_federation'] . " administrator!"; |
|
49 | + echo "Security violation: user tried to make himself ".\config\ConfAssistant::CONSORTIUM['nomenclature_federation']." administrator!"; |
|
50 | 50 | exit(1); |
51 | 51 | } |
52 | 52 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | ?> |
22 | 22 | <?php |
23 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
23 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
24 | 24 | |
25 | 25 | $auth = new \web\lib\admin\Authentication(); |
26 | 26 | $languageInstance = new \core\common\Language(); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $ownermgmt = new \core\UserManagement(); |
83 | 83 | $ownermgmt->addAdminToIdp($my_inst, $_SESSION['user']); |
84 | 84 | } else { |
85 | - echo "Fatal Error: you wanted to take control over an " . \config\ConfAssistant::CONSORTIUM['nomenclature_institution'] . ", but are not a " . \config\ConfAssistant::CONSORTIUM['nomenclature_federation'] . " operator!"; |
|
85 | + echo "Fatal Error: you wanted to take control over an ".\config\ConfAssistant::CONSORTIUM['nomenclature_institution'].", but are not a ".\config\ConfAssistant::CONSORTIUM['nomenclature_federation']." operator!"; |
|
86 | 86 | exit(1); |
87 | 87 | } |
88 | 88 | break; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | default: |
119 | 119 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
120 | 120 | } |
121 | - echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter) . " " . $cryptText, _("Sent successfully.")); |
|
121 | + echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter)." ".$cryptText, _("Sent successfully.")); |
|
122 | 122 | break; |
123 | 123 | case "FAILURE": |
124 | 124 | echo $uiElements->boxError(_("No invitation email could be sent!"), _("Sending failure!")); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | default: |
139 | 139 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
140 | 140 | } |
141 | - echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter) . " " . $cryptText, _("Partial success.")); |
|
141 | + echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter)." ".$cryptText, _("Partial success.")); |
|
142 | 142 | break; |
143 | 143 | case "INVALIDSYNTAX": |
144 | 144 | echo $uiElements->boxError(_("The invitation email address was malformed, no invitation was sent!"), _("The invitation email address was malformed, no invitation was sent!")); |
@@ -186,9 +186,9 @@ discard block |
||
186 | 186 | |
187 | 187 | echo "</td> |
188 | 188 | <td> |
189 | - <form action='inc/manageAdmins.inc.php?inst_id=" . $my_inst->identifier . "' method='post' " . ( $oneowner['ID'] != $_SESSION['user'] ? "onsubmit='popupRedirectWindow(this); return false;'" : "" ) . " accept-charset='UTF-8'> |
|
190 | - <input type='hidden' name='admin_id' value='" . $oneowner['ID'] . "'></input> |
|
191 | - <button type='submit' name='submitbutton' class='delete' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Delete Administrator") . "</button> |
|
189 | + <form action='inc/manageAdmins.inc.php?inst_id=" . $my_inst->identifier."' method='post' ".($oneowner['ID'] != $_SESSION['user'] ? "onsubmit='popupRedirectWindow(this); return false;'" : "")." accept-charset='UTF-8'> |
|
190 | + <input type='hidden' name='admin_id' value='" . $oneowner['ID']."'></input> |
|
191 | + <button type='submit' name='submitbutton' class='delete' value='" . web\lib\common\FormElements::BUTTON_DELETE."'>"._("Delete Administrator")."</button> |
|
192 | 192 | </form> |
193 | 193 | </td> |
194 | 194 | </tr>"; |
@@ -202,10 +202,10 @@ discard block |
||
202 | 202 | $loggerInstance = new \core\common\Logging(); |
203 | 203 | $loggerInstance->debug(4, "Displaying pending invitations for $my_inst->identifier.\n"); |
204 | 204 | if (count($pending_invites) > 0) { |
205 | - echo "<strong>" . _("Pending invitations for this IdP") . "</strong>"; |
|
205 | + echo "<strong>"._("Pending invitations for this IdP")."</strong>"; |
|
206 | 206 | echo "<table>"; |
207 | 207 | foreach ($pending_invites as $invitee) { |
208 | - echo "<tr><td>" . $invitee['mail'] . "</td><td>".sprintf(_("(expires %s)"), $invitee['expiry'])."</td></tr>"; |
|
208 | + echo "<tr><td>".$invitee['mail']."</td><td>".sprintf(_("(expires %s)"), $invitee['expiry'])."</td></tr>"; |
|
209 | 209 | } |
210 | 210 | echo "</table>"; |
211 | 211 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | |
228 | 228 | if (!$is_admin_himself) { |
229 | 229 | echo "<form action='inc/manageAdmins.inc.php?inst_id=$my_inst->identifier' method='post' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
230 | - <button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_TAKECONTROL . "'>" . sprintf(_("Take control of this %s"), $uiElements->nomenclatureInst) . "</button> |
|
230 | + <button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_TAKECONTROL."'>".sprintf(_("Take control of this %s"), $uiElements->nomenclatureInst)."</button> |
|
231 | 231 | </form>"; |
232 | 232 | } |
233 | 233 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | they are from the same user group. You are not allowed to share them to an unlimited |
63 | 63 | audience (e.g. on a publicly accessible web server).</li> |
64 | 64 | <li>If You are an eduroam Identity Provider administrator, you are allowed to download and pass on the Installers to |
65 | -your own <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution'];?> end users, e.g. on the support web pages of your <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution'];?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
65 | +your own <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution']; ?> end users, e.g. on the support web pages of your <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution']; ?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
66 | 66 | <li>If You are a third-party not affiliated with eduroam, you are only allowed to download and pass on |
67 | 67 | the Metadata and/or the Installers after having received written permission by the eduroam Operations team.</li> |
68 | 68 | </ul> |
@@ -128,20 +128,20 @@ discard block |
||
128 | 128 | if ($device == "TOTAL") { |
129 | 129 | continue; |
130 | 130 | } |
131 | - $retstring .= "<tr><td>$device</td><td>" . $numbers['ADMIN'] . "</td><td>" . $numbers['SILVERBULLET'] . "</td><td>" . $numbers['USER'] . "</td></tr>"; |
|
131 | + $retstring .= "<tr><td>$device</td><td>".$numbers['ADMIN']."</td><td>".$numbers['SILVERBULLET']."</td><td>".$numbers['USER']."</td></tr>"; |
|
132 | 132 | } |
133 | - $retstring .= "<tr><td><strong>TOTAL</strong></td><td><strong>" . $data['TOTAL']['ADMIN'] . "</strong></td><td><strong>" . $data['TOTAL']['SILVERBULLET'] . "</strong></td><td><strong>" . $data['TOTAL']['USER'] . "</strong></td></tr>"; |
|
133 | + $retstring .= "<tr><td><strong>TOTAL</strong></td><td><strong>".$data['TOTAL']['ADMIN']."</strong></td><td><strong>".$data['TOTAL']['SILVERBULLET']."</strong></td><td><strong>".$data['TOTAL']['USER']."</strong></td></tr>"; |
|
134 | 134 | break; |
135 | 135 | case "XML": |
136 | 136 | // the calls to date() operate on current date, so there is no chance for a FALSE to be returned. Silencing scrutinizer. |
137 | - $retstring .= "<federation id='$this->tld' ts='" . /** @scrutinizer ignore-type */ date("Y-m-d") . "T" . /** @scrutinizer ignore-type */ date("H:i:s") . "'>\n"; |
|
137 | + $retstring .= "<federation id='$this->tld' ts='"./** @scrutinizer ignore-type */ date("Y-m-d")."T"./** @scrutinizer ignore-type */ date("H:i:s")."'>\n"; |
|
138 | 138 | foreach ($data as $device => $numbers) { |
139 | 139 | if ($device == "TOTAL") { |
140 | 140 | continue; |
141 | 141 | } |
142 | - $retstring .= " <device name='" . $device . "'>\n <downloads group='admin'>" . $numbers['ADMIN'] . "</downloads>\n <downloads group='managed_idp'>" . $numbers['SILVERBULLET'] . "</downloads>\n <downloads group='user'>" . $numbers['USER'] . "</downloads>\n </device>"; |
|
142 | + $retstring .= " <device name='".$device."'>\n <downloads group='admin'>".$numbers['ADMIN']."</downloads>\n <downloads group='managed_idp'>".$numbers['SILVERBULLET']."</downloads>\n <downloads group='user'>".$numbers['USER']."</downloads>\n </device>"; |
|
143 | 143 | } |
144 | - $retstring .= "<total>\n <downloads group='admin'>" . $data['TOTAL']['ADMIN'] . "</downloads>\n <downloads group='managed_idp'>" . $data['TOTAL']['SILVERBULLET'] . "</downloads>\n <downloads group='user'>" . $data['TOTAL']['USER'] . "</downloads>\n</total>\n"; |
|
144 | + $retstring .= "<total>\n <downloads group='admin'>".$data['TOTAL']['ADMIN']."</downloads>\n <downloads group='managed_idp'>".$data['TOTAL']['SILVERBULLET']."</downloads>\n <downloads group='user'>".$data['TOTAL']['USER']."</downloads>\n</total>\n"; |
|
145 | 145 | $retstring .= "</federation>"; |
146 | 146 | break; |
147 | 147 | case "array": |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $identifier = $this->databaseHandle->lastID(); |
228 | 228 | |
229 | 229 | if ($identifier == 0 || !$this->loggerInstance->writeAudit($ownerId, "NEW", "Organisation $identifier")) { |
230 | - $text = "<p>Could not create a new " . \config\ConfAssistant::CONSORTIUM['nomenclature_inst'] . "!</p>"; |
|
230 | + $text = "<p>Could not create a new ".\config\ConfAssistant::CONSORTIUM['nomenclature_inst']."!</p>"; |
|
231 | 231 | echo $text; |
232 | 232 | throw new Exception($text); |
233 | 233 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $this->activationsTotal = $invitationRow->quantity; |
146 | 146 | $certificatesResult = $this->databaseHandle->exec("SELECT `serial_number`, `ca_type` FROM `silverbullet_certificate` WHERE `silverbullet_invitation_id` = ? ORDER BY `revocation_status`, `expiry` DESC", "i", $this->identifier); |
147 | 147 | $certificatesNumber = ($certificatesResult ? $certificatesResult->num_rows : 0); |
148 | - $this->loggerInstance->debug(5, "At token validation level, " . $certificatesNumber . " certificates exist.\n"); |
|
148 | + $this->loggerInstance->debug(5, "At token validation level, ".$certificatesNumber." certificates exist.\n"); |
|
149 | 149 | // SELECT -> resource, no boolean |
150 | 150 | while ($runner = mysqli_fetch_object(/** @scrutinizer ignore-type */ $certificatesResult)) { |
151 | 151 | $this->associatedCertificates[] = new \core\SilverbulletCertificate($runner->serial_number, $runner->ca_type); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | throw new Exception("Uh. Something went seriously wrong with URL path mangling."); |
205 | 205 | } |
206 | 206 | } |
207 | - $link = $link . $relPath; |
|
207 | + $link = $link.$relPath; |
|
208 | 208 | |
209 | 209 | if (preg_match('/admin$/', $link)) { |
210 | 210 | $link = substr($link, 0, -6); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } |
214 | 214 | } |
215 | 215 | |
216 | - return $link . '/accountstatus/accountstatus.php?token=' . $this->invitationTokenString; |
|
216 | + return $link.'/accountstatus/accountstatus.php?token='.$this->invitationTokenString; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $text .= sprintf(_("A new %s access credential has been created for you by your network administrator."), \config\ConfAssistant::CONSORTIUM['display_name']); |
241 | 241 | $text .= " "; |
242 | 242 | $text .= sprintf(_("Please follow the following link with the device you want to enable for %s to get a custom %s installation program just for you. You can click on the link, copy and paste it into a browser or scan the attached QR code."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']); |
243 | - $text .= "\n\n" . $this->link() . "\n\n"; // gets replaced with the token value by getBody() |
|
243 | + $text .= "\n\n".$this->link()."\n\n"; // gets replaced with the token value by getBody() |
|
244 | 244 | $text .= sprintf(_("Please keep this email or bookmark this link for future use. After picking up your %s installation program, you can use the same link to get status information about your %s account."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']); |
245 | 245 | $text .= "\n\n"; |
246 | 246 | $text .= _("Regards,"); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | var sbPage = 1; |
34 | 34 | <?php |
35 | 35 | $profile_list_size = 1; |
36 | -require_once dirname(__DIR__) . '/Divs.php'; |
|
36 | +require_once dirname(__DIR__).'/Divs.php'; |
|
37 | 37 | $divs = new \web\skins\modern\Divs($Gui); |
38 | 38 | |
39 | 39 | $visibility = 'sb'; |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | $Gui->loggerInstance->debug(4, $operatingSystem); |
45 | 45 | $uiElements = new web\lib\admin\UIElements(); |
46 | 46 | if ($operatingSystem) { |
47 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
47 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
48 | 48 | } |
49 | -require dirname(__DIR__) . '/user/js/cat_js.php'; |
|
49 | +require dirname(__DIR__).'/user/js/cat_js.php'; |
|
50 | 50 | ?> |
51 | 51 | var lang = "<?php echo($Gui->languageInstance->getLang()) ?>"; |
52 | 52 | </script> |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | <?php |
77 | 77 | switch ($statusInfo['errorcode']) { |
78 | 78 | case "GENERATOR_CONSUMED": |
79 | - echo $uiElements->boxError(_("You attempted to download an installer that was already downloaded before. Please request a new token from your administrator instead."), _("Attempt to re-use download link"), TRUE) . "<p>"; |
|
79 | + echo $uiElements->boxError(_("You attempted to download an installer that was already downloaded before. Please request a new token from your administrator instead."), _("Attempt to re-use download link"), TRUE)."<p>"; |
|
80 | 80 | break; |
81 | 81 | case NULL: |
82 | 82 | default: |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | echo " "; |
100 | 100 | echo sprintf(ngettext("<strong>%d</strong> of your credentials is not valid any more.", "<strong>%d</strong> of your credentials are not valid any more.", $noGoodCerts), $noGoodCerts); |
101 | 101 | } |
102 | - echo " <span id='detailtext'>" . _("I want to see the details.") . "</span>"; |
|
102 | + echo " <span id='detailtext'>"._("I want to see the details.")."</span>"; |
|
103 | 103 | echo "<table id='cert_details'></table>"; |
104 | 104 | } |
105 | 105 | } |
@@ -108,60 +108,60 @@ discard block |
||
108 | 108 | case \core\SilverbulletInvitation::SB_TOKENSTATUS_VALID: // treat both cases as equal |
109 | 109 | case \core\SilverbulletInvitation::SB_TOKENSTATUS_PARTIALLY_REDEEMED: |
110 | 110 | if ($statusInfo['invitation_object']->activationsTotal > 1) { // only show this extra info in the non-trivial case. |
111 | - echo "<h3>" . sprintf(_("Your invitation token is valid for %d more device activations (%d have already been used)."), $statusInfo['invitation_object']->activationsRemaining, $statusInfo['invitation_object']->activationsTotal - $statusInfo['invitation_object']->activationsRemaining) . "</h3>"; |
|
111 | + echo "<h3>".sprintf(_("Your invitation token is valid for %d more device activations (%d have already been used)."), $statusInfo['invitation_object']->activationsRemaining, $statusInfo['invitation_object']->activationsTotal - $statusInfo['invitation_object']->activationsRemaining)."</h3>"; |
|
112 | 112 | } |
113 | 113 | if (!$statusInfo["OS"]) { |
114 | - echo "<p>" . _("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.") . "</p>"; |
|
114 | + echo "<p>"._("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.")."</p>"; |
|
115 | 115 | break; |
116 | 116 | } |
117 | 117 | |
118 | 118 | $dev = new \core\DeviceFactory($statusInfo['OS']['device']); |
119 | 119 | $dev->device->calculatePreferredEapType([new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET)]); |
120 | 120 | if ($dev->device->selectedEap == []) { |
121 | - echo "<p>" . sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>"; |
|
121 | + echo "<p>".sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display'])."</p>"; |
|
122 | 122 | break; |
123 | 123 | } |
124 | - $message = $dev->device->options['message'] ?? '' ; |
|
124 | + $message = $dev->device->options['message'] ?? ''; |
|
125 | 125 | |
126 | 126 | $sbMessage = $dev->device->options['sb_message'] ?? ''; |
127 | 127 | if ($message != '' && $sbMessage != '') { |
128 | - $message = $message . "<p>" . $sbMessage; |
|
128 | + $message = $message."<p>".$sbMessage; |
|
129 | 129 | } else { |
130 | - $message = $message . $sbMessage; |
|
130 | + $message = $message.$sbMessage; |
|
131 | 131 | } |
132 | 132 | |
133 | - echo "<div id='sb_download_message'><p>" . sprintf(_("You can now download a personalised %s installation program."), \config\ConfAssistant::CONSORTIUM['display_name']); |
|
133 | + echo "<div id='sb_download_message'><p>".sprintf(_("You can now download a personalised %s installation program."), \config\ConfAssistant::CONSORTIUM['display_name']); |
|
134 | 134 | // echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']); |
135 | 135 | echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']); |
136 | - echo "<p style='color:red;'>" . sprintf(_("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local %s administrator."), \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>"; |
|
137 | - echo "<p>" . _("During the installation process, you will be asked for the following import PIN. This only happens once during the installation. You do not have to write down this PIN.") . "</p></div>"; |
|
136 | + echo "<p style='color:red;'>".sprintf(_("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local %s administrator."), \config\ConfAssistant::CONSORTIUM['display_name'])."</p>"; |
|
137 | + echo "<p>"._("During the installation process, you will be asked for the following import PIN. This only happens once during the installation. You do not have to write down this PIN.")."</p></div>"; |
|
138 | 138 | |
139 | 139 | $importPassword = \core\common\Entity::randomString(4, "0123456789"); |
140 | 140 | $profile = new \core\ProfileSilverbullet($statusInfo['profile']->identifier, NULL); |
141 | 141 | |
142 | - echo "<h2>" . sprintf(_("Import PIN: %s"), $importPassword) . "</h2>"; |
|
142 | + echo "<h2>".sprintf(_("Import PIN: %s"), $importPassword)."</h2>"; |
|
143 | 143 | $_SESSION['individualtoken'] = $cleanToken; |
144 | 144 | $_SESSION['importpassword'] = $importPassword; |
145 | - echo "<input type='hidden' name='device' value='" . $statusInfo['OS']['device'] . "'/>"; |
|
145 | + echo "<input type='hidden' name='device' value='".$statusInfo['OS']['device']."'/>"; |
|
146 | 146 | echo "<input type='hidden' name='generatedfor' value='silverbullet'/>"; |
147 | - echo "<button class='large_button' id='user_button_sb' style='height:80px;'><span id='user_buttonnnn'>" . sprintf(_("Click here to download your %s installer!"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</span></button>"; |
|
147 | + echo "<button class='large_button' id='user_button_sb' style='height:80px;'><span id='user_buttonnnn'>".sprintf(_("Click here to download your %s installer!"), \config\ConfAssistant::CONSORTIUM['display_name'])."</span></button>"; |
|
148 | 148 | echo "<div class='device_info' id='info_g_sb'></div>"; |
149 | 149 | break; |
150 | 150 | case \core\SilverbulletInvitation::SB_TOKENSTATUS_EXPIRED: |
151 | 151 | echo "<h2>Invitation link expired</h2>"; |
152 | - echo "<p>" . sprintf(_("Unfortunately, the invitation link you just used is too old. The %s sign-up invitation was valid until %s. You cannot use this link any more. Please ask your administrator to issue you a new invitation link."), \config\ConfAssistant::CONSORTIUM['display_name'], $statusInfo['invitation_object']->expiry) . "</p>"; |
|
152 | + echo "<p>".sprintf(_("Unfortunately, the invitation link you just used is too old. The %s sign-up invitation was valid until %s. You cannot use this link any more. Please ask your administrator to issue you a new invitation link."), \config\ConfAssistant::CONSORTIUM['display_name'], $statusInfo['invitation_object']->expiry)."</p>"; |
|
153 | 153 | echo "<p>Below is all the information about your account's other login details, if any.</p>"; |
154 | 154 | // do NOT break, display full account info instead (this was a previously valid token after all) |
155 | 155 | case \core\SilverbulletInvitation::SB_TOKENSTATUS_REDEEMED: |
156 | 156 | // nothing to say really. User got the breakdown of certs above, and this link doesn't give him any new ones. |
157 | 157 | break; |
158 | 158 | case \core\SilverbulletInvitation::SB_TOKENSTATUS_INVALID: |
159 | - echo "<h2>" . _("Account information not found") . "</h2>"; |
|
160 | - echo "<p>" . sprintf(_("The invitation link you followed does not map to any invititation we have on file.") . "</p><p>" . _("You should use the exact link you got during sign-up to come here. Alternatively, if you have a valid %s credential already, you can visit this page and Accept the question about logging in with a client certificate (select a certificate with a name ending in '…%s')."),\config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::SILVERBULLET['realm_suffix']); |
|
159 | + echo "<h2>"._("Account information not found")."</h2>"; |
|
160 | + echo "<p>".sprintf(_("The invitation link you followed does not map to any invititation we have on file.")."</p><p>"._("You should use the exact link you got during sign-up to come here. Alternatively, if you have a valid %s credential already, you can visit this page and Accept the question about logging in with a client certificate (select a certificate with a name ending in '…%s')."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::SILVERBULLET['realm_suffix']); |
|
161 | 161 | } |
162 | 162 | if (isset($statusInfo['profile_id']) && isset($statusInfo['idp_id'])) { |
163 | - echo "<input type='hidden' name='profile' id='profile_id' value='" . $statusInfo['profile_id'] . "'/>"; |
|
164 | - echo "<input type='hidden' id='inst_id' name='idp' value='" . $statusInfo['idp_id'] . "'/>"; |
|
163 | + echo "<input type='hidden' name='profile' id='profile_id' value='".$statusInfo['profile_id']."'/>"; |
|
164 | + echo "<input type='hidden' id='inst_id' name='idp' value='".$statusInfo['idp_id']."'/>"; |
|
165 | 165 | } |
166 | 166 | ?> |
167 | 167 | </div> |
@@ -181,18 +181,18 @@ discard block |
||
181 | 181 | $attributes = $statusInfo['attributes']; |
182 | 182 | $supportInfo = ''; |
183 | 183 | if (!empty($attributes['local_url'])) { |
184 | - $supportInfo .= '<tr><td>' . ("WWW:") . '</td><td><a href="' . $attributes['local_url'] . '" target="_blank">' . $attributes['local_url'] . '</a></td></tr>'; |
|
184 | + $supportInfo .= '<tr><td>'.("WWW:").'</td><td><a href="'.$attributes['local_url'].'" target="_blank">'.$attributes['local_url'].'</a></td></tr>'; |
|
185 | 185 | } |
186 | 186 | if (!empty($attributes['local_email'])) { |
187 | - $supportInfo .= '<tr><td>' . ("email:") . '</td><td><a href="' . $attributes['local_email'] . '" target="_blank">' . $attributes['local_email'] . '</a></td></tr>'; |
|
187 | + $supportInfo .= '<tr><td>'.("email:").'</td><td><a href="'.$attributes['local_email'].'" target="_blank">'.$attributes['local_email'].'</a></td></tr>'; |
|
188 | 188 | } |
189 | 189 | if (!empty($attributes['local_phone'])) { |
190 | - $supportInfo .= '<tr><td>' . ("tel:") . '</td><td><a href="' . $attributes['local_phone'] . '" target="_blank">' . $attributes['local_phone'] . '</a></td></tr>'; |
|
190 | + $supportInfo .= '<tr><td>'.("tel:").'</td><td><a href="'.$attributes['local_phone'].'" target="_blank">'.$attributes['local_phone'].'</a></td></tr>'; |
|
191 | 191 | } |
192 | 192 | if ($supportInfo != '') { |
193 | - $supportInfo = "<table><tr><th colspan='2'>" . _("If you encounter problems, then you can obtain direct assistance from your organisation at:") . "</th></tr>$supportInfo</table>"; |
|
193 | + $supportInfo = "<table><tr><th colspan='2'>"._("If you encounter problems, then you can obtain direct assistance from your organisation at:")."</th></tr>$supportInfo</table>"; |
|
194 | 194 | } else { |
195 | - $supportInfo = "<table><tr><th colspan='2'>" . _("If you encounter problems you should ask those who gave you your account for help.") . "</th></tr></table>"; |
|
195 | + $supportInfo = "<table><tr><th colspan='2'>"._("If you encounter problems you should ask those who gave you your account for help.")."</th></tr></table>"; |
|
196 | 196 | } |
197 | 197 | ?> |
198 | 198 | <script> |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | var logo = <?php echo $statusInfo['idp_logo']; ?>; |
202 | 202 | var idpId = <?php echo $statusInfo['idp_id']; ?>; |
203 | 203 | <?php |
204 | - if($message != '') { |
|
204 | + if ($message != '') { |
|
205 | 205 | echo "message = \"$message\";\n"; |
206 | 206 | } |
207 | 207 | ?> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /* |
21 | 21 | * Class autoloader invocation, should be included prior to any other code at the entry points to the application |
22 | 22 | */ |
23 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
23 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
24 | 24 | |
25 | 25 | $auth = new \web\lib\admin\Authentication(); |
26 | 26 | $auth->authenticate(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $fed = new \core\Federation($inst->federation); |
54 | 54 | $allowSb = $fed->getAttributes("fed:silverbullet"); |
55 | 55 | if (count($allowSb) == 0) { |
56 | - throw new Exception("We were told to create a new SB profile, but this " . \config\ConfAssistant::CONSORTIUM['nomenclature_federation'] . " does not allow SB at all!"); |
|
56 | + throw new Exception("We were told to create a new SB profile, but this ".\config\ConfAssistant::CONSORTIUM['nomenclature_federation']." does not allow SB at all!"); |
|
57 | 57 | } |
58 | 58 | // okay, new SB profiles are allowed. |
59 | 59 | // but is there a support:email attribute on inst level? |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // Create one. |
65 | 65 | $newProfile = $inst->newProfile(core\AbstractProfile::PROFILETYPE_SILVERBULLET); |
66 | 66 | // and modify the REQUEST_URI to add the new profile ID |
67 | - $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] . "&profile_id=" . $newProfile->identifier; |
|
67 | + $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI']."&profile_id=".$newProfile->identifier; |
|
68 | 68 | $_GET['profile_id'] = $newProfile->identifier; |
69 | 69 | $profile = $newProfile; |
70 | 70 | } else { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | break; |
133 | 133 | } |
134 | 134 | $properName = $validator->syntaxConformUser($elements[0]); |
135 | - $properDate = new DateTime($elements[1] . " 00:00:00"); |
|
135 | + $properDate = new DateTime($elements[1]." 00:00:00"); |
|
136 | 136 | $numberOfActivations = $elements[2] ?? 1; |
137 | 137 | $number = $validator->integer($numberOfActivations); |
138 | 138 | if ($number === FALSE) { // invalid input received, default to sane |
@@ -225,18 +225,18 @@ discard block |
||
225 | 225 | // warn and ask for confirmation unless already confirmed |
226 | 226 | if (!isset($_POST['insecureconfirm']) || $_POST['insecureconfirm'] != "CONFIRM") { |
227 | 227 | echo $deco->pageheader(_("Insecure mail domain!"), "ADMIN-IDP-USERS"); |
228 | - echo "<p>" . sprintf(_("The mail domain of the mail address <strong>%s</strong> is not secure: some or all of the mail servers are not accepting encrypted connections (no consistent support for STARTTLS)."), $properEmail) . "</p>"; |
|
229 | - echo "<p>" . _("The invitation would need to be sent in cleartext across the internet, and can possibly be read and abused by anyone in transit.") . "</p>"; |
|
230 | - echo "<p>" . _("Do you want the system to send this mail anyway?") . "</p>"; |
|
228 | + echo "<p>".sprintf(_("The mail domain of the mail address <strong>%s</strong> is not secure: some or all of the mail servers are not accepting encrypted connections (no consistent support for STARTTLS)."), $properEmail)."</p>"; |
|
229 | + echo "<p>"._("The invitation would need to be sent in cleartext across the internet, and can possibly be read and abused by anyone in transit.")."</p>"; |
|
230 | + echo "<p>"._("Do you want the system to send this mail anyway?")."</p>"; |
|
231 | 231 | echo $formtext; |
232 | - echo "<button type='submit' class='delete'>" . _("DO NOT SEND") . "</button>"; |
|
232 | + echo "<button type='submit' class='delete'>"._("DO NOT SEND")."</button>"; |
|
233 | 233 | echo "</form>"; |
234 | 234 | echo $formtext; |
235 | - echo "<input type='hidden' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT . "'</>"; |
|
235 | + echo "<input type='hidden' name='command' value='".\web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT."'</>"; |
|
236 | 236 | echo "<input type='hidden' name='address' value='$properEmail'</>"; |
237 | - echo "<input type='hidden' name='token' value='" . $invitationObject->invitationTokenString . "'</>"; |
|
237 | + echo "<input type='hidden' name='token' value='".$invitationObject->invitationTokenString."'</>"; |
|
238 | 238 | echo "<input type='hidden' name='insecureconfirm' value='CONFIRM'/>"; |
239 | - echo "<button type='submit'>" . _("Send anyway.") . "</button>"; |
|
239 | + echo "<button type='submit'>"._("Send anyway.")."</button>"; |
|
240 | 240 | echo "</form>"; |
241 | 241 | echo $deco->footer(); |
242 | 242 | exit; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $allUsers = $profile->listAllUsers(); |
287 | 287 | $activeUsers = $profile->listActiveUsers(); |
288 | 288 | |
289 | -echo $deco->defaultPagePrelude(sprintf(_('Managing %s users'), \core\ProfileSilverbullet::PRODUCTNAME )); |
|
289 | +echo $deco->defaultPagePrelude(sprintf(_('Managing %s users'), \core\ProfileSilverbullet::PRODUCTNAME)); |
|
290 | 290 | |
291 | 291 | ?> |
292 | 292 | <script src='js/option_expand.js' type='text/javascript'></script> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | echo $deco->productHeader("ADMIN-IDP-USERS"); |
325 | 325 | ?> |
326 | 326 | <img src='../resources/images/icons/loading51.gif' id='spin' alt='loading...' style='position:absolute;left: 50%; top: 50%; transform: translate(-100px, -50px); display:none; z-index: 100;'> |
327 | - <?php echo $uiElements->instLevelInfoBoxes($inst);?> |
|
327 | + <?php echo $uiElements->instLevelInfoBoxes($inst); ?> |
|
328 | 328 | <div class='infobox'> |
329 | 329 | <h2><?php echo sprintf(_('Current %s users'), \core\ProfileSilverbullet::PRODUCTNAME); ?></h2> |
330 | 330 | <table> |
@@ -424,23 +424,23 @@ discard block |
||
424 | 424 | ?> |
425 | 425 | |
426 | 426 | <div class="sb-certificate-summary ca-summary" <?php echo $style; ?>> |
427 | - <div class="sb-certificate-details"><?php echo _("Device:") . " " . $display; ?> |
|
428 | - <br><?php echo _("Serial Number:") . " " . gmp_strval($oneCert->serial, 16); ?> |
|
429 | - <br><?php echo _("CN:") . " " . explode('@', $oneCert->username)[0] . "@…"; ?> |
|
430 | - <br><?php echo _("Expiry:") . " " . $oneCert->expiry; ?> |
|
431 | - <br><?php echo _("Issued:") . " " . $oneCert->issued; ?> |
|
427 | + <div class="sb-certificate-details"><?php echo _("Device:")." ".$display; ?> |
|
428 | + <br><?php echo _("Serial Number:")." ".gmp_strval($oneCert->serial, 16); ?> |
|
429 | + <br><?php echo _("CN:")." ".explode('@', $oneCert->username)[0]."@…"; ?> |
|
430 | + <br><?php echo _("Expiry:")." ".$oneCert->expiry; ?> |
|
431 | + <br><?php echo _("Issued:")." ".$oneCert->issued; ?> |
|
432 | 432 | </div> |
433 | 433 | <div style="text-align:right;padding-top: 5px; <?php echo $buttonStyle; ?>"> |
434 | 434 | <?php |
435 | 435 | if ($buttonText == "") { |
436 | 436 | echo "$formtext" |
437 | - . "<input type='hidden' name='certSerial' value='" . $oneCert->serial . "'/>" |
|
438 | - . "<input type='hidden' name='certAlgo' value='" . $oneCert->ca_type . "'/>" |
|
437 | + . "<input type='hidden' name='certSerial' value='".$oneCert->serial."'/>" |
|
438 | + . "<input type='hidden' name='certAlgo' value='".$oneCert->ca_type."'/>" |
|
439 | 439 | . "<button type='submit' " |
440 | 440 | . "name='command' " |
441 | - . "value='" . \web\lib\common\FormElements::BUTTON_REVOKECREDENTIAL . "' " |
|
441 | + . "value='".\web\lib\common\FormElements::BUTTON_REVOKECREDENTIAL."' " |
|
442 | 442 | . "class='delete' " |
443 | - . "onclick='return confirm(\"" . sprintf(_("The device in question will stop functioning with %s. The revocation cannot be undone. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name']) . "\")'>" |
|
443 | + . "onclick='return confirm(\"".sprintf(_("The device in question will stop functioning with %s. The revocation cannot be undone. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name'])."\")'>" |
|
444 | 444 | . _("Revoke") |
445 | 445 | . "</button>" |
446 | 446 | . "</form>"; |
@@ -466,38 +466,38 @@ discard block |
||
466 | 466 | $tokenHtmlBuffer .= "<tr class='sb-certificate-row'><td></td>"; |
467 | 467 | $jsEncodedBody = str_replace('\n', '%0D%0A', str_replace('"', '', json_encode($invitationObject->invitationMailBody()))); |
468 | 468 | $tokenHtmlBuffer .= "<td>"; |
469 | - $tokenHtmlBuffer .= sprintf(_("The invitation token %s is ready for sending! Choose how to send it:"),"<input type='text' readonly='readonly' style='background-color:lightgrey;' size='60' value='" . $invitationObject->link() . "' name='token' class='identifiedtokenarea-" . $invitationObject->identifier . "'>(…)<br/>"); |
|
469 | + $tokenHtmlBuffer .= sprintf(_("The invitation token %s is ready for sending! Choose how to send it:"), "<input type='text' readonly='readonly' style='background-color:lightgrey;' size='60' value='".$invitationObject->link()."' name='token' class='identifiedtokenarea-".$invitationObject->identifier."'>(…)<br/>"); |
|
470 | 470 | $tokenHtmlBuffer .= "<table> |
471 | 471 | <tr><td style='vertical-align:bottom;'>"._("E-Mail:")."</td><td> |
472 | 472 | $formtext |
473 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
473 | + <input type='hidden' value='".$invitationObject->invitationTokenString."' name='token'><br/> |
|
474 | 474 | <input type='text' name='address' id='address-$invitationObject->identifier'/> |
475 | - <button type='button' onclick='window.location=\"mailto:\"+document.getElementById(\"address-$invitationObject->identifier\").value+\"?subject=" . $invitationObject->invitationMailSubject() . "&body=$jsEncodedBody\"; return false;'>" . _("Local mail client") . "</button> |
|
476 | - <button type='submit' name='command' onclick='document.getElementById(\"spin\").style.display =\"block\"' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT . "'>"._("Send with CAT")."</button> |
|
475 | + <button type='button' onclick='window.location=\"mailto:\"+document.getElementById(\"address-$invitationObject->identifier\").value+\"?subject=".$invitationObject->invitationMailSubject()."&body=$jsEncodedBody\"; return false;'>"._("Local mail client")."</button> |
|
476 | + <button type='submit' name='command' onclick='document.getElementById(\"spin\").style.display =\"block\"' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT."'>"._("Send with CAT")."</button> |
|
477 | 477 | </form> |
478 | 478 | </td></tr> |
479 | 479 | <tr><td style='vertical-align:bottom;'>"._("SMS:")."</td><td> |
480 | 480 | $formtext |
481 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
481 | + <input type='hidden' value='".$invitationObject->invitationTokenString."' name='token'><br/> |
|
482 | 482 | <input type='text' name='smsnumber' /> |
483 | - <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONSMS . "'>" . _("Send in SMS...") . "</button> |
|
483 | + <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONSMS."'>"._("Send in SMS...")."</button> |
|
484 | 484 | </form> |
485 | 485 | </td></tr> |
486 | 486 | <tr><td style='vertical-align:bottom;'>"._("Manual:")."</td><td> |
487 | - <button type='button' class='clipboardButton' onclick='clipboardCopy(" . $invitationObject->identifier . ");'>" . _("Copy to Clipboard") . "</button> |
|
487 | + <button type='button' class='clipboardButton' onclick='clipboardCopy(" . $invitationObject->identifier.");'>"._("Copy to Clipboard")."</button> |
|
488 | 488 | <form style='display:inline-block;' method='post' action='inc/displayQRcode.inc.php' onsubmit='popupQRWindow(this); return false;' accept-charset='UTF-8'> |
489 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
490 | - <button type='submit'>" . _("Display QR code") . "</button> |
|
489 | + <input type='hidden' value='" . $invitationObject->invitationTokenString."' name='token'><br/> |
|
490 | + <button type='submit'>" . _("Display QR code")."</button> |
|
491 | 491 | </form> |
492 | 492 | </td></tr> |
493 | 493 | |
494 | 494 | </table> |
495 | 495 | </td>"; |
496 | - $tokenHtmlBuffer .= "<td>" . _("Expiry Date:") . " " . $invitationObject->expiry . " UTC<br>" . _("Activations remaining:") . " " . sprintf(_("%d of %d"), $invitationObject->activationsRemaining, $invitationObject->activationsTotal) . "</td>"; |
|
496 | + $tokenHtmlBuffer .= "<td>"._("Expiry Date:")." ".$invitationObject->expiry." UTC<br>"._("Activations remaining:")." ".sprintf(_("%d of %d"), $invitationObject->activationsRemaining, $invitationObject->activationsTotal)."</td>"; |
|
497 | 497 | $tokenHtmlBuffer .= "<td>" |
498 | 498 | . $formtext |
499 | - . "<input type='hidden' name='invitationtoken' value='" . $invitationObject->invitationTokenString . "'/>" |
|
500 | - . "<button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_REVOKEINVITATION . "' class='delete'>"._("Revoke"). "</button></form>" |
|
499 | + . "<input type='hidden' name='invitationtoken' value='".$invitationObject->invitationTokenString."'/>" |
|
500 | + . "<button type='submit' name='command' value='".\web\lib\common\FormElements::BUTTON_REVOKEINVITATION."' class='delete'>"._("Revoke")."</button></form>" |
|
501 | 501 | . "</td></tr>"; |
502 | 502 | break; |
503 | 503 | case core\SilverbulletInvitation::SB_TOKENSTATUS_EXPIRED: |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | <span><input type="text" maxlength="19" class="sb-date-picker" name="userexpiry" value="<?php echo $profile->getUserExpiryDate($oneUserId); ?>"> (UTC)</span> |
520 | 520 | </div> |
521 | 521 | <input type="hidden" name="userid" value="<?php echo $oneUserId; ?>"/> |
522 | - <button type="submit" name="command" value="<?php echo \web\lib\common\FormElements::BUTTON_CHANGEUSEREXPIRY ?>"><?php echo _("Update");?></button> |
|
522 | + <button type="submit" name="command" value="<?php echo \web\lib\common\FormElements::BUTTON_CHANGEUSEREXPIRY ?>"><?php echo _("Update"); ?></button> |
|
523 | 523 | </form> |
524 | 524 | </td> |
525 | 525 | <td> |
@@ -527,13 +527,13 @@ discard block |
||
527 | 527 | <?php |
528 | 528 | if ($hasOnePendingInvite || count($validCerts) > 0) { |
529 | 529 | $deletionText = sprintf(_("All of the currently active devices will stop functioning with %s. This cannot be undone. While the user can be re-activated later, they will then need to be re-provisioned with new invitation tokens. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name']); |
530 | - echo $formtext . " |
|
530 | + echo $formtext." |
|
531 | 531 | <input type='hidden' name='userid' value='$oneUserId'/> |
532 | 532 | <button type='submit' " |
533 | 533 | . "name='command' " |
534 | - . "value='" . \web\lib\common\FormElements::BUTTON_DEACTIVATEUSER . "' " |
|
534 | + . "value='".\web\lib\common\FormElements::BUTTON_DEACTIVATEUSER."' " |
|
535 | 535 | . "class='delete' " |
536 | - . ( count($validCerts) > 0 ? "onclick='return confirm(\"".$deletionText."\")' " : "" ) |
|
536 | + . (count($validCerts) > 0 ? "onclick='return confirm(\"".$deletionText."\")' " : "") |
|
537 | 537 | . ">" |
538 | 538 | . _("Deactivate User") |
539 | 539 | . "</button> |
@@ -572,13 +572,13 @@ discard block |
||
572 | 572 | . ' If all accounts shown as active above are indeed still valid, please check the box below and push "Save".' |
573 | 573 | . ' If any of the accounts are stale, please deactivate them by pushing the corresponding button before doing this.'), \config\ConfAssistant::SILVERBULLET['gracetime'] ?? core\ProfileSilverbullet::SB_ACKNOWLEDGEMENT_REQUIRED_DAYS); |
574 | 574 | |
575 | - echo $formtext . "<div style='padding-bottom: 20px;'>" |
|
575 | + echo $formtext."<div style='padding-bottom: 20px;'>" |
|
576 | 576 | . " |
577 | 577 | <p>$acknowledgeText</p> |
578 | 578 | <input type='checkbox' name='acknowledge' value='true'> |
579 | - <label>" . sprintf(_("I have verified that all configured users are still eligible for %s."),\config\ConfAssistant::CONSORTIUM['display_name']) . "</label> |
|
579 | + <label>".sprintf(_("I have verified that all configured users are still eligible for %s."), \config\ConfAssistant::CONSORTIUM['display_name'])."</label> |
|
580 | 580 | </div> |
581 | - <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_ACKUSERELIGIBILITY . "'>"._("Save")."</button></form>"; |
|
581 | + <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_ACKUSERELIGIBILITY."'>"._("Save")."</button></form>"; |
|
582 | 582 | } |
583 | 583 | ?> |
584 | 584 | </div> |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | |
656 | 656 | <form action="overview_idp.php?inst_id=<?php echo $inst->identifier; ?>" method="POST"> |
657 | 657 | <p> |
658 | - <button type='submit' name='submitbutton' value="nomatter"><?php echo sprintf(_("Back to %s page"),$uiElements->nomenclatureInst);?></button> |
|
658 | + <button type='submit' name='submitbutton' value="nomatter"><?php echo sprintf(_("Back to %s page"), $uiElements->nomenclatureInst); ?></button> |
|
659 | 659 | </p> |
660 | 660 | </form> |
661 | 661 | <?php |