@@ -115,12 +115,12 @@ discard block |
||
115 | 115 | $this->name = $this->languageInstance->getLocalisedValue($this->getAttributes('general:instname')); |
116 | 116 | $eligibility = $this->eligibility(); |
117 | 117 | if (in_array(IdP::ELIGIBILITY_IDP, $eligibility) && in_array(IdP::ELIGIBILITY_SP, $eligibility)) { |
118 | - $eligType = IdP::TYPE_IDPSP . ""; |
|
118 | + $eligType = IdP::TYPE_IDPSP.""; |
|
119 | 119 | $this->type = $eligType; |
120 | 120 | } elseif (in_array(IdP::ELIGIBILITY_IDP, $eligibility)) { |
121 | - $eligType = IdP::TYPE_IDP . ""; |
|
121 | + $eligType = IdP::TYPE_IDP.""; |
|
122 | 122 | } else { |
123 | - $eligType = IdP::TYPE_SP . ""; |
|
123 | + $eligType = IdP::TYPE_SP.""; |
|
124 | 124 | } |
125 | 125 | $this->type = $eligType; |
126 | 126 | $this->loggerInstance->debug(3, "--- END Constructing new IdP object ... ---\n"); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public function listProfiles(bool $activeOnly = FALSE) |
136 | 136 | { |
137 | - $query = "SELECT profile_id FROM profile WHERE inst_id = $this->identifier" . ($activeOnly ? " AND showtime = 1" : ""); |
|
137 | + $query = "SELECT profile_id FROM profile WHERE inst_id = $this->identifier".($activeOnly ? " AND showtime = 1" : ""); |
|
138 | 138 | $allProfiles = $this->databaseHandle->exec($query); |
139 | 139 | $returnarray = []; |
140 | 140 | // SELECT -> resource, not boolean |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $returnarray[] = $oneProfile; |
145 | 145 | } |
146 | 146 | |
147 | - $this->loggerInstance->debug(4, "listProfiles: " . /** @scrutinizer ignore-type */ print_r($returnarray, true)); |
|
147 | + $this->loggerInstance->debug(4, "listProfiles: "./** @scrutinizer ignore-type */ print_r($returnarray, true)); |
|
148 | 148 | return $returnarray; |
149 | 149 | } |
150 | 150 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function listDeployments(bool $activeOnly = FALSE) |
158 | 158 | { |
159 | - $query = "SELECT deployment_id FROM deployment WHERE inst_id = $this->identifier" . ($activeOnly ? " AND status = " . AbstractDeployment::ACTIVE : ""); |
|
159 | + $query = "SELECT deployment_id FROM deployment WHERE inst_id = $this->identifier".($activeOnly ? " AND status = ".AbstractDeployment::ACTIVE : ""); |
|
160 | 160 | $allDeployments = $this->databaseHandle->exec($query); |
161 | 161 | $returnarray = []; |
162 | 162 | // SELECT -> resource, not boolean |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | $returnarray[] = new DeploymentManaged($this, $deploymentQuery->deployment_id); |
165 | 165 | } |
166 | 166 | |
167 | - $this->loggerInstance->debug(4, "listDeployments: " . /** @scrutinizer ignore-type */ print_r($returnarray, true)); |
|
167 | + $this->loggerInstance->debug(4, "listDeployments: "./** @scrutinizer ignore-type */ print_r($returnarray, true)); |
|
168 | 168 | return $returnarray; |
169 | 169 | } |
170 | 170 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $allProfiles = $this->databaseHandle->exec("SELECT MIN(openroaming) AS maxlevel FROM profile WHERE inst_id = $this->identifier"); |
198 | 198 | // SELECT yields a resource, not a boolean |
199 | 199 | while ($res = mysqli_fetch_object(/** @scrutinizer ignore-type */ $allProfiles)) { |
200 | - return (is_numeric($res->maxlevel) ? (int)$res->maxlevel : AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO ); // insts without profiles should get a "NO" |
|
200 | + return (is_numeric($res->maxlevel) ? (int) $res->maxlevel : AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO); // insts without profiles should get a "NO" |
|
201 | 201 | } |
202 | 202 | return AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO; |
203 | 203 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | case AbstractProfile::PROFILETYPE_SILVERBULLET: |
332 | 332 | $theProfile = new ProfileSilverbullet($identifier, $this); |
333 | 333 | $theProfile->addSupportedEapMethod(new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET), 1); |
334 | - $theProfile->setRealm($this->identifier . "-" . $theProfile->identifier . "." . strtolower($this->federation) . strtolower(\config\ConfAssistant::SILVERBULLET['realm_suffix'])); |
|
334 | + $theProfile->setRealm($this->identifier."-".$theProfile->identifier.".".strtolower($this->federation).strtolower(\config\ConfAssistant::SILVERBULLET['realm_suffix'])); |
|
335 | 335 | return $theProfile; |
336 | 336 | default: |
337 | 337 | throw new Exception("This type of profile is unknown and can not be added."); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | public function getExternalDBId() |
474 | 474 | { |
475 | 475 | if (\config\ConfAssistant::CONSORTIUM['name'] == "eduroam" && isset(\config\ConfAssistant::CONSORTIUM['deployment-voodoo']) && \config\ConfAssistant::CONSORTIUM['deployment-voodoo'] == "Operations Team") { // SW: APPROVED |
476 | - $idQuery = $this->databaseHandle->exec("SELECT external_db_id FROM institution WHERE inst_id = $this->identifier AND external_db_syncstate = " . self::EXTERNAL_DB_SYNCSTATE_SYNCED); |
|
476 | + $idQuery = $this->databaseHandle->exec("SELECT external_db_id FROM institution WHERE inst_id = $this->identifier AND external_db_syncstate = ".self::EXTERNAL_DB_SYNCSTATE_SYNCED); |
|
477 | 477 | // SELECT -> it's a resource, not a boolean |
478 | 478 | if (mysqli_num_rows(/** @scrutinizer ignore-type */ $idQuery) == 0) { |
479 | 479 | return FALSE; |
@@ -539,16 +539,16 @@ discard block |
||
539 | 539 | } |
540 | 540 | foreach ($baseline as $lang => $value) { |
541 | 541 | if (!key_exists($lang, $newvalues)) { |
542 | - $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] DELETED"; |
|
542 | + $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] DELETED"; |
|
543 | 543 | } else { |
544 | 544 | if ($value != $newvalues[$lang]) { |
545 | - $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] CHANGED from '" . $baseline[$lang] . "' to '" . $newvalues[$lang] . "'"; |
|
545 | + $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] CHANGED from '".$baseline[$lang]."' to '".$newvalues[$lang]."'"; |
|
546 | 546 | } |
547 | 547 | } |
548 | 548 | } |
549 | 549 | foreach ($newvalues as $lang => $value) { |
550 | 550 | if (!key_exists($lang, $baseline)) { |
551 | - $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] ADDED as '" . $value . "'"; |
|
551 | + $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] ADDED as '".$value."'"; |
|
552 | 552 | } |
553 | 553 | } |
554 | 554 | return $retval; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | protected function setSupportedEapMethods($eapArray) |
86 | 86 | { |
87 | 87 | $this->supportedEapMethods = $eapArray; |
88 | - $this->loggerInstance->debug(4, "This device (" . __CLASS__ . ") supports the following EAP methods: "); |
|
88 | + $this->loggerInstance->debug(4, "This device (".__CLASS__.") supports the following EAP methods: "); |
|
89 | 89 | $this->loggerInstance->debug(4, $this->supportedEapMethods); |
90 | 90 | } |
91 | 91 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | break 2; |
138 | 138 | } |
139 | 139 | } |
140 | - $longestSuffix = $candidate . $longestSuffix; |
|
140 | + $longestSuffix = $candidate.$longestSuffix; |
|
141 | 141 | } |
142 | 142 | return $longestSuffix; |
143 | 143 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | throw new Exception("No EAP type available."); |
176 | 176 | } |
177 | 177 | $this->attributes = $this->getProfileAttributes($profile); |
178 | - $this->deviceUUID = common\Entity::uuid('', 'CAT' . $profile->institution . "-" . $profile->identifier . "-" . $this->device_id); |
|
178 | + $this->deviceUUID = common\Entity::uuid('', 'CAT'.$profile->institution."-".$profile->identifier."-".$this->device_id); |
|
179 | 179 | |
180 | 180 | |
181 | 181 | // if we are instantiating a Silverbullet profile AND have been given |
@@ -200,8 +200,8 @@ discard block |
||
200 | 200 | // create temporary directory, its full path will be saved in $this->FPATH; |
201 | 201 | $tempDir = \core\common\Entity::createTemporaryDirectory($purpose); |
202 | 202 | $this->FPATH = $tempDir['dir']; |
203 | - mkdir($tempDir['dir'] . '/tmp'); |
|
204 | - chdir($tempDir['dir'] . '/tmp'); |
|
203 | + mkdir($tempDir['dir'].'/tmp'); |
|
204 | + chdir($tempDir['dir'].'/tmp'); |
|
205 | 205 | $caList = []; |
206 | 206 | $x509 = new \core\common\X509(); |
207 | 207 | if (isset($this->attributes['eap:ca_file'])) { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | $this->attributes['internal:consortia'] = $this->getConsortia(); |
235 | 235 | |
236 | - if (isset($this->attributes['media:openroaming']) && substr($this->attributes['media:openroaming'][0],0,6) == "always" ) { |
|
236 | + if (isset($this->attributes['media:openroaming']) && substr($this->attributes['media:openroaming'][0], 0, 6) == "always") { |
|
237 | 237 | $this->attributes['internal:openroaming'] = TRUE; |
238 | 238 | } |
239 | 239 | // alternatively: if DeviceConfig was called after a user hitting the |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $this->support_url_substitute = sprintf(_("your local %s support page"), \config\ConfAssistant::CONSORTIUM['display_name']); |
251 | 251 | |
252 | 252 | if ($this->signer && $this->options['sign']) { |
253 | - $this->sign = ROOT . '/signer/' . $this->signer; |
|
253 | + $this->sign = ROOT.'/signer/'.$this->signer; |
|
254 | 254 | } |
255 | 255 | $this->installerBasename = $this->getInstallerBasename(); |
256 | 256 | common\Entity::outOfThePotatoes(); |
@@ -310,10 +310,10 @@ discard block |
||
310 | 310 | */ |
311 | 311 | protected function findSourceFile($file) |
312 | 312 | { |
313 | - if (is_file($this->module_path . '/Files/' . $this->device_id . '/' . $file)) { |
|
314 | - return $this->module_path . '/Files/' . $this->device_id . '/' . $file; |
|
315 | - } elseif (is_file($this->module_path . '/Files/' . $file)) { |
|
316 | - return $this->module_path . '/Files/' . $file; |
|
313 | + if (is_file($this->module_path.'/Files/'.$this->device_id.'/'.$file)) { |
|
314 | + return $this->module_path.'/Files/'.$this->device_id.'/'.$file; |
|
315 | + } elseif (is_file($this->module_path.'/Files/'.$file)) { |
|
316 | + return $this->module_path.'/Files/'.$file; |
|
317 | 317 | } else { |
318 | 318 | $this->loggerInstance->debug(2, "requested file $file does not exist\n"); |
319 | 319 | return FALSE; |
@@ -437,19 +437,19 @@ discard block |
||
437 | 437 | */ |
438 | 438 | private function getInstallerBasename() |
439 | 439 | { |
440 | - $baseName = $this->customTranslit(\config\ConfAssistant::CONSORTIUM['name']) . "-" . $this->getDeviceId(); |
|
440 | + $baseName = $this->customTranslit(\config\ConfAssistant::CONSORTIUM['name'])."-".$this->getDeviceId(); |
|
441 | 441 | if (isset($this->attributes['profile:customsuffix'][1])) { |
442 | 442 | // this string will end up as a filename on a filesystem, so always |
443 | 443 | // take a latin-based language variant if available |
444 | 444 | // and then scrub non-ASCII just in case |
445 | - return $baseName . $this->customTranslit($this->attributes['profile:customsuffix'][1]); |
|
445 | + return $baseName.$this->customTranslit($this->attributes['profile:customsuffix'][1]); |
|
446 | 446 | } |
447 | 447 | // Okay, no custom suffix. |
448 | 448 | // Use the configured inst name and apply shortening heuristics |
449 | 449 | // if an instshortname is set, base on that, otherwise, the normal instname |
450 | 450 | $attribToUse = (isset($this->attributes['general:instshortname']) ? 'general:instshortname' : 'general:instname'); |
451 | 451 | $lang_pointer = \config\Master::LANGUAGES[$this->languageInstance->getLang()]['latin_based'] == TRUE ? 0 : 1; |
452 | - $this->loggerInstance->debug(5, "getInstallerBasename1:" . $this->attributes[$attribToUse][$lang_pointer] . "\n"); |
|
452 | + $this->loggerInstance->debug(5, "getInstallerBasename1:".$this->attributes[$attribToUse][$lang_pointer]."\n"); |
|
453 | 453 | $inst = $this->customTranslit($this->attributes[$attribToUse][$lang_pointer]); |
454 | 454 | $this->loggerInstance->debug(4, "getInstallerBasename2:$inst\n"); |
455 | 455 | $Inst_a = explode('_', $inst); |
@@ -464,10 +464,10 @@ discard block |
||
464 | 464 | if (!empty($this->attributes['profile:name']) && !empty($this->attributes['profile:name'][$lang_pointer])) { |
465 | 465 | $profTemp = $this->customTranslit($this->attributes['profile:name'][$lang_pointer]); |
466 | 466 | $prof = preg_replace('/_+$/', '', $profTemp); |
467 | - return $baseName . $inst . '-' . $prof; |
|
467 | + return $baseName.$inst.'-'.$prof; |
|
468 | 468 | } |
469 | 469 | } |
470 | - return $baseName . $inst; |
|
470 | + return $baseName.$inst; |
|
471 | 471 | } |
472 | 472 | |
473 | 473 | /** |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | $ext = 'unsupported'; |
654 | 654 | } |
655 | 655 | $this->loggerInstance->debug(5, "saveLogoFile: $mime : $ext\n"); |
656 | - $fileName = 'logo-' . $type . $iterator . '.' . $ext; |
|
656 | + $fileName = 'logo-'.$type.$iterator.'.'.$ext; |
|
657 | 657 | $fileHandle = fopen($fileName, "w"); |
658 | 658 | if (!$fileHandle) { |
659 | 659 | $this->loggerInstance->debug(2, "saveLogoFile failed for: $fileName\n"); |
@@ -680,13 +680,13 @@ discard block |
||
680 | 680 | $mime = $finfo->buffer($blob); |
681 | 681 | $ext = isset($this->mime_extensions[$mime]) ? $this->mime_extensions[$mime] : 'usupported'; |
682 | 682 | $this->loggerInstance->debug(5, "saveInfoFile: $mime : $ext\n"); |
683 | - $fileHandle = fopen('local-info.' . $ext, "w"); |
|
683 | + $fileHandle = fopen('local-info.'.$ext, "w"); |
|
684 | 684 | if ($fileHandle === FALSE) { |
685 | 685 | throw new Exception("problem opening the file"); |
686 | 686 | } |
687 | 687 | fwrite($fileHandle, $blob); |
688 | 688 | fclose($fileHandle); |
689 | - return(['name' => 'local-info.' . $ext, 'mime' => $ext]); |
|
689 | + return(['name' => 'local-info.'.$ext, 'mime' => $ext]); |
|
690 | 690 | } |
691 | 691 | |
692 | 692 | /** |
@@ -740,9 +740,9 @@ discard block |
||
740 | 740 | { |
741 | 741 | $outerId = NULL; |
742 | 742 | if (isset($this->attributes['internal:use_anon_outer']) && $this->attributes['internal:use_anon_outer'][0] == "1" && isset($this->attributes['internal:realm'])) { |
743 | - $outerId = "@" . $this->attributes['internal:realm'][0]; |
|
743 | + $outerId = "@".$this->attributes['internal:realm'][0]; |
|
744 | 744 | if (isset($this->attributes['internal:anon_local_value'])) { |
745 | - $outerId = $this->attributes['internal:anon_local_value'][0] . $outerId; |
|
745 | + $outerId = $this->attributes['internal:anon_local_value'][0].$outerId; |
|
746 | 746 | } |
747 | 747 | } |
748 | 748 | return $outerId; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $cryptoJson = openssl_encrypt($clearJson, 'AES-256-CBC', $encryptionKey, OPENSSL_RAW_DATA, $initVector); |
122 | 122 | $hmac = hash_hmac("sha1", $cryptoJson, $encryptionKey, TRUE); |
123 | 123 | |
124 | - $this->loggerInstance->debug(4, "Clear = $clearJson\nSalt = $salt\nPW = " . $password . "\nb(IV) = " . base64_encode($initVector) . "\nb(Cipher) = " . base64_encode($cryptoJson) . "\nb(HMAC) = " . base64_encode($hmac)); |
|
124 | + $this->loggerInstance->debug(4, "Clear = $clearJson\nSalt = $salt\nPW = ".$password."\nb(IV) = ".base64_encode($initVector)."\nb(Cipher) = ".base64_encode($cryptoJson)."\nb(HMAC) = ".base64_encode($hmac)); |
|
125 | 125 | |
126 | 126 | // now, generate the container that holds all the crypto data |
127 | 127 | $finalArray = [ |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | private function wiredBlock($eapdetails) |
196 | 196 | { |
197 | 197 | return [ |
198 | - "GUID" => \core\common\Entity::uuid('', "wired-dot1x-ethernet") . "}", |
|
198 | + "GUID" => \core\common\Entity::uuid('', "wired-dot1x-ethernet")."}", |
|
199 | 199 | "Name" => "eduroam configuration (wired network)", |
200 | 200 | "Remove" => false, |
201 | 201 | "Type" => "Ethernet", |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | // if silverbullet, we deliver the client cert inline |
237 | 237 | |
238 | 238 | if ($selectedEap == \core\common\EAP::EAPTYPE_SILVERBULLET) { |
239 | - $eaparray['ClientCertRef'] = "[" . $this->clientCert['GUID'] . "]"; |
|
239 | + $eaparray['ClientCertRef'] = "[".$this->clientCert['GUID']."]"; |
|
240 | 240 | $eaparray['ClientCertType'] = "Ref"; |
241 | 241 | } |
242 | 242 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $jsonArray = ["Type" => "UnencryptedConfiguration"]; |
272 | 272 | |
273 | 273 | foreach ($this->attributes['internal:CAs'][0] as $ca) { |
274 | - $caRefs[] = "{" . $ca['uuid'] . "}"; |
|
274 | + $caRefs[] = "{".$ca['uuid']."}"; |
|
275 | 275 | } |
276 | 276 | // define CA certificates |
277 | 277 | foreach ($this->attributes['internal:CAs'][0] as $ca) { |
@@ -281,15 +281,15 @@ discard block |
||
281 | 281 | if ($caSanitized1 === FALSE) { |
282 | 282 | throw new Exception("Error cropping PEM data at its BEGIN marker."); |
283 | 283 | } |
284 | - $this->loggerInstance->debug(4, $caSanitized1 . "\n"); |
|
284 | + $this->loggerInstance->debug(4, $caSanitized1."\n"); |
|
285 | 285 | // remove \n |
286 | 286 | $caSanitized = str_replace("\n", "", $caSanitized1); |
287 | - $jsonArray["Certificates"][] = ["GUID" => "{" . $ca['uuid'] . "}", "Remove" => false, "Type" => "Authority", "X509" => $caSanitized]; |
|
288 | - $this->loggerInstance->debug(3, $caSanitized . "\n"); |
|
287 | + $jsonArray["Certificates"][] = ["GUID" => "{".$ca['uuid']."}", "Remove" => false, "Type" => "Authority", "X509" => $caSanitized]; |
|
288 | + $this->loggerInstance->debug(3, $caSanitized."\n"); |
|
289 | 289 | } |
290 | 290 | // if we are doing silverbullet, include the unencrypted(!) P12 as a client certificate |
291 | 291 | if ($this->selectedEap == \core\common\EAP::EAPTYPE_SILVERBULLET) { |
292 | - $jsonArray["Certificates"][] = ["GUID" => "[" . $this->clientCert['GUID'] . "]", "PKCS12" => base64_encode($this->clientCert['certdataclear']), "Remove" => false, "Type" => "Client"]; |
|
292 | + $jsonArray["Certificates"][] = ["GUID" => "[".$this->clientCert['GUID']."]", "PKCS12" => base64_encode($this->clientCert['certdataclear']), "Remove" => false, "Type" => "Client"]; |
|
293 | 293 | } |
294 | 294 | $eaparray = $this->eapBlock($caRefs); |
295 | 295 | // define Wi-Fi networks |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | |
313 | 313 | file_put_contents('installer_profile', $finalJson); |
314 | 314 | |
315 | - $fileName = $this->installerBasename . '.onc'; |
|
315 | + $fileName = $this->installerBasename.'.onc'; |
|
316 | 316 | |
317 | 317 | if (!$this->sign) { |
318 | 318 | rename("installer_profile", $fileName); |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | // have the notion of signing |
324 | 324 | // but if they ever change their mind, we are prepared |
325 | 325 | |
326 | - $outputFromSigning = system($this->sign . " installer_profile '$fileName' > /dev/null"); |
|
326 | + $outputFromSigning = system($this->sign." installer_profile '$fileName' > /dev/null"); |
|
327 | 327 | if ($outputFromSigning === FALSE) { |
328 | 328 | $this->loggerInstance->debug(2, "Signing the ONC installer $fileName FAILED!\n"); |
329 | 329 | } |
@@ -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(__DIR__)) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
23 | 23 | |
24 | 24 | $deco = new \web\lib\admin\PageDecoration(); |
25 | 25 | $validator = new \web\lib\common\InputValidation(); |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | |
45 | 45 | $preflist = $my_profile->getEapMethodsinOrderOfPreference(); |
46 | 46 | ?> |
47 | - <h1><?php $tablecaption = sprintf(_("Device compatiblity matrix for %s of %s "), $profile_name, $inst_name); echo $tablecaption;?></h1> |
|
47 | + <h1><?php $tablecaption = sprintf(_("Device compatiblity matrix for %s of %s "), $profile_name, $inst_name); echo $tablecaption; ?></h1> |
|
48 | 48 | <table class="compatmatrix"> |
49 | - <caption><?php echo $tablecaption;?></caption> |
|
49 | + <caption><?php echo $tablecaption; ?></caption> |
|
50 | 50 | <tr> |
51 | 51 | <th scope='col'></th> |
52 | 52 | <th scope='col'><?php echo _("Device"); ?></th> |
@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | <?php |
55 | 55 | foreach ($preflist as $method) { |
56 | 56 | $escapedMethod = $method->getIntegerRep(); |
57 | - echo "<th scope='col' style='min-width:200px'>" . $method->getPrintableRep() . "<br/> |
|
57 | + echo "<th scope='col' style='min-width:200px'>".$method->getPrintableRep()."<br/> |
|
58 | 58 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
59 | 59 | <input type='hidden' name='eaptype' value='$escapedMethod'> |
60 | - <button class='redirect' type='submit'>" . _("EAP-Type-specific options...") . "</button> |
|
60 | + <button class='redirect' type='submit'>"._("EAP-Type-specific options...")."</button> |
|
61 | 61 | </form></th>"; |
62 | 62 | } |
63 | 63 | ?> |
@@ -73,10 +73,10 @@ discard block |
||
73 | 73 | foreach (\devices\Devices::listDevices() as $index => $description) { |
74 | 74 | |
75 | 75 | echo "<tr>"; |
76 | - echo "<td align='center'><img src='../resources/images/vendorlogo/" . $description['group'] . ".png' alt='logo'></td><td>" . $description['display'] . "<br/> |
|
76 | + echo "<td align='center'><img src='../resources/images/vendorlogo/".$description['group'].".png' alt='logo'></td><td>".$description['display']."<br/> |
|
77 | 77 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
78 | 78 | <input type='hidden' name='device' value='$index'> |
79 | - <button class='redirect' type='submit'>" . _("Device-specific options...") . "</button> |
|
79 | + <button class='redirect' type='submit'>"._("Device-specific options...")."</button> |
|
80 | 80 | </form> |
81 | 81 | </td>"; |
82 | 82 | $factory = new \core\DeviceFactory($index); |
@@ -85,16 +85,16 @@ discard block |
||
85 | 85 | $footnotesForDevEapCombo = []; |
86 | 86 | $display_footnote = FALSE; |
87 | 87 | $langObject = new \core\common\Language(); |
88 | - $downloadform = "<form action='" . rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/') . "/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=" . $langObject->getLang() . "' method='post' accept-charset='UTF-8'> |
|
88 | + $downloadform = "<form action='".rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/')."/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=".$langObject->getLang()."' method='post' accept-charset='UTF-8'> |
|
89 | 89 | <input type='hidden' name='device' value='$index'/> |
90 | 90 | <input type='hidden' name='generatedfor' value='admin'/> |
91 | - <button class='download'>" . sprintf(_("%s<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name']) . "</button> |
|
91 | + <button class='download'>".sprintf(_("%s<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name'])."</button> |
|
92 | 92 | "; |
93 | 93 | if (sizeof($my_profile->getAttributes("media:openroaming")) > 0 && $factory->device->options['hs20'] == 1) { |
94 | - $downloadform .= "<form action='" . rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/') . "/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&openroaming=1&lang=" . $langObject->getLang() . "' method='post' accept-charset='UTF-8'> |
|
94 | + $downloadform .= "<form action='".rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/')."/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&openroaming=1&lang=".$langObject->getLang()."' method='post' accept-charset='UTF-8'> |
|
95 | 95 | <input type='hidden' name='device' value='$index'/> |
96 | 96 | <input type='hidden' name='generatedfor' value='admin'/> |
97 | - <button class='download'>" . sprintf(_("%s + OpenRoaming<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name']) . "</button> |
|
97 | + <button class='download'>".sprintf(_("%s + OpenRoaming<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name'])."</button> |
|
98 | 98 | "; |
99 | 99 | } |
100 | 100 | |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | </table> |
168 | 168 | <p><strong><?php $tablecaption2 = _("Legend:"); echo $tablecaption2; ?></strong></p> |
169 | 169 | <table class="compatmatrix"> |
170 | - <caption><?php echo $tablecaption2;?></caption> |
|
171 | - <tr><th scope="col"><?php echo _("Colour");?></th><th scope='col'><?php echo _("Meaning");?></th></tr> |
|
170 | + <caption><?php echo $tablecaption2; ?></caption> |
|
171 | + <tr><th scope="col"><?php echo _("Colour"); ?></th><th scope='col'><?php echo _("Meaning"); ?></th></tr> |
|
172 | 172 | <tr><td class="compat_redirected"> </td> <td><?php echo _("redirection is set"); ?></td></tr> |
173 | 173 | <tr><td class="compat_default"> </td> <td><?php echo _("will be offered on download site"); ?></td></tr> |
174 | 174 | <tr><td class="compat_secondary"> </td> <td><?php echo _("configured, but not preferred EAP type"); ?></td></tr> |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | </table> |
178 | 178 | <?php |
179 | 179 | if (count($distinctFootnotes)) { |
180 | - echo "<p><strong>" . _("Footnotes:") . "</strong></p><table>"; |
|
180 | + echo "<p><strong>"._("Footnotes:")."</strong></p><table>"; |
|
181 | 181 | foreach ($distinctFootnotes as $number => $text) { |
182 | 182 | echo "<tr><td>($number) - </td><td>$text</td></tr>"; |
183 | 183 | } |
@@ -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 { |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | throw new Exception("SSID must be a string!"); |
529 | 529 | } |
530 | 530 | $escapedSSID = htmlspecialchars($toBeConfigured, ENT_XML1, 'UTF-8'); |
531 | - $payloadIdentifier = "wifi." . $this->serial; |
|
531 | + $payloadIdentifier = "wifi.".$this->serial; |
|
532 | 532 | $payloadShortName = sprintf(_("%s - SSID %s"), $prettyName, $escapedSSID); |
533 | 533 | $payloadName = sprintf(_("%s configuration for network name %s"), $prettyName, $escapedSSID); |
534 | 534 | $encryptionTypeString = "WPA"; |
@@ -558,9 +558,9 @@ discard block |
||
558 | 558 | if (count($toBeConfigured) == 0) { |
559 | 559 | return ""; |
560 | 560 | } |
561 | - $payloadIdentifier = "hs20.".implode('-',$toBeConfigured); |
|
561 | + $payloadIdentifier = "hs20.".implode('-', $toBeConfigured); |
|
562 | 562 | $payloadShortName = sprintf(_("%s - RCOI"), $prettyName); |
563 | - $payloadName = sprintf(_("%s configuration (Passpoint RCOI)"),$prettyName); |
|
563 | + $payloadName = sprintf(_("%s configuration (Passpoint RCOI)"), $prettyName); |
|
564 | 564 | $encryptionTypeString = "WPA"; |
565 | 565 | $setupModesString = ""; |
566 | 566 | $wifiNetworkIdentification = $this->passPointBlock($toBeConfigured, $prettyName); |
@@ -579,11 +579,11 @@ discard block |
||
579 | 579 | <key>PayloadDisplayName</key> |
580 | 580 | <string>$payloadShortName</string> |
581 | 581 | <key>PayloadIdentifier</key> |
582 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
582 | + <string>".self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
583 | 583 | <key>PayloadOrganization</key> |
584 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
584 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
585 | 585 | <key>PayloadType</key> |
586 | - <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi") . ".managed</string>"; |
|
586 | + <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi").".managed</string>"; |
|
587 | 587 | $retval .= $this->proxySettings(); |
588 | 588 | $retval .= $setupModesString; |
589 | 589 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | } |
596 | 596 | $retval .= " |
597 | 597 | <key>PayloadUUID</key> |
598 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
598 | + <string>" . \core\common\Entity::uuid()."</string> |
|
599 | 599 | <key>PayloadVersion</key> |
600 | 600 | <integer>1</integer> |
601 | 601 | $wifiNetworkIdentification</dict>"; |
@@ -625,15 +625,15 @@ discard block |
||
625 | 625 | <key>IsHotspot</key> |
626 | 626 | <false/> |
627 | 627 | <key>PayloadDescription</key> |
628 | - <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</string> |
|
628 | + <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), \config\ConfAssistant::CONSORTIUM['display_name'])."</string> |
|
629 | 629 | <key>PayloadDisplayName</key> |
630 | - <string>" . _("Disabled WiFi network") . "</string> |
|
630 | + <string>" . _("Disabled WiFi network")."</string> |
|
631 | 631 | <key>PayloadIdentifier</key> |
632 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
632 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
633 | 633 | <key>PayloadType</key> |
634 | 634 | <string>com.apple.wifi.managed</string> |
635 | 635 | <key>PayloadUUID</key> |
636 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
636 | + <string>".\core\common\Entity::uuid()."</string> |
|
637 | 637 | <key>PayloadVersion</key> |
638 | 638 | <real>1</real>"; |
639 | 639 | $retval .= $this->proxySettings(); |
@@ -713,12 +713,12 @@ discard block |
||
713 | 713 | $mimeBlob = base64_encode($binaryBlob); |
714 | 714 | $mimeFormatted = chunk_split($mimeBlob, 52, "\r\n"); |
715 | 715 | $payloadUUID = \core\common\Entity::uuid('', $mimeBlob); |
716 | - $retArray = ["block" => "<dict>" . |
|
716 | + $retArray = ["block" => "<dict>". |
|
717 | 717 | // we don't include the import password. It's displayed on screen, and should be input by the user. |
718 | 718 | // <key>Password</key> |
719 | 719 | // <string>" . $this->clientCert['password'] . "</string> |
720 | 720 | "<key>PayloadCertificateFileName</key> |
721 | - <string>" . $this->massagedConsortium . ".pfx</string> |
|
721 | + <string>" . $this->massagedConsortium.".pfx</string> |
|
722 | 722 | <key>PayloadContent</key> |
723 | 723 | <data> |
724 | 724 | $mimeFormatted |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | <key>PayloadDescription</key> |
727 | 727 | <string>MIME Base-64 encoded PKCS#12 Client Certificate</string> |
728 | 728 | <key>PayloadDisplayName</key> |
729 | - <string>" . _("User certificate") . "</string> |
|
729 | + <string>"._("User certificate")."</string> |
|
730 | 730 | <key>PayloadIdentifier</key> |
731 | 731 | <string>com.apple.security.pkcs12.$payloadUUID</string> |
732 | 732 | <key>PayloadType</key> |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | <key>PayloadVersion</key> |
737 | 737 | <integer>1</integer> |
738 | 738 | </dict>", |
739 | - "UUID" => $payloadUUID,]; |
|
739 | + "UUID" => $payloadUUID, ]; |
|
740 | 740 | \core\common\Entity::outOfThePotatoes(); |
741 | 741 | return $retArray; |
742 | 742 | } |
@@ -754,7 +754,7 @@ discard block |
||
754 | 754 | } |
755 | 755 | $expiryTime = new \DateTime($this->clientCert['certObject']->expiry); |
756 | 756 | return "<key>RemovalDate</key> |
757 | - <date>" . $expiryTime->format("Y-m-d") . "T" . $expiryTime->format("H:i:s") . "Z</date>"; |
|
757 | + <date>" . $expiryTime->format("Y-m-d")."T".$expiryTime->format("H:i:s")."Z</date>"; |
|
758 | 758 | } |
759 | 759 | |
760 | 760 | /** |
@@ -776,27 +776,27 @@ discard block |
||
776 | 776 | $stream = " |
777 | 777 | <dict> |
778 | 778 | <key>PayloadCertificateFileName</key> |
779 | - <string>" . $ca['uuid'] . ".der</string> |
|
779 | + <string>" . $ca['uuid'].".der</string> |
|
780 | 780 | <key>PayloadContent</key> |
781 | 781 | <data> |
782 | -" . $trimmedPem . "</data> |
|
782 | +" . $trimmedPem."</data> |
|
783 | 783 | <key>PayloadDescription</key> |
784 | - <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
784 | + <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst)."</string> |
|
785 | 785 | <key>PayloadDisplayName</key> |
786 | 786 | <string>" . |
787 | 787 | /// example: "Identity Provider CA #1 (Root)" |
788 | - sprintf(_("%s CA #%d (%s)" ), |
|
788 | + sprintf(_("%s CA #%d (%s)"), |
|
789 | 789 | \core\common\Entity::$nomenclature_inst, |
790 | - count($this->CAsAccountedFor)+1, |
|
791 | - ($ca['root'] ? _("Root") : _("Intermediate"))) . |
|
790 | + count($this->CAsAccountedFor) + 1, |
|
791 | + ($ca['root'] ? _("Root") : _("Intermediate"))). |
|
792 | 792 | "</string> |
793 | 793 | <key>PayloadIdentifier</key> |
794 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
794 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
795 | 795 | <key>PayloadOrganization</key> |
796 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
796 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
797 | 797 | <key>PayloadType</key> |
798 | 798 | <string>com.apple.security.root</string> |
799 | - <key>PayloadUUID</key><string>" . $ca['uuid'] . "</string> |
|
799 | + <key>PayloadUUID</key><string>" . $ca['uuid']."</string> |
|
800 | 800 | <key>PayloadVersion</key> |
801 | 801 | <integer>1</integer> |
802 | 802 | </dict>"; |