@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | if ( |
| 523 | 523 | get_class($this) == "devices\apple_mobileconfig\DeviceMobileconfigIos12plus" || |
| 524 | 524 | get_class($this) == "devices\apple_mobileconfig\DeviceMobileconfigOsX" |
| 525 | - ) { |
|
| 525 | + ) { |
|
| 526 | 526 | return "WPA2"; |
| 527 | 527 | } else { |
| 528 | 528 | return "WPA"; |
@@ -809,7 +809,7 @@ discard block |
||
| 809 | 809 | \core\common\Entity::$nomenclature_inst, |
| 810 | 810 | count($this->CAsAccountedFor)+1, |
| 811 | 811 | ($ca['root'] ? _("Root") : _("Intermediate"))) . |
| 812 | - "</string> |
|
| 812 | + "</string> |
|
| 813 | 813 | <key>PayloadIdentifier</key> |
| 814 | 814 | <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
| 815 | 815 | <key>PayloadOrganization</key> |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | \core\common\Entity::intoThePotatoes(); |
| 146 | 146 | // that's what all variants support. Sub-classes can change it. |
| 147 | 147 | $this->setSupportedEapMethods([\core\common\EAP::EAPTYPE_PEAP_MSCHAP2, \core\common\EAP::EAPTYPE_TTLS_PAP, \core\common\EAP::EAPTYPE_TTLS_MSCHAP2, \core\common\EAP::EAPTYPE_SILVERBULLET]); |
| 148 | - foreach(\core\common\EAP::listKnownEAPTypes() as $eapType) { |
|
| 148 | + foreach (\core\common\EAP::listKnownEAPTypes() as $eapType) { |
|
| 149 | 149 | if ($eapType->isPasswordRequired() || $eapType->isPasswordOptional()) { |
| 150 | 150 | $this->specialities['internal:verify_userinput_suffix'][serialize($eapType->getArrayRep())] = _("It is not possible to actively verify the user input for suffix match; but if there is no 'Terms of Use' configured, the installer will display a corresponding hint to the user instead."); |
| 151 | 151 | $this->specialities['media:openroaming'][serialize($eapType->getArrayRep())] = _("OpenRoaming is not provisioned due to severe UI limitations during install time."); |
@@ -185,15 +185,15 @@ discard block |
||
| 185 | 185 | <key>PayloadDescription</key> |
| 186 | 186 | <string>$tagline</string> |
| 187 | 187 | <key>PayloadDisplayName</key> |
| 188 | - <string>" . \config\ConfAssistant::CONSORTIUM['display_name'] . "</string> |
|
| 188 | + <string>".\config\ConfAssistant::CONSORTIUM['display_name']."</string> |
|
| 189 | 189 | <key>PayloadIdentifier</key> |
| 190 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
| 190 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
| 191 | 191 | <key>PayloadOrganization</key> |
| 192 | - <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> |
|
| 192 | + <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> |
|
| 193 | 193 | <key>PayloadType</key> |
| 194 | 194 | <string>Configuration</string> |
| 195 | 195 | <key>PayloadUUID</key> |
| 196 | - <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX . $this->massagedConsortium . $this->massagedCountry . $this->massagedInst . $this->massagedProfile) . "</string> |
|
| 196 | + <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX.$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile)."</string> |
|
| 197 | 197 | <key>PayloadVersion</key> |
| 198 | 198 | <integer>1</integer>"; |
| 199 | 199 | \core\common\Entity::outOfThePotatoes(); |
@@ -225,21 +225,21 @@ discard block |
||
| 225 | 225 | { |
| 226 | 226 | \core\common\Entity::intoThePotatoes(); |
| 227 | 227 | if (isset($this->attributes['support:info_file'])) { |
| 228 | - 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; |
|
| 228 | + 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; |
|
| 229 | 229 | } |
| 230 | 230 | if ($this->attributes['internal:verify_userinput_suffix'][0] != 0) { |
| 231 | 231 | if ($this->attributes['internal:hint_userinput_suffix'][0] != 0) { |
| 232 | - $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE . sprintf(_("Important Notice: your username MUST end exactly with '...@%s' !"), $this->attributes['internal:realm'][0]) . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 232 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE.sprintf(_("Important Notice: your username MUST end exactly with '...@%s' !"), $this->attributes['internal:realm'][0]).MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 233 | 233 | \core\common\Entity::outOfThePotatoes(); |
| 234 | 234 | return $retval; |
| 235 | 235 | } else { |
| 236 | 236 | if (strlen($this->attributes['internal:realm'][0]) > 0) { |
| 237 | 237 | /// note space between variable and exclamation mark - makes sure users don't mistakenly think the exclamation mark is part of the required username! |
| 238 | - $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE . sprintf(_("Important Notice: your username MUST contain an '@' and end with ...%s !"), $this->attributes['internal:realm'][0]) . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 238 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE.sprintf(_("Important Notice: your username MUST contain an '@' and end with ...%s !"), $this->attributes['internal:realm'][0]).MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 239 | 239 | \core\common\Entity::outOfThePotatoes(); |
| 240 | 240 | return $retval; |
| 241 | 241 | } |
| 242 | - $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; |
|
| 242 | + $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; |
|
| 243 | 243 | \core\common\Entity::outOfThePotatoes(); |
| 244 | 244 | return $retval; |
| 245 | 245 | } |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | // also escape htmlspecialchars |
| 264 | 264 | // not all names and profiles have a name, so be prepared |
| 265 | 265 | |
| 266 | - $this->loggerInstance->debug(5, "List of available attributes: " . var_export($this->attributes, TRUE)); |
|
| 266 | + $this->loggerInstance->debug(5, "List of available attributes: ".var_export($this->attributes, TRUE)); |
|
| 267 | 267 | |
| 268 | 268 | $this->instName = $this->attributes['general:instname'][0] ?? _("Unnamed Organisation"); |
| 269 | 269 | $this->profileName = $this->attributes['profile:name'][0] ?? _("Unnamed Profile"); |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | file_put_contents('installer_profile', $outputXml); |
| 307 | 307 | |
| 308 | - $fileName = $this->installerBasename . '.mobileconfig'; |
|
| 308 | + $fileName = $this->installerBasename.'.mobileconfig'; |
|
| 309 | 309 | |
| 310 | 310 | if (!$this->sign) { |
| 311 | 311 | rename("installer_profile", $fileName); |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | return $fileName; |
| 314 | 314 | } |
| 315 | 315 | // still here? Then we are signing. |
| 316 | - $signing = system($this->sign . " installer_profile '$fileName' > /dev/null"); |
|
| 316 | + $signing = system($this->sign." installer_profile '$fileName' > /dev/null"); |
|
| 317 | 317 | if ($signing === FALSE) { |
| 318 | 318 | $this->loggerInstance->debug(2, "Signing the mobileconfig installer $fileName FAILED!\n"); |
| 319 | 319 | } |
@@ -332,19 +332,19 @@ discard block |
||
| 332 | 332 | \core\common\Entity::intoThePotatoes(); |
| 333 | 333 | $ssidCount = count($this->attributes['internal:SSID']); |
| 334 | 334 | $certCount = count($this->attributes['internal:CAs'][0]); |
| 335 | - $out = "<p>" . _("For best results, please use the built-in browser (Safari) to open the configuration file.") . "</p>"; |
|
| 335 | + $out = "<p>"._("For best results, please use the built-in browser (Safari) to open the configuration file.")."</p>"; |
|
| 336 | 336 | $out .= "<p>"; |
| 337 | 337 | $out .= _("The profile will install itself after you click (or tap) the button. You will be asked for confirmation/input at several points:"); |
| 338 | 338 | $out .= "<ul>"; |
| 339 | - $out .= "<li>" . _("to install the profile") . "</li>"; |
|
| 340 | - $out .= "<li>" . ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
| 339 | + $out .= "<li>"._("to install the profile")."</li>"; |
|
| 340 | + $out .= "<li>".ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
| 341 | 341 | if ($certCount > 1) { |
| 342 | - $out .= " " . sprintf(_("(%d times)"), $certCount); |
|
| 342 | + $out .= " ".sprintf(_("(%d times)"), $certCount); |
|
| 343 | 343 | } |
| 344 | 344 | $out .= "</li>"; |
| 345 | - $out .= "<li>" . _("to enter the username and password you have been given by your organisation"); |
|
| 345 | + $out .= "<li>"._("to enter the username and password you have been given by your organisation"); |
|
| 346 | 346 | if ($ssidCount > 1) { |
| 347 | - $out .= " " . sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, \config\ConfAssistant::CONSORTIUM['display_name'], $ssidCount); |
|
| 347 | + $out .= " ".sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, \config\ConfAssistant::CONSORTIUM['display_name'], $ssidCount); |
|
| 348 | 348 | } |
| 349 | 349 | $out .= "</li>"; |
| 350 | 350 | $out .= "</ul>"; |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | <key>ServiceProviderRoamingEnabled</key> |
| 385 | 385 | <true/> |
| 386 | 386 | <key>DisplayedOperatorName</key> |
| 387 | - <string>" . $oiName . "</string>"; |
|
| 387 | + <string>" . $oiName."</string>"; |
|
| 388 | 388 | // if we don't know the realm, omit the entire DomainName key |
| 389 | 389 | if (isset($this->attributes['internal:realm'])) { |
| 390 | 390 | $retval .= "<key>DomainName</key> |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | <array>"; |
| 398 | 398 | |
| 399 | 399 | foreach ($consortiumOi as $oneCons) { |
| 400 | - $retval .= "<string>" . strtoupper($oneCons) . "</string>"; |
|
| 400 | + $retval .= "<string>".strtoupper($oneCons)."</string>"; |
|
| 401 | 401 | } |
| 402 | 402 | |
| 403 | 403 | $retval .= "</array>"; |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | <dict> |
| 436 | 436 | <key>AcceptEAPTypes</key> |
| 437 | 437 | <array> |
| 438 | - <integer>" . $eapType['OUTER'] . "</integer> |
|
| 438 | + <integer>" . $eapType['OUTER']."</integer> |
|
| 439 | 439 | </array> |
| 440 | 440 | <key>EAPFASTProvisionPAC</key> |
| 441 | 441 | <true /> |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | "; |
| 449 | 449 | if ($realm !== NULL) { |
| 450 | 450 | $retval .= "<key>OuterIdentity</key> |
| 451 | - <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8') . "</string> |
|
| 451 | + <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8')."</string> |
|
| 452 | 452 | "; |
| 453 | 453 | } |
| 454 | 454 | $retval .= "<key>PayloadCertificateAnchorUUID</key> |
@@ -472,11 +472,11 @@ discard block |
||
| 472 | 472 | $retval .= " |
| 473 | 473 | </array>"; |
| 474 | 474 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
| 475 | - $retval .= "<key>UserName</key><string>" . $this->clientCert["certObject"]->username . "</string>"; |
|
| 475 | + $retval .= "<key>UserName</key><string>".$this->clientCert["certObject"]->username."</string>"; |
|
| 476 | 476 | } |
| 477 | 477 | $retval .= " |
| 478 | 478 | <key>TTLSInnerAuthentication</key> |
| 479 | - <string>" . ($eapType['INNER'] == \core\common\EAP::NE_PAP ? "PAP" : "MSCHAPv2") . "</string> |
|
| 479 | + <string>" . ($eapType['INNER'] == \core\common\EAP::NE_PAP ? "PAP" : "MSCHAPv2")."</string> |
|
| 480 | 480 | </dict>"; |
| 481 | 481 | return $retval; |
| 482 | 482 | } |
@@ -496,9 +496,9 @@ discard block |
||
| 496 | 496 | // characters are still reversed, invert on use! |
| 497 | 497 | $buffer .= "<string>Manual</string> |
| 498 | 498 | <key>ProxyServer</key> |
| 499 | - <string>" . strrev($serverAndPort[1]) . "</string> |
|
| 499 | + <string>" . strrev($serverAndPort[1])."</string> |
|
| 500 | 500 | <key>ProxyServerPort</key> |
| 501 | - <integer>" . strrev($serverAndPort[0]) . "</integer> |
|
| 501 | + <integer>" . strrev($serverAndPort[0])."</integer> |
|
| 502 | 502 | <key>ProxyPACFallbackAllowed</key> |
| 503 | 503 | <false/>"; |
| 504 | 504 | } else { |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | throw new Exception("SSID must be a string!"); |
| 549 | 549 | } |
| 550 | 550 | $escapedSSID = htmlspecialchars($toBeConfigured, ENT_XML1, 'UTF-8'); |
| 551 | - $payloadIdentifier = "wifi." . $this->serial; |
|
| 551 | + $payloadIdentifier = "wifi.".$this->serial; |
|
| 552 | 552 | $payloadShortName = sprintf(_("%s - SSID %s"), $prettyName, $escapedSSID); |
| 553 | 553 | $payloadName = sprintf(_("%s configuration for network name %s"), $prettyName, $escapedSSID); |
| 554 | 554 | $encryptionTypeString = $this->encryptionString(); |
@@ -578,9 +578,9 @@ discard block |
||
| 578 | 578 | if (count($toBeConfigured) == 0) { |
| 579 | 579 | return ""; |
| 580 | 580 | } |
| 581 | - $payloadIdentifier = "hs20.".implode('-',$toBeConfigured); |
|
| 581 | + $payloadIdentifier = "hs20.".implode('-', $toBeConfigured); |
|
| 582 | 582 | $payloadShortName = sprintf(_("%s - RCOI"), $prettyName); |
| 583 | - $payloadName = sprintf(_("%s configuration (Passpoint RCOI)"),$prettyName); |
|
| 583 | + $payloadName = sprintf(_("%s configuration (Passpoint RCOI)"), $prettyName); |
|
| 584 | 584 | $encryptionTypeString = $this->encryptionString(); |
| 585 | 585 | $setupModesString = ""; |
| 586 | 586 | $wifiNetworkIdentification = $this->passPointBlock($toBeConfigured, $prettyName); |
@@ -599,11 +599,11 @@ discard block |
||
| 599 | 599 | <key>PayloadDisplayName</key> |
| 600 | 600 | <string>$payloadShortName</string> |
| 601 | 601 | <key>PayloadIdentifier</key> |
| 602 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
| 602 | + <string>".self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
| 603 | 603 | <key>PayloadOrganization</key> |
| 604 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
| 604 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
| 605 | 605 | <key>PayloadType</key> |
| 606 | - <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi") . ".managed</string>"; |
|
| 606 | + <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi").".managed</string>"; |
|
| 607 | 607 | $retval .= $this->proxySettings(); |
| 608 | 608 | $retval .= $setupModesString; |
| 609 | 609 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | } |
| 616 | 616 | $retval .= " |
| 617 | 617 | <key>PayloadUUID</key> |
| 618 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
| 618 | + <string>" . \core\common\Entity::uuid()."</string> |
|
| 619 | 619 | <key>PayloadVersion</key> |
| 620 | 620 | <integer>1</integer> |
| 621 | 621 | $wifiNetworkIdentification</dict>"; |
@@ -645,15 +645,15 @@ discard block |
||
| 645 | 645 | <key>IsHotspot</key> |
| 646 | 646 | <false/> |
| 647 | 647 | <key>PayloadDescription</key> |
| 648 | - <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</string> |
|
| 648 | + <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name'])."</string> |
|
| 649 | 649 | <key>PayloadDisplayName</key> |
| 650 | - <string>" . _("Disabled WiFi network") . "</string> |
|
| 650 | + <string>" . _("Disabled WiFi network")."</string> |
|
| 651 | 651 | <key>PayloadIdentifier</key> |
| 652 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
| 652 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
| 653 | 653 | <key>PayloadType</key> |
| 654 | 654 | <string>com.apple.wifi.managed</string> |
| 655 | 655 | <key>PayloadUUID</key> |
| 656 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
| 656 | + <string>".\core\common\Entity::uuid()."</string> |
|
| 657 | 657 | <key>PayloadVersion</key> |
| 658 | 658 | <real>1</real>"; |
| 659 | 659 | $retval .= $this->proxySettings(); |
@@ -733,12 +733,12 @@ discard block |
||
| 733 | 733 | $mimeBlob = base64_encode($binaryBlob); |
| 734 | 734 | $mimeFormatted = chunk_split($mimeBlob, 52, "\r\n"); |
| 735 | 735 | $payloadUUID = \core\common\Entity::uuid('', $mimeBlob); |
| 736 | - $retArray = ["block" => "<dict>" . |
|
| 736 | + $retArray = ["block" => "<dict>". |
|
| 737 | 737 | // we don't include the import password. It's displayed on screen, and should be input by the user. |
| 738 | 738 | // <key>Password</key> |
| 739 | 739 | // <string>" . $this->clientCert['password'] . "</string> |
| 740 | 740 | "<key>PayloadCertificateFileName</key> |
| 741 | - <string>" . $this->massagedConsortium . ".pfx</string> |
|
| 741 | + <string>" . $this->massagedConsortium.".pfx</string> |
|
| 742 | 742 | <key>PayloadContent</key> |
| 743 | 743 | <data> |
| 744 | 744 | $mimeFormatted |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | <key>PayloadDescription</key> |
| 747 | 747 | <string>MIME Base-64 encoded PKCS#12 Client Certificate</string> |
| 748 | 748 | <key>PayloadDisplayName</key> |
| 749 | - <string>" . _("User certificate") . "</string> |
|
| 749 | + <string>"._("User certificate")."</string> |
|
| 750 | 750 | <key>PayloadIdentifier</key> |
| 751 | 751 | <string>com.apple.security.pkcs12.$payloadUUID</string> |
| 752 | 752 | <key>PayloadType</key> |
@@ -756,7 +756,7 @@ discard block |
||
| 756 | 756 | <key>PayloadVersion</key> |
| 757 | 757 | <integer>1</integer> |
| 758 | 758 | </dict>", |
| 759 | - "UUID" => $payloadUUID,]; |
|
| 759 | + "UUID" => $payloadUUID, ]; |
|
| 760 | 760 | \core\common\Entity::outOfThePotatoes(); |
| 761 | 761 | return $retArray; |
| 762 | 762 | } |
@@ -774,7 +774,7 @@ discard block |
||
| 774 | 774 | } |
| 775 | 775 | $expiryTime = new \DateTime($this->clientCert['certObject']->expiry); |
| 776 | 776 | return "<key>RemovalDate</key> |
| 777 | - <date>" . $expiryTime->format("Y-m-d") . "T" . $expiryTime->format("H:i:s") . "Z</date>"; |
|
| 777 | + <date>" . $expiryTime->format("Y-m-d")."T".$expiryTime->format("H:i:s")."Z</date>"; |
|
| 778 | 778 | } |
| 779 | 779 | |
| 780 | 780 | /** |
@@ -796,27 +796,27 @@ discard block |
||
| 796 | 796 | $stream = " |
| 797 | 797 | <dict> |
| 798 | 798 | <key>PayloadCertificateFileName</key> |
| 799 | - <string>" . $ca['uuid'] . ".der</string> |
|
| 799 | + <string>" . $ca['uuid'].".der</string> |
|
| 800 | 800 | <key>PayloadContent</key> |
| 801 | 801 | <data> |
| 802 | -" . $trimmedPem . "</data> |
|
| 802 | +" . $trimmedPem."</data> |
|
| 803 | 803 | <key>PayloadDescription</key> |
| 804 | - <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
| 804 | + <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst)."</string> |
|
| 805 | 805 | <key>PayloadDisplayName</key> |
| 806 | 806 | <string>" . |
| 807 | 807 | /// example: "Identity Provider CA #1 (Root)" |
| 808 | - sprintf(_("%s CA #%d (%s)" ), |
|
| 808 | + sprintf(_("%s CA #%d (%s)"), |
|
| 809 | 809 | \core\common\Entity::$nomenclature_inst, |
| 810 | - count($this->CAsAccountedFor)+1, |
|
| 811 | - ($ca['root'] ? _("Root") : _("Intermediate"))) . |
|
| 810 | + count($this->CAsAccountedFor) + 1, |
|
| 811 | + ($ca['root'] ? _("Root") : _("Intermediate"))). |
|
| 812 | 812 | "</string> |
| 813 | 813 | <key>PayloadIdentifier</key> |
| 814 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
| 814 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
| 815 | 815 | <key>PayloadOrganization</key> |
| 816 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
| 816 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
| 817 | 817 | <key>PayloadType</key> |
| 818 | 818 | <string>com.apple.security.root</string> |
| 819 | - <key>PayloadUUID</key><string>" . $ca['uuid'] . "</string> |
|
| 819 | + <key>PayloadUUID</key><string>" . $ca['uuid']."</string> |
|
| 820 | 820 | <key>PayloadVersion</key> |
| 821 | 821 | <integer>1</integer> |
| 822 | 822 | </dict>"; |