@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | <key>PayloadIdentifier</key> |
73 | 73 | <string>" . self::$iPhonePayloadPrefix . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
74 | 74 | <key>PayloadOrganization</key> |
75 | - <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> |
|
75 | + <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> |
|
76 | 76 | <key>PayloadType</key> |
77 | 77 | <string>Configuration</string> |
78 | 78 | <key>PayloadUUID</key> |
@@ -325,9 +325,9 @@ discard block |
||
325 | 325 | $retval .= " |
326 | 326 | </array>"; |
327 | 327 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
328 | - $retval .= "<key>UserName</key><string>".$this->clientCert["username"]."</string>"; |
|
328 | + $retval .= "<key>UserName</key><string>" . $this->clientCert["username"] . "</string>"; |
|
329 | 329 | } |
330 | - $retval .=" |
|
330 | + $retval .= " |
|
331 | 331 | <key>TTLSInnerAuthentication</key> |
332 | 332 | <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2") . "</string> |
333 | 333 | </dict>"; |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | <key>PayloadVersion</key> |
505 | 505 | <integer>1</integer> |
506 | 506 | </dict>", |
507 | - "UUID" => $payloadUUID,]; |
|
507 | + "UUID" => $payloadUUID, ]; |
|
508 | 508 | } |
509 | 509 | |
510 | 510 | private function expiryBlock() { |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | if(j.local_url !== undefined && j.local_url) |
209 | 209 | txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>'; |
210 | 210 | if(j.local_email !== undefined && j.local_email) |
211 | - txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>'; |
|
211 | + txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>'; |
|
212 | 212 | if(j.local_phone !== undefined && j.local_phone) |
213 | - txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>'; |
|
213 | + txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>'; |
|
214 | 214 | if(txt) |
215 | - txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>'; |
|
215 | + txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>'; |
|
216 | 216 | else |
217 | - txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst)); ?>.</th></tr></table>"; |
|
217 | + txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst)); ?>.</th></tr></table>"; |
|
218 | 218 | $("#user_info").html(txt); |
219 | 219 | $("#user_info").show(); |
220 | 220 | resetDevices(); |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $("#g_"+v.id).addClass('alertButton'); |
228 | 228 | $("#cross_icon_"+v.id).show(); |
229 | 229 | $("#"+v.id).addClass('disabledDevice'); |
230 | - $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>"); |
|
230 | + $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>"); |
|
231 | 231 | $("#info_b_"+v.id+",#g_info_b_"+v.id).hide(); |
232 | 232 | } else { |
233 | 233 | if(v.status == -1) |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $("#"+v.id+",#g_"+v.id).addClass('additionalInfo'); |
240 | 240 | $("#"+v.id+",#g_"+v.id).click(function(event){ |
241 | 241 | i_div = $("#info_"+$(this).attr('id')); |
242 | - t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue"));?></a></span>"; |
|
242 | + t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue")); ?></a></span>"; |
|
243 | 243 | i_div.html(t); |
244 | 244 | $(".redirect_link").click(function(event) { |
245 | 245 | i_div.hide(); |
@@ -247,13 +247,13 @@ discard block |
||
247 | 247 | |
248 | 248 | }); |
249 | 249 | } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) { |
250 | - var continue_text = "<?php escaped_echo(_("Continue"));?>"; |
|
250 | + var continue_text = "<?php escaped_echo(_("Continue")); ?>"; |
|
251 | 251 | $("#"+v.id+",#g_"+v.id).addClass('additionalInfo'); |
252 | 252 | $("#"+v.id+",#g_"+v.id).click(function(event){ |
253 | 253 | i_div = $("#info_"+$(this).attr('id')); |
254 | 254 | if(v.status > 0) { |
255 | - t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>"; |
|
256 | - continue_text = "<?php escaped_echo(_("Close"));?>"; |
|
255 | + t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>"; |
|
256 | + continue_text = "<?php escaped_echo(_("Close")); ?>"; |
|
257 | 257 | } else { |
258 | 258 | t = i_div.html(); |
259 | 259 | if(v.message != '0') { |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | } |
323 | 323 | |
324 | 324 | function infoCAT(k,subK,title) { |
325 | - $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE","user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) { |
|
325 | + $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) { |
|
326 | 326 | showInfo(data, title)}); |
327 | 327 | } |
328 | 328 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $("#loading_ico").css('left',x+'px'); |
332 | 332 | $("#loading_ico").attr('src','resources/images/icons/loading9.gif'); |
333 | 333 | $("#loading_ico").show(); |
334 | - window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE","admin/overview_user.php")?>?lang="+lang); |
|
334 | + window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE", "admin/overview_user.php")?>?lang="+lang); |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | return(Math.round(windowWidth/2)); |
354 | 354 | } |
355 | 355 | |
356 | -<?php if($idpId) { |
|
356 | +<?php if ($idpId) { |
|
357 | 357 | print "front_page = 0;\n"; |
358 | 358 | } ?> |
359 | 359 | |
@@ -477,13 +477,13 @@ discard block |
||
477 | 477 | "overlay":true,"cookie":true,"type":false, |
478 | 478 | "country":true,"location":true, |
479 | 479 | "title":"<?php escaped_echo($cat->nomenclature_inst) ?>", |
480 | - "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>", |
|
481 | - "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>", |
|
482 | - "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>", |
|
480 | + "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>", |
|
481 | + "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>", |
|
482 | + "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>", |
|
483 | 483 | "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>", |
484 | 484 | "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>", |
485 | 485 | "textAllCountries": "<?php escaped_echo(_("all countries")) ?>", |
486 | - "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>", |
|
486 | + "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>", |
|
487 | 487 | "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>", |
488 | 488 | "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>", |
489 | 489 | "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>", |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | body { |
22 | - background: <?php echo $colour1;?>; |
|
22 | + background: <?php echo $colour1; ?>; |
|
23 | 23 | color: #000000; |
24 | 24 | font-family:"Open Sans", Helvetica, sans-serif; |
25 | 25 | font-size:12px; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | button { |
36 | - background: <?php echo $colour2;?>; |
|
36 | + background: <?php echo $colour2; ?>; |
|
37 | 37 | color: #FFFFFF; |
38 | 38 | min-height: 23px; |
39 | 39 | border-left-style: outset; |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | border-bottom-style:solid; |
188 | 188 | border-top-width:5px; |
189 | 189 | border-bottom-width:5px; |
190 | - border-color: <?php echo $colour1;?>; |
|
190 | + border-color: <?php echo $colour1; ?>; |
|
191 | 191 | padding-left:30px; |
192 | - color: <?php echo $colour2;?>; |
|
192 | + color: <?php echo $colour2; ?>; |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | div.pagecontent { |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | |
383 | 383 | span.edu_cat { |
384 | 384 | font-weight: bold; |
385 | - color: <?php echo $colour2;?>; |
|
385 | + color: <?php echo $colour2; ?>; |
|
386 | 386 | } |
387 | 387 | |
388 | 388 | span.tooltip { |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | border-bottom-style:solid; |
496 | 496 | border-top-width:5px; |
497 | 497 | border-bottom-width:5px; |
498 | - border-color: <?php echo $colour1;?>; |
|
498 | + border-color: <?php echo $colour1; ?>; |
|
499 | 499 | padding-left:30px; |
500 | 500 | } |
501 | 501 | |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | span.redirect_link { |
552 | - background: <?php echo $colour2;?>; color: #FFFFFF; height: 23px; |
|
552 | + background: <?php echo $colour2; ?>; color: #FFFFFF; height: 23px; |
|
553 | 553 | border-left-style: inset; border-left-width: 1px; border-left-color: #8bbacb; |
554 | 554 | border-top-style: inset; border-top-width: 1px; border-top-color: #8bbacb; |
555 | 555 | border-right-style: outset; border-right-width: 2px; border-right-color: #043d52; |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | width: 30em; |
621 | 621 | padding-left: 10px; |
622 | 622 | padding-right: 00px; |
623 | - background: <?php echo $colour2;?>; |
|
623 | + background: <?php echo $colour2; ?>; |
|
624 | 624 | color: #FFFFFF; |
625 | 625 | box-shadow: 10px 10px 5px #888888; |
626 | 626 | } |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | // border-bottom-width:5px; |
671 | 671 | border-color: #e7e7e7; |
672 | 672 | padding-left:30px; |
673 | - color: <?php echo $colour2;?>; |
|
673 | + color: <?php echo $colour2; ?>; |
|
674 | 674 | } |
675 | 675 | |
676 | 676 | #headingx h1 { |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | text-align: justify; |
690 | 690 | border-bottom-style:solid; |
691 | 691 | border-bottom-width:5px; |
692 | - border-color: <?php echo $colour1;?>; |
|
692 | + border-color: <?php echo $colour1; ?>; |
|
693 | 693 | font-size: 14px; |
694 | 694 | font-weight: normal; |
695 | 695 | } |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | |
699 | 699 | #faq { |
700 | 700 | padding: 20px; |
701 | - color: <?php echo $colour2;?>; |
|
701 | + color: <?php echo $colour2; ?>; |
|
702 | 702 | background: #ffffff; |
703 | 703 | } |
704 | 704 | |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | |
739 | 739 | #menu_column { |
740 | 740 | border-right:solid; |
741 | - border-color: <?php echo $colour1;?>; |
|
741 | + border-color: <?php echo $colour1; ?>; |
|
742 | 742 | border-width:5px; |
743 | 743 | min-height:400px; |
744 | 744 | padding-left: 10px; |
@@ -756,11 +756,11 @@ discard block |
||
756 | 756 | } |
757 | 757 | |
758 | 758 | a:link { |
759 | - color:<?php echo $colour2;?>; |
|
759 | + color:<?php echo $colour2; ?>; |
|
760 | 760 | } |
761 | 761 | |
762 | 762 | a:visited { |
763 | - color:<?php echo $colour2;?>; |
|
763 | + color:<?php echo $colour2; ?>; |
|
764 | 764 | } |
765 | 765 | |
766 | 766 | a:hover { |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | } |
769 | 769 | |
770 | 770 | a:active { |
771 | - color:<?php echo $colour2;?>; |
|
771 | + color:<?php echo $colour2; ?>; |
|
772 | 772 | } |
773 | 773 | |
774 | 774 | .comment { |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '" |
233 | 233 | '; |
234 | 234 | } |
235 | - $fcontents .= ' |
|
235 | + $fcontents .= ' |
|
236 | 236 | Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
237 | 237 | !define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
238 | 238 | !define VERSION "' . \core\CAT::VERSION_MAJOR . '.' . \core\CAT::VERSION_MINOR . '" |
@@ -241,8 +241,8 @@ discard block |
||
241 | 241 | !define LOCALE "' . preg_replace('/\..*$/', '', CONFIG['LANGUAGES'][$this->languageInstance->getLang()]['locale']) . '" |
242 | 242 | ;-------------------------------- |
243 | 243 | !define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->codePage) . '" |
244 | -!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0] ) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '" |
|
245 | -!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0] ) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '" |
|
244 | +!define SUPPORT "' . ((isset($attr['support:email'][0]) && $attr['support:email'][0]) ? $attr['support:email'][0] : $this->translateString($this->support_email_substitute, $this->codePage)) . '" |
|
245 | +!define URL "' . ((isset($attr['support:url'][0]) && $attr['support:url'][0]) ? $attr['support:url'][0] : $this->translateString($this->support_url_substitute, $this->codePage)) . '" |
|
246 | 246 | '; |
247 | 247 | |
248 | 248 | |
@@ -256,11 +256,11 @@ discard block |
||
256 | 256 | $fcontents .= '!define REALM "' . $attr['internal:realm'][0] . '" |
257 | 257 | '; |
258 | 258 | } |
259 | - if(!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
259 | + if (!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
260 | 260 | $fcontents .= '!define HINT_USER_INPUT "' . $attr['internal:hint_userinput_suffix'][0] . '" |
261 | 261 | '; |
262 | 262 | } |
263 | - if(!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
263 | + if (!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
264 | 264 | $fcontents .= '!define VERIFY_USER_REALM_INPUT "' . $attr['internal:verify_userinput_suffix'][0] . '" |
265 | 265 | '; |
266 | 266 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | |
138 | 138 | $out .= 'Config.sb_user_file = """' . $this->mkSbUserFile() . '"""' . "\n"; |
139 | 139 | if (!empty($this->attributes['internal:realm'][0])) { |
140 | - $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
|
140 | + $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
|
141 | 141 | } |
142 | 142 | if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
143 | 143 | $out .= "Config.hint_user_input = True\n"; |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | public function writeInstaller() { |
34 | 34 | $installerPath = $this->installerBasename . ".py"; |
35 | 35 | $this->copyFile("main.py", $installerPath); |
36 | - $installer = fopen($installerPath,"a"); |
|
37 | - fwrite($installer,$this->writeMessages()); |
|
38 | - fwrite($installer,$this->writeConfigVars()); |
|
36 | + $installer = fopen($installerPath, "a"); |
|
37 | + fwrite($installer, $this->writeMessages()); |
|
38 | + fwrite($installer, $this->writeConfigVars()); |
|
39 | 39 | fwrite($installer, "run_installer()\n"); |
40 | 40 | return($installerPath); |
41 | 41 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $out .= 'Messages.p12_title = "' . _("personal certificate file (p12 or pfx)") . "\"\n"; |
101 | 101 | $out .= 'Messages.save_wpa_conf = "' . _("Network Manager configuration failed, but we may generate a wpa_supplicant configuration file if you wish. Be warned that your connection password will be saved in this file as clear text.") . "\"\n"; |
102 | 102 | $out .= 'Messages.save_wpa_confirm = "' . _("Write the file") . "\"\n"; |
103 | - $out .= 'Messages.wrongUsernameFormat = "' ._("Error: Your username must be of the form 'xxx@institutionID' e.g. '[email protected]'!") . "\"\n"; |
|
103 | + $out .= 'Messages.wrongUsernameFormat = "' . _("Error: Your username must be of the form 'xxx@institutionID' e.g. '[email protected]'!") . "\"\n"; |
|
104 | 104 | $out .= 'Messages.wrong_realm = "' . _("Error: your username must be in the form of 'xxx@{}'. Please enter the username in the correct format.") . "\"\n"; |
105 | 105 | $out .= 'Messages.wrong_realm_suffix = "' . _("Error: your username must be in the form of 'xxx@institutionID' and end with '{}'. Please enter the username in the correct format.") . "\"\n"; |
106 | 106 | |
@@ -129,8 +129,8 @@ discard block |
||
129 | 129 | $out .= "Config.use_other_tls_id = False\n"; |
130 | 130 | } |
131 | 131 | $tou = $this->mkUserConsent(); |
132 | - $out .= 'Config.tou = ' . ( $tou ? '"""' . $tou . '"""' : 'None' ) . "\n"; |
|
133 | - $out .= 'Config.CA = """' . $this->mkCAfile() . '"""' . "\n"; |
|
132 | + $out .= 'Config.tou = ' . ($tou ? '"""' . $tou . '"""' : 'None') . "\n"; |
|
133 | + $out .= 'Config.CA = """' . $this->mkCAfile() . '"""' . "\n"; |
|
134 | 134 | $out .= "Config.anonymous_identity = '" . $this->determineOuterIdString() . "'\n"; |
135 | 135 | $out .= 'Config.init_info = """' . $this->mkIntro() . '"""' . "\n"; |
136 | 136 | $out .= 'Config.init_confirmation = "' . $this->mkProfileConfirmation() . "\"\n"; |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | if (!empty($this->attributes['internal:realm'][0])) { |
140 | 140 | $out .= 'Config.user_realm = "' . $this->attributes['internal:realm'][0] . "\"\n"; |
141 | 141 | } |
142 | - if(!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
|
142 | + if (!empty($this->attributes['internal:hint_userinput_suffix'][0]) && $this->attributes['internal:hint_userinput_suffix'][0] == 1) { |
|
143 | 143 | $out .= "Config.hint_user_input = True\n"; |
144 | 144 | } |
145 | - if(!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) { |
|
145 | + if (!empty($this->attributes['internal:verify_userinput_suffix'][0]) && $this->attributes['internal:verify_userinput_suffix'][0] == 1) { |
|
146 | 146 | $out .= "Config.verify_user_realm_input = True\n"; |
147 | 147 | } |
148 | 148 | return $out; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | $out .= "'DNS:$oneServer'"; |
184 | 184 | } |
185 | - return "[" . $out. "]"; |
|
185 | + return "[" . $out . "]"; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | return '[' . implode(', ', $outArray) . ']'; |
207 | 207 | } |
208 | 208 | |
209 | - private function mkCAfile(){ |
|
209 | + private function mkCAfile() { |
|
210 | 210 | $out = ''; |
211 | 211 | $cAlist = $this->attributes['internal:CAs'][0]; |
212 | 212 | foreach ($cAlist as $oneCa) { |
@@ -124,8 +124,7 @@ |
||
124 | 124 | $out .= "Config.eap_inner = '" . $eapMethod['INNER'] . "'\n"; |
125 | 125 | if ($this->selectedEap == \core\common\EAP::EAPTYPE_TLS && isset($this->attributes['eap-specific:tls_use_other_id']) && $this->attributes['eap-specific:tls_use_other_id'][0] == 'on') { |
126 | 126 | $out .= "Config.use_other_tls_id = True\n"; |
127 | - } |
|
128 | - else { |
|
127 | + } else { |
|
129 | 128 | $out .= "Config.use_other_tls_id = False\n"; |
130 | 129 | } |
131 | 130 | $tou = $this->mkUserConsent(); |