@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | $details['name'] = preg_replace('/(.)\/(.)/', "$1<br/>$2", $details['name']); |
266 | 266 | $details['name'] = preg_replace('/\//', "", $details['name']); |
267 | - $certstatus = ( $details['root'] == 1 ? "R" : "I"); |
|
267 | + $certstatus = ($details['root'] == 1 ? "R" : "I"); |
|
268 | 268 | if ($details['ca'] == 0 && $details['root'] != 1) { |
269 | 269 | return "<div class='ca-summary' style='background-color:red'><div style='position:absolute; right: 0px; width:20px; height:20px; background-color:maroon; border-radius:10px; text-align: center;'><div style='padding-top:3px; font-weight:bold; color:#ffffff;'>S</div></div>" . _("This is a <strong>SERVER</strong> certificate!") . "<br/>" . $details['name'] . "</div>"; |
270 | 270 | } |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | } |
340 | 340 | break; |
341 | 341 | case "boolean": |
342 | - $retval .= "<tr><td>" . display_name($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off") ) . "</strong></td></tr>"; |
|
342 | + $retval .= "<tr><td>" . display_name($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off")) . "</strong></td></tr>"; |
|
343 | 343 | break; |
344 | 344 | default: |
345 | 345 | $retval .= "<tr><td>" . display_name($option['name']) . "</td><td>$language</td><td><strong>$content</strong></td></tr>"; |
@@ -77,7 +77,7 @@ |
||
77 | 77 | <select id='lang' name='lang' onchange='this.form.submit()'> |
78 | 78 | <?php |
79 | 79 | foreach (Config::$LANGUAGES as $lang => $value) { |
80 | - echo "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $value['display'] . "</option> "; |
|
80 | + echo "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "") . " >" . $value['display'] . "</option> "; |
|
81 | 81 | } |
82 | 82 | ?> |
83 | 83 | </select> |
@@ -69,14 +69,14 @@ |
||
69 | 69 | File "GEANTLink64.msi" |
70 | 70 | nsArray::Set Delete_files "GEANTLink64.msi" |
71 | 71 | DetailPrint "Install GEANTLink installer" |
72 | - MessageBox MB_OK "<?php echo_nsi( _("An additional piece of software 'GEANTlink' needs to be installed. This installation requires Administrator rights; you will be prompted to give permission for that action."))?>" |
|
72 | + MessageBox MB_OK "<?php echo_nsi(_("An additional piece of software 'GEANTlink' needs to be installed. This installation requires Administrator rights; you will be prompted to give permission for that action."))?>" |
|
73 | 73 | !insertmacro debug_cat 1 "Run GEANTLink installer" |
74 | 74 | !insertmacro debug_cat 3 'Execute: msiexec.exe /i "$OUTDIR\GEANTLink$Platform.msi"' |
75 | 75 | ClearErrors |
76 | 76 | ExecWait '$Msiexec.exe /i "$TEMP\GEANTLink$Platform.msi" /qb' $0 |
77 | 77 | !insertmacro debug_cat 4 "GEANTLink returned $0" |
78 | 78 | StrCmp $0 0 Cont2 |
79 | - MessageBox MB_OK "<?php echo_nsi( _("Error installing GEANTLink.\$\\nEmbedded installer didn't complete succesfully."))?>" |
|
79 | + MessageBox MB_OK "<?php echo_nsi(_("Error installing GEANTLink.\$\\nEmbedded installer didn't complete succesfully."))?>" |
|
80 | 80 | Quit |
81 | 81 | Cont2: |
82 | 82 | FunctionEnd |
@@ -44,10 +44,11 @@ discard block |
||
44 | 44 | // NAPTR existence check |
45 | 45 | $tabletext .= "<td>"; |
46 | 46 | $naptr = $testsuite->NAPTR(); |
47 | - if ($naptr != RETVAL_NOTCONFIGURED) |
|
48 | - switch ($naptr) { |
|
47 | + if ($naptr != RETVAL_NOTCONFIGURED) { |
|
48 | + switch ($naptr) { |
|
49 | 49 | case RETVAL_NONAPTR: |
50 | 50 | $tabletext .= _("No NAPTR records"); |
51 | + } |
|
51 | 52 | break; |
52 | 53 | case RETVAL_ONLYUNRELATEDNAPTR: |
53 | 54 | $tabletext .= sprintf(_("No associated NAPTR records")); |
@@ -73,8 +74,9 @@ discard block |
||
73 | 74 | } |
74 | 75 | if ($srv > 0) { |
75 | 76 | $hosts = $testsuite->NAPTR_hostnames(); |
76 | - if ($hosts == RETVAL_INVALID) |
|
77 | - $NAPTR_issues = true; |
|
77 | + if ($hosts == RETVAL_INVALID) { |
|
78 | + $NAPTR_issues = true; |
|
79 | + } |
|
78 | 80 | } |
79 | 81 | break; |
80 | 82 | } |
@@ -91,14 +93,17 @@ discard block |
||
91 | 93 | foreach (Config::$RADIUSTESTS['UDP-hosts'] as $hostindex => $host) { |
92 | 94 | $testsuite->UDP_reachability($hostindex, true, true); |
93 | 95 | $results = $testsuite->UDP_reachability_result[$hostindex]; |
94 | - if ($results['packetflow_sane'] != TRUE) |
|
95 | - $UDPErrors = true; |
|
96 | - if (empty($results['packetflow'][11])) |
|
97 | - $UDPErrors = true; |
|
96 | + if ($results['packetflow_sane'] != TRUE) { |
|
97 | + $UDPErrors = true; |
|
98 | + } |
|
99 | + if (empty($results['packetflow'][11])) { |
|
100 | + $UDPErrors = true; |
|
101 | + } |
|
98 | 102 | if (count($results['cert_oddities']) > 0) { |
99 | - foreach ($results['cert_oddities'] as $oddity) |
|
100 | - if ($oddity['level'] > $certBiggestOddity) |
|
103 | + foreach ($results['cert_oddities'] as $oddity) { |
|
104 | + if ($oddity['level'] > $certBiggestOddity) |
|
101 | 105 | $certBiggestOddity = $oddity['level']; |
106 | + } |
|
102 | 107 | } |
103 | 108 | } |
104 | 109 | |
@@ -119,8 +124,9 @@ discard block |
||
119 | 124 | if ($naptr > 0 && count($testsuite->NAPTR_hostname_records) > 0) { |
120 | 125 | foreach ($testsuite->NAPTR_hostname_records as $hostindex => $addr) { |
121 | 126 | $retval = $testsuite->TLS_clients_side_check($addr); |
122 | - if ($retval != RETVAL_OK && $retval != RETVAL_SKIPPED) |
|
123 | - $dynamicErrors = true; |
|
127 | + if ($retval != RETVAL_OK && $retval != RETVAL_SKIPPED) { |
|
128 | + $dynamicErrors = true; |
|
129 | + } |
|
124 | 130 | } |
125 | 131 | } |
126 | 132 | if (!$dynamicErrors) { |
@@ -162,10 +168,11 @@ discard block |
||
162 | 168 | $profiles_showtime = []; |
163 | 169 | $profiles_readyconf = []; |
164 | 170 | |
165 | -foreach ($allIDPs as $index => $oneidp) |
|
171 | +foreach ($allIDPs as $index => $oneidp) { |
|
166 | 172 | foreach ($oneidp['instance']->listProfiles() as $profile) |
167 | 173 | if ($profile->isShowtime()) { |
168 | 174 | $profiles_showtime[] = ['idp' => $oneidp['instance'], 'profile' => $profile]; |
175 | +} |
|
169 | 176 | } else if ($profile->readyForShowtime()) { |
170 | 177 | $profiles_confready[] = ['idp' => $oneidp['instance'], 'profile' => $profile]; |
171 | 178 | } |
@@ -173,16 +180,18 @@ discard block |
||
173 | 180 | if (count($profiles_showtime) > 0) { |
174 | 181 | echo "<h2>" . _("Profiles marked as visible (V)") . "</h2>" . "<table>"; |
175 | 182 | echo rowdescription(); |
176 | - foreach ($profiles_showtime as $oneprofile) |
|
177 | - echo profilechecks($oneprofile['idp'], $oneprofile['profile']); |
|
183 | + foreach ($profiles_showtime as $oneprofile) { |
|
184 | + echo profilechecks($oneprofile['idp'], $oneprofile['profile']); |
|
185 | + } |
|
178 | 186 | echo "</table>"; |
179 | 187 | } |
180 | 188 | |
181 | 189 | if (count($profiles_confready) > 0) { |
182 | 190 | echo "<h2>" . _("Profiles with sufficient configuration, not marked as visible (C)") . "</h2>" . "<table>"; |
183 | 191 | echo rowdescription(); |
184 | - foreach ($profiles_confready as $oneprofile) |
|
185 | - echo profilechecks($oneprofile['idp'], $oneprofile['profile']); |
|
192 | + foreach ($profiles_confready as $oneprofile) { |
|
193 | + echo profilechecks($oneprofile['idp'], $oneprofile['profile']); |
|
194 | + } |
|
186 | 195 | echo "</table>"; |
187 | 196 | } |
188 | 197 | ?> |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | function disp_name($eap) { |
29 | 29 | $displayName = EAP::eapDisplayName($eap); |
30 | - return $displayName['OUTER'] . ( $displayName['INNER'] != '' ? '-' . $displayName['INNER'] : ''); |
|
30 | + return $displayName['OUTER'] . ($displayName['INNER'] != '' ? '-' . $displayName['INNER'] : ''); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | function printDN($distinguishedName) { |
@@ -259,8 +259,8 @@ |
||
259 | 259 | $retval = []; |
260 | 260 | $invitations = $this->databaseHandle->exec("SELECT cat_institution_id, country, name, invite_issuer_level, invite_dest_mail, invite_token |
261 | 261 | FROM invitations |
262 | - WHERE cat_institution_id " . ( $idpIdentifier != 0 ? "= $idpIdentifier" : "IS NULL") . " AND invite_created >= TIMESTAMPADD(DAY, -1, NOW()) AND used = 0"); |
|
263 | - $this->loggerInstance->debug(4, "Retrieving pending invitations for " . ($idpIdentifier != 0 ? "IdP $idpIdentifier" : "IdPs awaiting initial creation" ) . ".\n"); |
|
262 | + WHERE cat_institution_id " . ($idpIdentifier != 0 ? "= $idpIdentifier" : "IS NULL") . " AND invite_created >= TIMESTAMPADD(DAY, -1, NOW()) AND used = 0"); |
|
263 | + $this->loggerInstance->debug(4, "Retrieving pending invitations for " . ($idpIdentifier != 0 ? "IdP $idpIdentifier" : "IdPs awaiting initial creation") . ".\n"); |
|
264 | 264 | while ($invitationQuery = mysqli_fetch_object($invitations)) { |
265 | 265 | $retval[] = ["country" => $invitationQuery->country, "name" => $invitationQuery->name, "mail" => $invitationQuery->invite_dest_mail, "token" => $invitationQuery->invite_token]; |
266 | 266 | } |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp" |
113 | 113 | !define MUI_COMPONENTSPAGE_SMALLDESC |
114 | 114 | |
115 | -!define WELCOME_HEADER "<?php printf(sprint_nsi(_("Welcome to the %s installer")),CONFIG['CONSORTIUM']['name'])?>" |
|
116 | -!define FAREWELL_HEADER "<?php echo_nsi( _("Installation complete"))?>" |
|
117 | -!define FAREWELL_TEXT "<?php echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php echo_nsi( _("Your system is ready."))?>" |
|
118 | -!define FAREWELL_FAIL "<?php echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php echo_nsi( _("Please contact \${SUPPORT}."))?>" |
|
115 | +!define WELCOME_HEADER "<?php printf(sprint_nsi(_("Welcome to the %s installer")), CONFIG['CONSORTIUM']['name'])?>" |
|
116 | +!define FAREWELL_HEADER "<?php echo_nsi(_("Installation complete"))?>" |
|
117 | +!define FAREWELL_TEXT "<?php echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php echo_nsi(_("Your system is ready."))?>" |
|
118 | +!define FAREWELL_FAIL "<?php echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php echo_nsi(_("Please contact \${SUPPORT}."))?>" |
|
119 | 119 | ;-------------------------------- |
120 | 120 | ;Languages |
121 | 121 | !insertmacro MUI_LANGUAGE "${LANG}" |
@@ -123,14 +123,14 @@ discard block |
||
123 | 123 | ;-------------------------------- |
124 | 124 | ; License file |
125 | 125 | !ifdef LICENSE_FILE |
126 | -LicenseForceSelection checkbox "<?php echo_nsi( _("Accept"))?>" |
|
126 | +LicenseForceSelection checkbox "<?php echo_nsi(_("Accept"))?>" |
|
127 | 127 | LicenseText "<?php echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>" |
128 | 128 | LicenseData ${LICENSE_FILE} |
129 | 129 | !endif |
130 | 130 | |
131 | 131 | ;----------------------------------- |
132 | 132 | |
133 | -MiscButtonText "" "" "" "<?php echo_nsi( _("Finish"))?>" |
|
133 | +MiscButtonText "" "" "" "<?php echo_nsi(_("Finish"))?>" |
|
134 | 134 | ;---------------------------------- |
135 | 135 | ; FUNCTIONS |
136 | 136 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | !macro install_ca_cert ca_file ca_fingerprint level |
165 | 165 | !insertmacro debug_cat 2 "locating certificate SHA=${ca_fingerprint} Level=${level}" |
166 | - DetailPrint "<?php echo_nsi( _("searching for certificate"))?> ${ca_file}" |
|
166 | + DetailPrint "<?php echo_nsi(_("searching for certificate"))?> ${ca_file}" |
|
167 | 167 | File "${ca_file}" |
168 | 168 | nsArray::Set Delete_files "${ca_file}" |
169 | 169 | !insertmacro debug_cat 2 "Testing machine store root" |
@@ -225,13 +225,13 @@ discard block |
||
225 | 225 | ${EndIf} |
226 | 226 | !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}" |
227 | 227 | !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}" |
228 | - DetailPrint "<?php echo_nsi( _("installing certificate"))?> ${ca_file}" |
|
228 | + DetailPrint "<?php echo_nsi(_("installing certificate"))?> ${ca_file}" |
|
229 | 229 | nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}' |
230 | 230 | Pop $0 |
231 | 231 | !insertmacro debug_cat 3 "certutil returned $0" |
232 | 232 | ${If} $0 != 0 |
233 | 233 | IfSilent +2 |
234 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi( _("could not install certificate"))?> ${ca_file}" |
|
234 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi(_("could not install certificate"))?> ${ca_file}" |
|
235 | 235 | !insertmacro debug_cat 1 "could not install certificate ${ca_file}" |
236 | 236 | ${EndIf} |
237 | 237 | no_install_${ca_file}: |
@@ -420,26 +420,26 @@ discard block |
||
420 | 420 | pop $R0 |
421 | 421 | ${If} $tkip_count > 0 |
422 | 422 | ${If} $aes_count > 1 |
423 | - StrCpy $R1 "$\r$\n$\n<?php echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
423 | + StrCpy $R1 "$\r$\n$\n<?php echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
424 | 424 | ${Else} |
425 | - StrCpy $R1 "$\r$\n$\n<?php echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
425 | + StrCpy $R1 "$\r$\n$\n<?php echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
426 | 426 | ${EndIf} |
427 | 427 | ${Else} |
428 | 428 | StrCpy $R1 "" |
429 | 429 | ${EndIf} |
430 | 430 | ${If} $profile_count > 0 |
431 | - StrCpy $welcome_message "<?php echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
432 | -<?php echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
431 | + StrCpy $welcome_message "<?php echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
432 | +<?php echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
433 | 433 | $R0.\ |
434 | 434 | $R1$\r$\n$\n\ |
435 | -<?php echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
435 | +<?php echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
436 | 436 | EMAIL: ${SUPPORT}$\r$\n\ |
437 | 437 | WWW: ${URL}" |
438 | 438 | ${Else} |
439 | -StrCpy $welcome_message "<?php echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
440 | -<?php echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\ |
|
439 | +StrCpy $welcome_message "<?php echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
440 | +<?php echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\ |
|
441 | 441 | $R1$\r$\n$\n\ |
442 | -<?php echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
442 | +<?php echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
443 | 443 | EMAIL: ${SUPPORT}$\r$\n\ |
444 | 444 | WWW: ${URL}" |
445 | 445 | ${EndIf} |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0 |
466 | 466 | ;TRANSLATION |
467 | 467 | nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\ |
468 | -$\r$\n$\r$\n<?php echo_nsi( _("Installer created with software from the GEANT project."))?>" |
|
468 | +$\r$\n$\r$\n<?php echo_nsi(_("Installer created with software from the GEANT project."))?>" |
|
469 | 469 | Pop $TEXT |
470 | 470 | |
471 | 471 | SetCtlColors $DIALOG "" 0xffffff |
@@ -576,18 +576,18 @@ discard block |
||
576 | 576 | ${If} $wireless_result == 1 |
577 | 577 | !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service" |
578 | 578 | IfSilent +2 |
579 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
579 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
580 | 580 | Call Cleanup |
581 | 581 | ${EndIf} |
582 | 582 | ${If} $wireless_result == 2 |
583 | 583 | IfSilent +2 |
584 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>" |
|
584 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>" |
|
585 | 585 | Call Cleanup |
586 | 586 | ${EndIf} |
587 | 587 | ${Else} |
588 | 588 | ${If} $wireless_result > 0 |
589 | 589 | IfSilent +3 |
590 | - MessageBox MB_YESNO "<?php echo_nsi( _("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes |
|
590 | + MessageBox MB_YESNO "<?php echo_nsi(_("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes |
|
591 | 591 | Call Cleanup |
592 | 592 | wired_yes: |
593 | 593 | Push 1 |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | ${If} $wired == 1 |
604 | 604 | ${If} $force_wired == 0 |
605 | 605 | IfSilent wired |
606 | - MessageBox MB_YESNO "<?php echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
606 | + MessageBox MB_YESNO "<?php echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
607 | 607 | Push 0 |
608 | 608 | Pop $wired |
609 | 609 | ${EndIf} |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | ;================================ |
639 | 639 | |
640 | 640 | Function ShowInstfiles |
641 | - !insertmacro MUI_HEADER_TEXT "<?php echo_nsi( _("Profiles installation"))?>" " " |
|
641 | + !insertmacro MUI_HEADER_TEXT "<?php echo_nsi(_("Profiles installation"))?>" " " |
|
642 | 642 | FunctionEnd |
643 | 643 | ;================================ |
644 | 644 | ; Check if a wireless profile exist and put it on delete list |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | |
658 | 658 | Function FindProfile |
659 | 659 | Pop $R8 |
660 | - DetailPrint "<?php echo_nsi( _("Checking for profile \$R8"))?>" |
|
660 | + DetailPrint "<?php echo_nsi(_("Checking for profile \$R8"))?>" |
|
661 | 661 | !insertmacro debug_cat 2 "Checking for profile $R8" |
662 | 662 | !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8" |
663 | 663 | nsExec::Exec '"$Netsh" wlan show profiles "$R8"' |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | !insertmacro debug_cat 4 "netsh returned $0" |
666 | 666 | ${If} $0 == 0 |
667 | 667 | !insertmacro debug_cat 1 "found profile $R8" |
668 | - DetailPrint "<?php echo_nsi( _("found profile \$R8"))?>" |
|
668 | + DetailPrint "<?php echo_nsi(_("found profile \$R8"))?>" |
|
669 | 669 | Push 0 |
670 | 670 | ${Else} |
671 | 671 | !insertmacro debug_cat 1 "profile $R8 not found" |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | ${If} $Symantec_installed != 0 |
758 | 758 | !insertmacro debug_cat 3 "Symantec problem" |
759 | 759 | IfSilent +2 |
760 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")),CONFIG['CONSORTIUM']['name']) ?>" |
|
760 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")), CONFIG['CONSORTIUM']['name']) ?>" |
|
761 | 761 | Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"' |
762 | 762 | Quit |
763 | 763 | |
@@ -944,7 +944,7 @@ discard block |
||
944 | 944 | !ifdef TLS |
945 | 945 | Function PFXCertificateSelect |
946 | 946 | ;TRANSLATION |
947 | -!insertmacro MUI_HEADER_TEXT "<?php printf(sprint_nsi(_("%s installer for")),CONFIG['CONSORTIUM']['name'])?> " "<?php echo_nsi(_("Install personal certificate"))?>" |
|
947 | +!insertmacro MUI_HEADER_TEXT "<?php printf(sprint_nsi(_("%s installer for")), CONFIG['CONSORTIUM']['name'])?> " "<?php echo_nsi(_("Install personal certificate"))?>" |
|
948 | 948 | ${If} $PFX_install == 0 |
949 | 949 | Return |
950 | 950 | ${EndIf} |
@@ -1112,7 +1112,7 @@ discard block |
||
1112 | 1112 | PageEx components |
1113 | 1113 | PageCallbacks showComponents "" "" |
1114 | 1114 | ;TRANSLATION |
1115 | -ComponentText "<?php printf(sprint_nsi(_("In order to install/update %s access all selected steps need to be performed. Click Continue to proceed")),CONFIG['CONSORTIUM']['name'])?>" "" \ |
|
1115 | +ComponentText "<?php printf(sprint_nsi(_("In order to install/update %s access all selected steps need to be performed. Click Continue to proceed")), CONFIG['CONSORTIUM']['name'])?>" "" \ |
|
1116 | 1116 | "<?php echo_nsi(_("If an option is not selected by default, then it is either not available or optional."))?>" |
1117 | 1117 | PageExEnd |
1118 | 1118 | ;============================= |
@@ -1132,7 +1132,7 @@ discard block |
||
1132 | 1132 | Section "-start" |
1133 | 1133 | SectionIn RO |
1134 | 1134 | |
1135 | -!insertmacro MUI_HEADER_TEXT "<?php echo_nsi( _("Installation"))?>" "<?php echo_nsi( _("Checking for existing wireless profiles"))?>" |
|
1135 | +!insertmacro MUI_HEADER_TEXT "<?php echo_nsi(_("Installation"))?>" "<?php echo_nsi(_("Checking for existing wireless profiles"))?>" |
|
1136 | 1136 | !ifndef PWD |
1137 | 1137 | !include "certs.nsh" |
1138 | 1138 | !endif |
@@ -2,63 +2,63 @@ discard block |
||
2 | 2 | $FAQ = []; |
3 | 3 | |
4 | 4 | array_push($FAQ, |
5 | - [ |
|
5 | + [ |
|
6 | 6 | 'title'=>sprintf(_("My institution is not listed. Can't I just use any of the other ones?")), |
7 | 7 | 'text'=>sprintf(_("No! The installers contain security settings which are specific to the institution. If you are not from that institution, your computer will detect that you are about to send your username and credential to an unauthorised server and will abort the login. Using a different institution installer is <i>guaranteed to not work</i>!")) |
8 | - ]); |
|
8 | + ]); |
|
9 | 9 | |
10 | 10 | array_push($FAQ, |
11 | - [ |
|
11 | + [ |
|
12 | 12 | 'title'=>sprintf(_("What can I do to get my institution listed?")), |
13 | 13 | 'text'=>sprintf(_("Contact %s administrators at your home institution and complain. It will take at most one hour of their time to get things done."),CONFIG['CONSORTIUM']['name']) |
14 | 14 | ]); |
15 | 15 | |
16 | 16 | array_push($FAQ, |
17 | - [ |
|
17 | + [ |
|
18 | 18 | 'title'=>sprintf(_("My device is not listed! Does that mean I can't do %s?"),CONFIG['CONSORTIUM']['name']), |
19 | 19 | 'text'=>sprintf(_("No. The CAT tool can only support Operating Systems which can be automatically configured in some way. Many other devices can still be used with %s, but must be configured manually. Please contact your %s Identity Provider to get help in setting up such a device."),CONFIG['CONSORTIUM']['name'],CONFIG['CONSORTIUM']['name']) |
20 | - ]); |
|
20 | + ]); |
|
21 | 21 | |
22 | 22 | array_push($FAQ, |
23 | - [ |
|
23 | + [ |
|
24 | 24 | 'title'=>sprintf(_("I can connect to %s simply by providing username and password, what is the point of using an installer?"),CONFIG['CONSORTIUM']['name']), |
25 | 25 | 'text'=>sprintf(_("When you are connecting from an unconfigured device your security is at risk. The very point of preconfiguration is to set up security, when this is done, your device will first confirm that it talks to the correct authentication server and will never send your password to an untrusted one.")) |
26 | 26 | ]); |
27 | 27 | |
28 | 28 | if (CONFIG['CONSORTIUM']['name'] == "eduroam") { |
29 | - array_push($FAQ, |
|
30 | - [ |
|
31 | - 'title'=>sprintf(_("What is this eduroam thing anyway?")), |
|
32 | - 'text'=>sprintf(_("eduroam is a global WiFi roaming consortium which gives members of education and research access to the internet <i>for free</i> on all eduroam hotspots on the planet. There are several million eduroam users already, enjoying free internet access on more than 6.000 hotspots! Visit <a href='http://www.eduroam.org'>the eduroam homepage</a> for more details.")) |
|
33 | - ]); |
|
29 | + array_push($FAQ, |
|
30 | + [ |
|
31 | + 'title'=>sprintf(_("What is this eduroam thing anyway?")), |
|
32 | + 'text'=>sprintf(_("eduroam is a global WiFi roaming consortium which gives members of education and research access to the internet <i>for free</i> on all eduroam hotspots on the planet. There are several million eduroam users already, enjoying free internet access on more than 6.000 hotspots! Visit <a href='http://www.eduroam.org'>the eduroam homepage</a> for more details.")) |
|
33 | + ]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | array_push($FAQ, |
37 | - [ |
|
37 | + [ |
|
38 | 38 | 'title'=>sprintf(_("Is it safe to use %s installers?"),CONFIG['APPEARANCE']['productname']), |
39 | 39 | 'text'=>sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."),CONFIG['APPEARANCE']['productname']).' '.( isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."),CONFIG['APPEARANCE']['productname'],CONFIG['CONSORTIUM']['signer_name']):""), |
40 | 40 | |
41 | 41 | ]); |
42 | 42 | |
43 | 43 | array_push($FAQ, |
44 | - [ |
|
44 | + [ |
|
45 | 45 | 'title'=>_("Windows 'SmartScreen' or 'Internet Explorer' tell me that the file is not commonly downloaded and possibly harmful. Should I be concerned?"), |
46 | 46 | 'text'=>_("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.")." ".(isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."),CONFIG['CONSORTIUM']['signer_name'])." ":"").sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."),"<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>") |
47 | 47 | |
48 | 48 | ]); |
49 | 49 | |
50 | 50 | array_push($FAQ, |
51 | - [ |
|
51 | + [ |
|
52 | 52 | 'title'=>sprintf(_("I can see %s network and my device is configured but it does not connect, what can be the cause?"),CONFIG['CONSORTIUM']['name']), |
53 | - 'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your home institution and report the problem, the administrators should be able to trace your connections."),CONFIG['CONSORTIUM'][ |
|
53 | + 'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your home institution and report the problem, the administrators should be able to trace your connections."),CONFIG['CONSORTIUM'][ |
|
54 | 54 | 'name']) |
55 | 55 | ]); |
56 | 56 | |
57 | 57 | array_push($FAQ, |
58 | - [ |
|
58 | + [ |
|
59 | 59 | 'title'=>sprintf(_("I have a question about this web site. Whom should I contact?")), |
60 | 60 | 'text'=>sprintf(_("You should send a mail to %s."),CONFIG['APPEARANCE']['support-contact']['display']) |
61 | - ]); |
|
61 | + ]); |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * This is a template for further FAQ entries. Simply copy&paste and add more |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | <?php |
82 | 82 | $i =0; |
83 | 83 | foreach ($FAQ as $faq) { |
84 | - print '<a href="#toc'.$i.'">'.$faq['title']."</a><br>\n"; |
|
85 | - $i++; |
|
84 | + print '<a href="#toc'.$i.'">'.$faq['title']."</a><br>\n"; |
|
85 | + $i++; |
|
86 | 86 | } |
87 | 87 | ?> |
88 | 88 | </div> |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | <?php |
91 | 91 | $i =0; |
92 | 92 | foreach ($FAQ as $faq) { |
93 | - print "<dt><a name=toc$i>".$faq['title']."</a></dt>\n<dd>".$faq['text']."</dd>\n"; |
|
94 | - $i++; |
|
93 | + print "<dt><a name=toc$i>".$faq['title']."</a></dt>\n<dd>".$faq['text']."</dd>\n"; |
|
94 | + $i++; |
|
95 | 95 | } |
96 | 96 | ?> |
97 | 97 | </dl> |
@@ -10,18 +10,18 @@ discard block |
||
10 | 10 | array_push($FAQ, |
11 | 11 | [ |
12 | 12 | 'title'=>sprintf(_("What can I do to get my institution listed?")), |
13 | - 'text'=>sprintf(_("Contact %s administrators at your home institution and complain. It will take at most one hour of their time to get things done."),CONFIG['CONSORTIUM']['name']) |
|
13 | + 'text'=>sprintf(_("Contact %s administrators at your home institution and complain. It will take at most one hour of their time to get things done."), CONFIG['CONSORTIUM']['name']) |
|
14 | 14 | ]); |
15 | 15 | |
16 | 16 | array_push($FAQ, |
17 | 17 | [ |
18 | - 'title'=>sprintf(_("My device is not listed! Does that mean I can't do %s?"),CONFIG['CONSORTIUM']['name']), |
|
19 | - 'text'=>sprintf(_("No. The CAT tool can only support Operating Systems which can be automatically configured in some way. Many other devices can still be used with %s, but must be configured manually. Please contact your %s Identity Provider to get help in setting up such a device."),CONFIG['CONSORTIUM']['name'],CONFIG['CONSORTIUM']['name']) |
|
18 | + 'title'=>sprintf(_("My device is not listed! Does that mean I can't do %s?"), CONFIG['CONSORTIUM']['name']), |
|
19 | + 'text'=>sprintf(_("No. The CAT tool can only support Operating Systems which can be automatically configured in some way. Many other devices can still be used with %s, but must be configured manually. Please contact your %s Identity Provider to get help in setting up such a device."), CONFIG['CONSORTIUM']['name'], CONFIG['CONSORTIUM']['name']) |
|
20 | 20 | ]); |
21 | 21 | |
22 | 22 | array_push($FAQ, |
23 | 23 | [ |
24 | - 'title'=>sprintf(_("I can connect to %s simply by providing username and password, what is the point of using an installer?"),CONFIG['CONSORTIUM']['name']), |
|
24 | + 'title'=>sprintf(_("I can connect to %s simply by providing username and password, what is the point of using an installer?"), CONFIG['CONSORTIUM']['name']), |
|
25 | 25 | 'text'=>sprintf(_("When you are connecting from an unconfigured device your security is at risk. The very point of preconfiguration is to set up security, when this is done, your device will first confirm that it talks to the correct authentication server and will never send your password to an untrusted one.")) |
26 | 26 | ]); |
27 | 27 | |
@@ -35,29 +35,29 @@ discard block |
||
35 | 35 | |
36 | 36 | array_push($FAQ, |
37 | 37 | [ |
38 | - 'title'=>sprintf(_("Is it safe to use %s installers?"),CONFIG['APPEARANCE']['productname']), |
|
39 | - 'text'=>sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."),CONFIG['APPEARANCE']['productname']).' '.( isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."),CONFIG['APPEARANCE']['productname'],CONFIG['CONSORTIUM']['signer_name']):""), |
|
38 | + 'title'=>sprintf(_("Is it safe to use %s installers?"), CONFIG['APPEARANCE']['productname']), |
|
39 | + 'text'=>sprintf(_("%s installers configure security settings on your device, therefore you should be sure that you are using genuine ones."), CONFIG['APPEARANCE']['productname']) . ' ' . (isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("This is why %s installers are digitally signed by %s. Watch out for a system message confirming this."), CONFIG['APPEARANCE']['productname'], CONFIG['CONSORTIUM']['signer_name']) : ""), |
|
40 | 40 | |
41 | 41 | ]); |
42 | 42 | |
43 | 43 | array_push($FAQ, |
44 | 44 | [ |
45 | 45 | 'title'=>_("Windows 'SmartScreen' or 'Internet Explorer' tell me that the file is not commonly downloaded and possibly harmful. Should I be concerned?"), |
46 | - 'text'=>_("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.")." ".(isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."),CONFIG['CONSORTIUM']['signer_name'])." ":"").sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."),"<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>") |
|
46 | + 'text'=>_("Contrary to what the name suggests, 'SmartScreen' isn't actually very smart. The warning merely means that the file has not yet been downloaded by enough users to make Microsoft consider it popular (which would strangely enough make it be considered 'safe'). This message alone is not a security problem.") . " " . (isset(CONFIG['CONSORTIUM']['signer_name']) && CONFIG['CONSORTIUM']['signer_name'] != "" ? sprintf(_("So long as the file is carrying a valid signature from %s, the download is safe."), CONFIG['CONSORTIUM']['signer_name']) . " " : "") . sprintf(_("Please see also Microsoft's FAQ regarding SmartScreen at %s."), "<a href='http://windows.microsoft.com/en-US/windows7/SmartScreen-Filter-frequently-asked-questions-IE9?SignedIn=1'>Microsoft FAQ</a>") |
|
47 | 47 | |
48 | 48 | ]); |
49 | 49 | |
50 | 50 | array_push($FAQ, |
51 | 51 | [ |
52 | - 'title'=>sprintf(_("I can see %s network and my device is configured but it does not connect, what can be the cause?"),CONFIG['CONSORTIUM']['name']), |
|
53 | - 'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your home institution and report the problem, the administrators should be able to trace your connections."),CONFIG['CONSORTIUM'][ |
|
52 | + 'title'=>sprintf(_("I can see %s network and my device is configured but it does not connect, what can be the cause?"), CONFIG['CONSORTIUM']['name']), |
|
53 | + 'text'=>sprintf(_("There can be a number of different reasons. The network you see may not be a genuine %s one and your device silently drops the connection attempt; there may be something wrong with the configuration of the network; your account may have expired; there may be a connection problem with your home authentication server; you may have broken the regulations of the network you are using and have been refused access as a consequence. You should contact your home institution and report the problem, the administrators should be able to trace your connections."), CONFIG['CONSORTIUM'][ |
|
54 | 54 | 'name']) |
55 | 55 | ]); |
56 | 56 | |
57 | 57 | array_push($FAQ, |
58 | 58 | [ |
59 | 59 | 'title'=>sprintf(_("I have a question about this web site. Whom should I contact?")), |
60 | - 'text'=>sprintf(_("You should send a mail to %s."),CONFIG['APPEARANCE']['support-contact']['display']) |
|
60 | + 'text'=>sprintf(_("You should send a mail to %s."), CONFIG['APPEARANCE']['support-contact']['display']) |
|
61 | 61 | ]); |
62 | 62 | |
63 | 63 | /** |
@@ -79,18 +79,18 @@ discard block |
||
79 | 79 | </h1> |
80 | 80 | <div class="faq_toc" style="background:white; padding:5px;"> |
81 | 81 | <?php |
82 | - $i =0; |
|
82 | + $i = 0; |
|
83 | 83 | foreach ($FAQ as $faq) { |
84 | - print '<a href="#toc'.$i.'">'.$faq['title']."</a><br>\n"; |
|
84 | + print '<a href="#toc' . $i . '">' . $faq['title'] . "</a><br>\n"; |
|
85 | 85 | $i++; |
86 | 86 | } |
87 | 87 | ?> |
88 | 88 | </div> |
89 | 89 | <dl> |
90 | 90 | <?php |
91 | - $i =0; |
|
91 | + $i = 0; |
|
92 | 92 | foreach ($FAQ as $faq) { |
93 | - print "<dt><a name=toc$i>".$faq['title']."</a></dt>\n<dd>".$faq['text']."</dd>\n"; |
|
93 | + print "<dt><a name=toc$i>" . $faq['title'] . "</a></dt>\n<dd>" . $faq['text'] . "</dd>\n"; |
|
94 | 94 | $i++; |
95 | 95 | } |
96 | 96 | ?> |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | <body> |
27 | 27 | <div id="heading"> |
28 | 28 | <?php |
29 | - print '<img src="'. dirname($_SERVER['SCRIPT_NAME']) .'/resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
|
30 | - print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div>'; |
|
29 | + print '<img src="' . dirname($_SERVER['SCRIPT_NAME']) . '/resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
|
30 | + print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . '</div>'; |
|
31 | 31 | print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']) . '</h1> |
32 | 32 | <h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>'; |
33 | 33 | echo '<table id="lang_select"><tr><td>'; |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | ?> |
42 | 42 | </div> <!-- id="heading" --> |
43 | 43 | <div id="main_body" style='padding:20px;'> |
44 | - <h1><?php echo _("Maybe this is the CAT you are looking for...");?></h1> |
|
45 | - <p><?php echo _("but we don't want to show it to you. You need to be authenticated and authorised to see this content. Since you are not, you got this error page usually known as");?></p> |
|
44 | + <h1><?php echo _("Maybe this is the CAT you are looking for..."); ?></h1> |
|
45 | + <p><?php echo _("but we don't want to show it to you. You need to be authenticated and authorised to see this content. Since you are not, you got this error page usually known as"); ?></p> |
|
46 | 46 | <h2>401/403</h2> |
47 | 47 | <p><?php echo sprintf(_("Your mistake? Our error? Who knows! Maybe you should go back to the <a href='%s'>Start Page</a>."), dirname($_SERVER['SCRIPT_NAME']) . '?lang=' . CAT::get_lang())?></p> |
48 | 48 | </div> |