@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * the receiving end to strip this marker and not add the title by itself. |
| 32 | 32 | * |
| 33 | 33 | */ |
| 34 | -require_once dirname(dirname(dirname((dirname(dirname(__FILE__)))))) . "/config/_config.php"; |
|
| 34 | +require_once dirname(dirname(dirname((dirname(dirname(__FILE__))))))."/config/_config.php"; |
|
| 35 | 35 | |
| 36 | 36 | $Gui = new \web\lib\user\Gui(); |
| 37 | 37 | |
@@ -41,46 +41,46 @@ discard block |
||
| 41 | 41 | $subpage = $_REQUEST['subpage']; |
| 42 | 42 | switch ($page) { |
| 43 | 43 | case 'about': |
| 44 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php"; |
|
| 44 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/about_cat.inc.php"; |
|
| 45 | 45 | $out = "<div class='padding'>$out</div>"; |
| 46 | 46 | break; |
| 47 | 47 | case 'tou': |
| 48 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/tou.inc.php"; |
|
| 48 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/tou.inc.php"; |
|
| 49 | 49 | $out = "no_title<div> |
| 50 | 50 | <h1> |
| 51 | - " . $Tou['title'] . " |
|
| 51 | + " . $Tou['title']." |
|
| 52 | 52 | </h1> |
| 53 | -<div id='tou_1'>" . $Tou['subtitle'] . |
|
| 54 | - $Tou['short'] . " |
|
| 53 | +<div id='tou_1'>" . $Tou['subtitle']. |
|
| 54 | + $Tou['short']." |
|
| 55 | 55 | </div> |
| 56 | 56 | <div id='all_tou_link'><a href='javascript:showTOU()'>Click here to see the full terms</a></div> |
| 57 | 57 | <div id='tou_2' style='display:none; padding-top:20px'>" . |
| 58 | - $Tou['full'] . " |
|
| 58 | + $Tou['full']." |
|
| 59 | 59 | </div> |
| 60 | 60 | </div> |
| 61 | 61 | "; |
| 62 | 62 | break; |
| 63 | 63 | case 'help': |
| 64 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/faq.inc.php"; |
|
| 64 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/faq.inc.php"; |
|
| 65 | 65 | switch ($subpage) { |
| 66 | 66 | case 'contact': |
| 67 | 67 | case 'idp_not_listed': |
| 68 | 68 | case 'device_not_listed': |
| 69 | 69 | case 'what_is_eduroam': |
| 70 | - $out = "no_title<div><h1>" . _("Help") . "</h1>"; |
|
| 70 | + $out = "no_title<div><h1>"._("Help")."</h1>"; |
|
| 71 | 71 | foreach ($Faq as $faqItem) { |
| 72 | 72 | if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) { |
| 73 | - $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n"; |
|
| 74 | - $out .= "" . $faqItem['text'] . "</div>\n"; |
|
| 73 | + $out .= "<div><h3>".$faqItem['title']."</h3>\n"; |
|
| 74 | + $out .= "".$faqItem['text']."</div>\n"; |
|
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | $out .= "</div>"; |
| 78 | 78 | break; |
| 79 | 79 | case 'faq': |
| 80 | - $out = "no_title<div><h1>" . _("Frequently Asked Questions") . "</h1>"; |
|
| 80 | + $out = "no_title<div><h1>"._("Frequently Asked Questions")."</h1>"; |
|
| 81 | 81 | foreach ($Faq as $faqItem) { |
| 82 | - $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n"; |
|
| 83 | - $out .= "" . $faqItem['text'] . "</div>\n"; |
|
| 82 | + $out .= "<div><h3>".$faqItem['title']."</h3>\n"; |
|
| 83 | + $out .= "".$faqItem['text']."</div>\n"; |
|
| 84 | 84 | } |
| 85 | 85 | $out .= "</div>"; |
| 86 | 86 | break; |
@@ -104,15 +104,15 @@ discard block |
||
| 104 | 104 | $rn = uniqid(); |
| 105 | 105 | $_SESSION['remindIdP'] = $rn; |
| 106 | 106 | $out .= "<input type='hidden' id='remindIdPs' value='$rn'>"; |
| 107 | - $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>" . _("Login") . "</button>"; |
|
| 108 | - $out .= "<br/><br/><p>" . _("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.") . "</p>"; |
|
| 109 | - $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>" . _("Get IdP Reminder") . "</button>"; |
|
| 107 | + $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>"._("Login")."</button>"; |
|
| 108 | + $out .= "<br/><br/><p>"._("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.")."</p>"; |
|
| 109 | + $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>"._("Get IdP Reminder")."</button>"; |
|
| 110 | 110 | $out .= "<div id='remindIdPd'><span id='remindIdPh'></span><ul id='remindIdPl'></ul></div>"; |
| 111 | 111 | $out = "<div class='padding'>$out</div>"; |
| 112 | 112 | } |
| 113 | 113 | break; |
| 114 | 114 | case 'develop': |
| 115 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/devel.inc.php"; |
|
| 115 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/devel.inc.php"; |
|
| 116 | 116 | $out = "<div class='padding'>$out</div>"; |
| 117 | 117 | break; |
| 118 | 118 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $this->installerPath = $cache['path']; |
| 84 | 84 | if ($this->installerPath !== NULL && $token === NULL && $password === NULL) { |
| 85 | 85 | $this->loggerInstance->debug(4, "Using cached installer for: $device\n"); |
| 86 | - $installerProperties['link'] = "API.php?action=downloadInstaller&lang=" . $this->languageInstance->getLang() . "&profile=$profileId&device=$device&generatedfor=$generatedFor"; |
|
| 86 | + $installerProperties['link'] = "API.php?action=downloadInstaller&lang=".$this->languageInstance->getLang()."&profile=$profileId&device=$device&generatedfor=$generatedFor"; |
|
| 87 | 87 | $installerProperties['mime'] = $cache['mime']; |
| 88 | 88 | } else { |
| 89 | 89 | $myInstaller = $this->generateNewInstaller($device, $profile, $generatedFor, $token, $password); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $this->loggerInstance->debug(5, "generateNewInstaller() - Device setup done"); |
| 172 | 172 | $installer = $dev->writeInstaller(); |
| 173 | 173 | $this->loggerInstance->debug(5, "generateNewInstaller() - writeInstaller complete"); |
| 174 | - $iPath = $dev->FPATH . '/tmp/' . $installer; |
|
| 174 | + $iPath = $dev->FPATH.'/tmp/'.$installer; |
|
| 175 | 175 | if ($iPath && is_file($iPath)) { |
| 176 | 176 | if (isset($dev->options['mime'])) { |
| 177 | 177 | $out['mime'] = $dev->options['mime']; |
@@ -179,17 +179,17 @@ discard block |
||
| 179 | 179 | $info = new \finfo(); |
| 180 | 180 | $out['mime'] = $info->file($iPath, FILEINFO_MIME_TYPE); |
| 181 | 181 | } |
| 182 | - $this->installerPath = $dev->FPATH . '/' . $installer; |
|
| 182 | + $this->installerPath = $dev->FPATH.'/'.$installer; |
|
| 183 | 183 | rename($iPath, $this->installerPath); |
| 184 | 184 | $integerEap = (new \core\common\EAP($dev->selectedEap))->getIntegerRep(); |
| 185 | 185 | $profile->updateCache($device, $this->installerPath, $out['mime'], $integerEap); |
| 186 | 186 | if (CONFIG['DEBUG_LEVEL'] < 4) { |
| 187 | - \core\common\Entity::rrmdir($dev->FPATH . '/tmp'); |
|
| 187 | + \core\common\Entity::rrmdir($dev->FPATH.'/tmp'); |
|
| 188 | 188 | } |
| 189 | - $this->loggerInstance->debug(4, "Generated installer: " . $this->installerPath . ": for: $device, EAP:" . $integerEap . "\n"); |
|
| 190 | - $out['link'] = "API.php?action=downloadInstaller&lang=" . $this->languageInstance->getLang() . "&profile=" . $profile->identifier . "&device=$device&generatedfor=$generatedFor"; |
|
| 189 | + $this->loggerInstance->debug(4, "Generated installer: ".$this->installerPath.": for: $device, EAP:".$integerEap."\n"); |
|
| 190 | + $out['link'] = "API.php?action=downloadInstaller&lang=".$this->languageInstance->getLang()."&profile=".$profile->identifier."&device=$device&generatedfor=$generatedFor"; |
|
| 191 | 191 | } else { |
| 192 | - $this->loggerInstance->debug(2, "Installer generation failed for: " . $profile->identifier . ":$device:" . $this->languageInstance->getLang() . "\n"); |
|
| 192 | + $this->loggerInstance->debug(2, "Installer generation failed for: ".$profile->identifier.":$device:".$this->languageInstance->getLang()."\n"); |
|
| 193 | 193 | $out['link'] = 0; |
| 194 | 194 | } |
| 195 | 195 | } |
@@ -302,9 +302,9 @@ discard block |
||
| 302 | 302 | $file = $this->installerPath; |
| 303 | 303 | $filetype = $output['mime']; |
| 304 | 304 | $this->loggerInstance->debug(4, "installer MIME type:$filetype\n"); |
| 305 | - header("Content-type: " . $filetype); |
|
| 306 | - header('Content-Disposition: inline; filename="' . basename($file) . '"'); |
|
| 307 | - header('Content-Length: ' . filesize($file)); |
|
| 305 | + header("Content-type: ".$filetype); |
|
| 306 | + header('Content-Disposition: inline; filename="'.basename($file).'"'); |
|
| 307 | + header('Content-Length: '.filesize($file)); |
|
| 308 | 308 | ob_clean(); |
| 309 | 309 | flush(); |
| 310 | 310 | readfile($file); |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | $filetype = $info->buffer($inputImage, FILEINFO_MIME_TYPE); |
| 326 | 326 | $offset = 60 * 60 * 24 * 30; |
| 327 | 327 | // gmdate cannot fail here - time() is its default argument (and integer), and we are adding an integer to it |
| 328 | - $expiresString = "Expires: " . /** @scrutinizer ignore-type */ gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; |
|
| 328 | + $expiresString = "Expires: "./** @scrutinizer ignore-type */ gmdate("D, d M Y H:i:s", time() + $offset)." GMT"; |
|
| 329 | 329 | $blob = $inputImage; |
| 330 | 330 | |
| 331 | 331 | if ($resize === TRUE) { |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | $filetype = 'image/png'; // default, only one code path where it can become different |
| 381 | 381 | list($width, $height, $resize) = $this->testForResize($widthIn, $heightIn); |
| 382 | 382 | if ($resize) { |
| 383 | - $logoFile = ROOT . '/web/downloads/logos/' . $identifier . '_' . $width . '_' . $height . '.png'; |
|
| 383 | + $logoFile = ROOT.'/web/downloads/logos/'.$identifier.'_'.$width.'_'.$height.'.png'; |
|
| 384 | 384 | } |
| 385 | 385 | if (is_file($logoFile)) { // $logoFile could be an empty string but then we will get a FALSE |
| 386 | 386 | $this->loggerInstance->debug(4, "Using cached logo $logoFile for: $identifier\n"); |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | if (!isset($device['match'])) { |
| 474 | 474 | continue; |
| 475 | 475 | } |
| 476 | - if (preg_match('/' . $device['match'] . '/', $browser)) { |
|
| 476 | + if (preg_match('/'.$device['match'].'/', $browser)) { |
|
| 477 | 477 | return $this->returnDevice($devId, $device); |
| 478 | 478 | } |
| 479 | 479 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $returnArray = []; |
| 66 | 66 | $returnArray['status'] = $status; |
| 67 | 67 | $returnArray['data'] = $data; |
| 68 | - $returnArray['tou'] = "Please consult Terms of Use at: //" . $host . \core\CAT::getRootUrlPath() . "/tou.php"; |
|
| 68 | + $returnArray['tou'] = "Please consult Terms of Use at: //".$host.\core\CAT::getRootUrlPath()."/tou.php"; |
|
| 69 | 69 | if (!empty($otherData)) { |
| 70 | 70 | $returnArray['otherdata'] = $otherData; |
| 71 | 71 | } |
@@ -294,8 +294,8 @@ discard block |
||
| 294 | 294 | */ |
| 295 | 295 | public function sendLogo($identifier, $type, $width, $height) { |
| 296 | 296 | $logo = $this->getLogo($identifier, $type, $width, $height); |
| 297 | - $blob = $logo === NULL ? file_get_contents(ROOT . '/web/resources/images/empty.png') : $logo['blob']; |
|
| 298 | - header("Content-type: " . $logo['filetype']); |
|
| 297 | + $blob = $logo === NULL ? file_get_contents(ROOT.'/web/resources/images/empty.png') : $logo['blob']; |
|
| 298 | + header("Content-type: ".$logo['filetype']); |
|
| 299 | 299 | header("Cache-Control:max-age=36000, must-revalidate"); |
| 300 | 300 | header($logo['expires']); |
| 301 | 301 | echo $blob; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $delProfiles[] = $ssid; |
| 85 | 85 | } |
| 86 | 86 | if ($cipher == 'TKIP') { |
| 87 | - $delProfiles[] = $ssid . ' (TKIP)'; |
|
| 87 | + $delProfiles[] = $ssid.' (TKIP)'; |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | $windowsProfile = []; |
@@ -92,13 +92,13 @@ discard block |
||
| 92 | 92 | $iterator = 0; |
| 93 | 93 | foreach ($allSSID as $ssid => $cipher) { |
| 94 | 94 | if ($cipher == 'TKIP') { |
| 95 | - $windowsProfile[$iterator] = $this->writeWLANprofile($ssid . ' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator); |
|
| 95 | + $windowsProfile[$iterator] = $this->writeWLANprofile($ssid.' (TKIP)', $ssid, 'WPA', 'TKIP', $eapConfig, $iterator); |
|
| 96 | 96 | $iterator++; |
| 97 | 97 | } |
| 98 | 98 | $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator); |
| 99 | 99 | $iterator++; |
| 100 | 100 | } |
| 101 | - if (($this->device_id !== 'w8') && (count($this->attributes['internal:consortia']) > 0 )) { |
|
| 101 | + if (($this->device_id !== 'w8') && (count($this->attributes['internal:consortia']) > 0)) { |
|
| 102 | 102 | // this SSID name is later used in common.inc so if you decide to chage it here change it there as well |
| 103 | 103 | $ssid = 'cat-passpoint-profile'; |
| 104 | 104 | $windowsProfile[$iterator] = $this->writeWLANprofile($ssid, $ssid, 'WPA2', 'AES', $eapConfig, $iterator, TRUE); |
@@ -157,8 +157,8 @@ discard block |
||
| 157 | 157 | $retval .= $this->attributes['internal:realm'][0]; |
| 158 | 158 | } |
| 159 | 159 | $retval .= '</DomainName>'; |
| 160 | - $retval .= '<RoamingConsortium><OUI>' . |
|
| 161 | - implode('</OUI><OUI>', $this->attributes['internal:consortia']) . |
|
| 160 | + $retval .= '<RoamingConsortium><OUI>'. |
|
| 161 | + implode('</OUI><OUI>', $this->attributes['internal:consortia']). |
|
| 162 | 162 | '</OUI></RoamingConsortium>'; |
| 163 | 163 | $retval .= '</Hotspot2>'; |
| 164 | 164 | return $retval; |
@@ -174,11 +174,11 @@ discard block |
||
| 174 | 174 | $profileFileCont = '<EAPConfig><EapHostConfig xmlns="http://www.microsoft.com/provisioning/EapHostConfig"> |
| 175 | 175 | <EapMethod> |
| 176 | 176 | '; |
| 177 | - $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">' . |
|
| 178 | - $this->selectedEap["OUTER"] . '</Type> |
|
| 177 | + $profileFileCont .= '<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">'. |
|
| 178 | + $this->selectedEap["OUTER"].'</Type> |
|
| 179 | 179 | <VendorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorId> |
| 180 | 180 | <VendorType xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorType> |
| 181 | -<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId . '</AuthorId> |
|
| 181 | +<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">' . $authorId.'</AuthorId> |
|
| 182 | 182 | </EapMethod> |
| 183 | 183 | '; |
| 184 | 184 | return $profileFileCont; |
@@ -194,10 +194,10 @@ discard block |
||
| 194 | 194 | <eapTls:ServerValidation> |
| 195 | 195 | <eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation> |
| 196 | 196 | '; |
| 197 | - $profileFileCont .= '<eapTls:ServerNames>' . $this->servers . '</eapTls:ServerNames>'; |
|
| 197 | + $profileFileCont .= '<eapTls:ServerNames>'.$this->servers.'</eapTls:ServerNames>'; |
|
| 198 | 198 | foreach ($this->caArray as $certAuthority) { |
| 199 | 199 | if ($certAuthority['root']) { |
| 200 | - $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n"; |
|
| 200 | + $profileFileCont .= "<eapTls:TrustedRootCA>".$certAuthority['sha1']."</eapTls:TrustedRootCA>\n"; |
|
| 201 | 201 | } |
| 202 | 202 | } |
| 203 | 203 | $profileFileCont .= '</eapTls:ServerValidation> |
@@ -215,10 +215,10 @@ discard block |
||
| 215 | 215 | $profileFileCont = ' |
| 216 | 216 | <ServerValidation> |
| 217 | 217 | '; |
| 218 | - $profileFileCont .= '<ServerNames>' . $this->servers . '</ServerNames> '; |
|
| 218 | + $profileFileCont .= '<ServerNames>'.$this->servers.'</ServerNames> '; |
|
| 219 | 219 | foreach ($this->caArray as $certAuthority) { |
| 220 | 220 | if ($certAuthority['root']) { |
| 221 | - $profileFileCont .= "<TrustedRootCAHash>" . chunk_split($certAuthority['sha1'], 2, ' ') . "</TrustedRootCAHash>\n"; |
|
| 221 | + $profileFileCont .= "<TrustedRootCAHash>".chunk_split($certAuthority['sha1'], 2, ' ')."</TrustedRootCAHash>\n"; |
|
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | $profileFileCont .= '<DisablePrompt>true</DisablePrompt> |
@@ -261,10 +261,10 @@ discard block |
||
| 261 | 261 | $profileFileCont = ' |
| 262 | 262 | <ServerValidation> |
| 263 | 263 | <DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation> |
| 264 | -<ServerNames>' . $this->servers . '</ServerNames>'; |
|
| 264 | +<ServerNames>' . $this->servers.'</ServerNames>'; |
|
| 265 | 265 | foreach ($this->caArray as $certAuthority) { |
| 266 | 266 | if ($certAuthority['root']) { |
| 267 | - $profileFileCont .= "<TrustedRootCA>" . $certAuthority['sha1'] . "</TrustedRootCA>\n"; |
|
| 267 | + $profileFileCont .= "<TrustedRootCA>".$certAuthority['sha1']."</TrustedRootCA>\n"; |
|
| 268 | 268 | } |
| 269 | 269 | } |
| 270 | 270 | $profileFileCont .= '</ServerValidation> |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | if ($this->useAnon) { |
| 331 | 331 | $profileFileCont .= '<IdentityPrivacy>true</IdentityPrivacy> |
| 332 | 332 | '; |
| 333 | - $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity> |
|
| 333 | + $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity> |
|
| 334 | 334 | '; |
| 335 | 335 | } else { |
| 336 | 336 | $profileFileCont .= '<IdentityPrivacy>false</IdentityPrivacy> |
@@ -352,10 +352,10 @@ discard block |
||
| 352 | 352 | $profileFileCont = ' |
| 353 | 353 | <Config xmlns="http://www.microsoft.com/provisioning/EapHostConfig"> |
| 354 | 354 | <EAPIdentityProviderList xmlns="urn:ietf:params:xml:ns:yang:ietf-eap-metadata"> |
| 355 | -<EAPIdentityProvider ID="' . $this->deviceUUID . '" namespace="urn:UUID"> |
|
| 355 | +<EAPIdentityProvider ID="' . $this->deviceUUID.'" namespace="urn:UUID"> |
|
| 356 | 356 | |
| 357 | 357 | <ProviderInfo> |
| 358 | -<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage) . '</DisplayName> |
|
| 358 | +<DisplayName>' . $this->translateString($this->attributes['general:instname'][0], $this->codePage).'</DisplayName> |
|
| 359 | 359 | </ProviderInfo> |
| 360 | 360 | <AuthenticationMethods> |
| 361 | 361 | <AuthenticationMethod> |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | if ($this->outerUser == '') { |
| 368 | 368 | $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>'; |
| 369 | 369 | } else { |
| 370 | - $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>'; |
|
| 370 | + $profileFileCont .= '<AnonymousIdentity>'.$this->outerId.'</AnonymousIdentity>'; |
|
| 371 | 371 | } |
| 372 | 372 | } |
| 373 | 373 | $profileFileCont .= '</ClientSideCredential> |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | $profileFileCont .= $this->glTtlsServerValidation(); |
| 376 | 376 | $profileFileCont .= ' |
| 377 | 377 | <InnerAuthenticationMethod> |
| 378 | -<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'] . '</NonEAPAuthMethod> |
|
| 378 | +<NonEAPAuthMethod>' . \core\common\EAP::eapDisplayName($this->selectedEap)['INNER'].'</NonEAPAuthMethod> |
|
| 379 | 379 | </InnerAuthenticationMethod> |
| 380 | 380 | <VendorSpecific> |
| 381 | 381 | <SessionResumption>false</SessionResumption> |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | <UseWinLogonCredentials>false</UseWinLogonCredentials> |
| 412 | 412 | </EapType> |
| 413 | 413 | </Eap> |
| 414 | -<EnableQuarantineChecks>' . $nea . '</EnableQuarantineChecks> |
|
| 414 | +<EnableQuarantineChecks>' . $nea.'</EnableQuarantineChecks> |
|
| 415 | 415 | <RequireCryptoBinding>false</RequireCryptoBinding> |
| 416 | 416 | '; |
| 417 | 417 | if ($this->useAnon) { |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | $profileFileCont .= '<AnonymousUserName/> |
| 424 | 424 | '; |
| 425 | 425 | } else { |
| 426 | - $profileFileCont .= '<AnonymousUserName>' . $this->outerUser . '</AnonymousUserName> |
|
| 426 | + $profileFileCont .= '<AnonymousUserName>'.$this->outerUser.'</AnonymousUserName> |
|
| 427 | 427 | '; |
| 428 | 428 | } |
| 429 | 429 | $profileFileCont .= '</IdentityPrivacy> |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | private function prepareEapConfig() { |
| 473 | 473 | if ($this->useAnon) { |
| 474 | 474 | $this->outerUser = $this->attributes['internal:anon_local_value'][0]; |
| 475 | - $this->outerId = $this->outerUser . '@' . $this->attributes['internal:realm'][0]; |
|
| 475 | + $this->outerId = $this->outerUser.'@'.$this->attributes['internal:realm'][0]; |
|
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | $profileFileCont = $this->eapConfigHeader(); |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | default: |
| 498 | 498 | break; |
| 499 | 499 | } |
| 500 | - return ['win' => $profileFileCont . '</EapHostConfig></EAPConfig>']; |
|
| 500 | + return ['win' => $profileFileCont.'</EapHostConfig></EAPConfig>']; |
|
| 501 | 501 | } |
| 502 | 502 | |
| 503 | 503 | /** |
@@ -514,10 +514,10 @@ discard block |
||
| 514 | 514 | private function writeWLANprofile($wlanProfileName, $ssid, $auth, $encryption, $eapConfig, $profileNumber, $hs20 = FALSE) { |
| 515 | 515 | $profileFileCont = '<?xml version="1.0"?> |
| 516 | 516 | <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> |
| 517 | -<name>' . $wlanProfileName . '</name> |
|
| 517 | +<name>' . $wlanProfileName.'</name> |
|
| 518 | 518 | <SSIDConfig> |
| 519 | 519 | <SSID> |
| 520 | -<name>' . $ssid . '</name> |
|
| 520 | +<name>' . $ssid.'</name> |
|
| 521 | 521 | </SSID> |
| 522 | 522 | <nonBroadcast>true</nonBroadcast> |
| 523 | 523 | </SSIDConfig>'; |
@@ -531,8 +531,8 @@ discard block |
||
| 531 | 531 | <MSM> |
| 532 | 532 | <security> |
| 533 | 533 | <authEncryption> |
| 534 | -<authentication>' . $auth . '</authentication> |
|
| 535 | -<encryption>' . $encryption . '</encryption> |
|
| 534 | +<authentication>' . $auth.'</authentication> |
|
| 535 | +<encryption>' . $encryption.'</encryption> |
|
| 536 | 536 | <useOneX>true</useOneX> |
| 537 | 537 | </authEncryption> |
| 538 | 538 | '; |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | mkdir('w8'); |
| 560 | 560 | } |
| 561 | 561 | $xmlFname = "w8/wlan_prof-$profileNumber.xml"; |
| 562 | - file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing); |
|
| 562 | + file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing); |
|
| 563 | 563 | $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n"); |
| 564 | 564 | return("\"$wlanProfileName\" \"$encryption\""); |
| 565 | 565 | } |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | mkdir('w8'); |
| 593 | 593 | } |
| 594 | 594 | $xmlFname = "w8/lan_prof.xml"; |
| 595 | - file_put_contents($xmlFname, $profileFileCont . $eapConfig['win'] . $closing); |
|
| 595 | + file_put_contents($xmlFname, $profileFileCont.$eapConfig['win'].$closing); |
|
| 596 | 596 | $this->loggerInstance->debug(2, "Installer has been written into directory $this->FPATH\n"); |
| 597 | 597 | } |
| 598 | 598 | |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | } |
| 622 | 622 | foreach ($caArray as $certAuthority) { |
| 623 | 623 | $store = $certAuthority['root'] ? "root" : "ca"; |
| 624 | - $fcontentsCerts .= '!insertmacro install_ca_cert "' . $certAuthority['file'] . '" "' . $certAuthority['sha1'] . '" "' . $store . "\"\n"; |
|
| 624 | + $fcontentsCerts .= '!insertmacro install_ca_cert "'.$certAuthority['file'].'" "'.$certAuthority['sha1'].'" "'.$store."\"\n"; |
|
| 625 | 625 | } |
| 626 | 626 | fwrite($fileHandleCerts, $fcontentsCerts); |
| 627 | 627 | fclose($fileHandleCerts); |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | private function writeMainNSH($eap, $attr) { |
| 639 | 639 | $this->loggerInstance->debug(4, "writeMainNSH"); |
| 640 | 640 | $this->loggerInstance->debug(4, $attr); |
| 641 | - $this->loggerInstance->debug(4, "Device_id = " . $this->device_id . "\n"); |
|
| 641 | + $this->loggerInstance->debug(4, "Device_id = ".$this->device_id."\n"); |
|
| 642 | 642 | $fcontents = "!define W8\n"; |
| 643 | 643 | if ($this->device_id == 'w10') { |
| 644 | 644 | $fcontents .= "!define W10\n"; |
@@ -668,8 +668,8 @@ discard block |
||
| 668 | 668 | if ($eap == \core\common\EAP::EAPTYPE_SILVERBULLET) { |
| 669 | 669 | $fcontents .= "!define SILVERBULLET\n"; |
| 670 | 670 | } |
| 671 | - $fcontents .= '!define ' . $eapStr; |
|
| 672 | - $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"'; |
|
| 671 | + $fcontents .= '!define '.$eapStr; |
|
| 672 | + $fcontents .= "\n".'!define EXECLEVEL "'.$execLevel.'"'; |
|
| 673 | 673 | $fcontents .= $this->writeNsisDefines($attr); |
| 674 | 674 | file_put_contents('main.nsh', $fcontents); |
| 675 | 675 | } |