@@ -156,8 +156,8 @@ |
||
156 | 156 | // replace namespace separators with directory separators |
157 | 157 | // in the relative class name, append with .php |
158 | 158 | $file = $base_dir |
159 | - . str_replace('\\', '/', $relative_class) |
|
160 | - . '.php'; |
|
159 | + . str_replace('\\', '/', $relative_class) |
|
160 | + . '.php'; |
|
161 | 161 | |
162 | 162 | // if the mapped file exists, require it |
163 | 163 | if ($this->requireFile($file)) { |
@@ -97,10 +97,10 @@ |
||
97 | 97 | public function addNamespace($prefix, $base_dir, $prepend = false) |
98 | 98 | { |
99 | 99 | // normalize namespace prefix |
100 | - $prefix = trim($prefix, '\\') . '\\'; |
|
100 | + $prefix = trim($prefix, '\\').'\\'; |
|
101 | 101 | |
102 | 102 | // normalize the base directory with a trailing separator |
103 | - $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/'; |
|
103 | + $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR).'/'; |
|
104 | 104 | |
105 | 105 | // initialize the namespace prefix array |
106 | 106 | if (isset($this->prefixes[$prefix]) === false) { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | ?> |
11 | 11 | <h1>Example Skin (main user frontpage)</h1> |
12 | -<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","consortium_logo.png");?>"/> |
|
12 | +<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "consortium_logo.png"); ?>"/> |
|
13 | 13 | <p>This skin is much more sober and less bloated than the default one. As it happens, it also doesn't do anything.</p> |
14 | 14 | <p>But at least it goes to show that it's possible to include custom images/CSS/external software using findResourceUrl(..., $filename): |
15 | -<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES","custom.png");?>"/> |
|
15 | +<img src="<?php echo $Gui->skinObject->findresourceUrl("IMAGES", "custom.png"); ?>"/> |
@@ -246,11 +246,11 @@ discard block |
||
246 | 246 | } |
247 | 247 | |
248 | 248 | /** |
249 | - * This function parses a X.509 cert and returns all certificatePolicies OIDs |
|
250 | - * |
|
251 | - * @param array $cert (returned from openssl_x509_parse) |
|
252 | - * @return array of OIDs |
|
253 | - */ |
|
249 | + * This function parses a X.509 cert and returns all certificatePolicies OIDs |
|
250 | + * |
|
251 | + * @param array $cert (returned from openssl_x509_parse) |
|
252 | + * @return array of OIDs |
|
253 | + */ |
|
254 | 254 | private function propertyCheckPolicy($cert) { |
255 | 255 | $oids = []; |
256 | 256 | if ($cert['extensions']['certificatePolicies']) { |
@@ -263,11 +263,11 @@ discard block |
||
263 | 263 | return $oids; |
264 | 264 | } |
265 | 265 | /** |
266 | - * This function parses a X.509 cert and returns the value of $field |
|
267 | - * |
|
268 | - * @param array $cert (returned from openssl_x509_parse) |
|
269 | - * @return string value of the issuer field or '' |
|
270 | - */ |
|
266 | + * This function parses a X.509 cert and returns the value of $field |
|
267 | + * |
|
268 | + * @param array $cert (returned from openssl_x509_parse) |
|
269 | + * @return string value of the issuer field or '' |
|
270 | + */ |
|
271 | 271 | private function getCertificateIssuer($cert) { |
272 | 272 | $issuer = ''; |
273 | 273 | foreach ($cert['issuer'] as $key => $val) { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | use \Exception; |
25 | 25 | |
26 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
26 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Test suite to verify that a given NAI realm has NAPTR records according to |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $this->TLS_clients_checks_result[$host]['ca'][$type]['certificate'][$k]['status'] = $cert['status']; |
145 | 145 | $this->TLS_clients_checks_result[$host]['ca'][$type]['certificate'][$k]['message'] = $this->TLS_certkeys[$cert['status']]; |
146 | 146 | $this->TLS_clients_checks_result[$host]['ca'][$type]['certificate'][$k]['expected'] = $cert['expected']; |
147 | - $add = ' -cert ' . ROOT . '/config/cli-certs/' . $cert['public'] . ' -key ' . ROOT . '/config/cli-certs/' . $cert['private']; |
|
147 | + $add = ' -cert '.ROOT.'/config/cli-certs/'.$cert['public'].' -key '.ROOT.'/config/cli-certs/'.$cert['private']; |
|
148 | 148 | if (!isset($this->TLS_clients_checks_result[$host]['ca'][$type]['certificate'][$k])) { |
149 | 149 | $this->TLS_clients_checks_result[$host]['ca'][$type]['certificate'][$k] = []; |
150 | 150 | } |
@@ -188,11 +188,11 @@ discard block |
||
188 | 188 | // but code analysers want this more explicit, so here is this extra |
189 | 189 | // call to escapeshellarg() |
190 | 190 | $escapedHost = escapeshellarg($host); |
191 | - $this->loggerInstance->debug(4, CONFIG['PATHS']['openssl'] . " s_client -connect " . $escapedHost . " -tls1 -CApath " . ROOT . "/config/ca-certs/ $arg 2>&1\n"); |
|
191 | + $this->loggerInstance->debug(4, CONFIG['PATHS']['openssl']." s_client -connect ".$escapedHost." -tls1 -CApath ".ROOT."/config/ca-certs/ $arg 2>&1\n"); |
|
192 | 192 | $time_start = microtime(true); |
193 | 193 | $opensslbabble = []; |
194 | 194 | $result = 999; // likely to become zero by openssl; don't want to initialise to zero, could cover up exec failures |
195 | - exec(CONFIG['PATHS']['openssl'] . " s_client -connect " . $escapedHost . " -tls1 -CApath " . ROOT . "/config/ca-certs/ $arg 2>&1", $opensslbabble, $result); |
|
195 | + exec(CONFIG['PATHS']['openssl']." s_client -connect ".$escapedHost." -tls1 -CApath ".ROOT."/config/ca-certs/ $arg 2>&1", $opensslbabble, $result); |
|
196 | 196 | $time_stop = microtime(true); |
197 | 197 | $testresults['time_millisec'] = floor(($time_stop - $time_start) * 1000); |
198 | 198 | $testresults['returncode'] = $result; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | they are from the same user group. You are not allowed to share them to an unlimited |
53 | 53 | audience (e.g. on a publicly accessible web server).</li> |
54 | 54 | <li>If You are an eduroam Identity Provider administrator, you are allowed to download and pass on the Installers to |
55 | -your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
55 | +your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
56 | 56 | <li>If You are a third-party not affiliated with eduroam, you are only allowed to download and pass on |
57 | 57 | the Metadata and/or the Installers after having received written permission by the eduroam Operations team.</li> |
58 | 58 | </ul> |
@@ -88,7 +88,7 @@ |
||
88 | 88 | 'server_suffix' => '.hosted.eduroam.org', |
89 | 89 | 'gracetime' => 90, |
90 | 90 | 'CA' => ["type" => "embedded"], # OCSP URL needs to be configured in openssl.cnf |
91 | - # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"], |
|
91 | + # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"], |
|
92 | 92 | |
93 | 93 | ], |
94 | 94 | /** |
@@ -53,14 +53,14 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | switch ($_GET['token']) { |
56 | - case "SELF-REGISTER": |
|
57 | - $token = "SELF-REGISTER"; |
|
58 | - $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
59 | - $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
|
60 | - break; |
|
61 | - default: |
|
62 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
63 | - $checkval = $usermgmt->checkTokenValidity($token); |
|
56 | + case "SELF-REGISTER": |
|
57 | + $token = "SELF-REGISTER"; |
|
58 | + $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
59 | + $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
|
60 | + break; |
|
61 | + default: |
|
62 | + $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
63 | + $checkval = $usermgmt->checkTokenValidity($token); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ($checkval < 0) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ?> |
31 | 31 | <?php |
32 | 32 | |
33 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
33 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
34 | 34 | |
35 | 35 | $auth = new \web\lib\admin\Authentication(); |
36 | 36 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -70,22 +70,22 @@ discard block |
||
70 | 70 | $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
71 | 71 | break; |
72 | 72 | default: |
73 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
73 | + $token = $validator->token(filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING)); |
|
74 | 74 | $checkval = $usermgmt->checkTokenValidity($token); |
75 | 75 | } |
76 | 76 | |
77 | 77 | if ($checkval < 0) { |
78 | 78 | echo $deco->pageheader(_("Error creating new IdP binding!"), "ADMIN-IDP"); |
79 | - echo "<h1>" . _("Error creating new IdP binding!") . "</h1>"; |
|
79 | + echo "<h1>"._("Error creating new IdP binding!")."</h1>"; |
|
80 | 80 | switch ($checkval) { |
81 | 81 | case \core\UserManagement::TOKENSTATUS_FAIL_ALREADYCONSUMED: |
82 | - echo "<p>" . sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureInst) . "</p>"; |
|
82 | + echo "<p>".sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureInst)."</p>"; |
|
83 | 83 | break; |
84 | 84 | case \core\UserManagement::TOKENSTATUS_FAIL_EXPIRED: |
85 | - echo "<p>" . sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed) . "</p>"; |
|
85 | + echo "<p>".sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed)."</p>"; |
|
86 | 86 | break; |
87 | 87 | default: |
88 | - echo "<p>" . _("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.") . "</p>"; |
|
88 | + echo "<p>"._("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.")."</p>"; |
|
89 | 89 | } |
90 | 90 | echo $deco->footer(); |
91 | 91 | throw new Exception("Terminating because something is wrong with the token we received."); |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | case "SELF-REGISTER": |
101 | 101 | $fed = new \core\Federation($federation); |
102 | 102 | $newidp = new \core\IdP($fed->newIdP($user, "FED", "SELFSERVICE")); |
103 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - selfservice registration"); |
|
103 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - selfservice registration"); |
|
104 | 104 | break; |
105 | 105 | default: |
106 | 106 | $newidp = $usermgmt->createIdPFromToken($token, $user); |
107 | 107 | $usermgmt->invalidateToken($token); |
108 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - Token used and invalidated"); |
|
108 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - Token used and invalidated"); |
|
109 | 109 | break; |
110 | 110 | } |
111 | 111 |
@@ -1019,12 +1019,12 @@ |
||
1019 | 1019 | $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:")); |
1020 | 1020 | $certUsernameLength = strlen($certUsernameLabel); |
1021 | 1021 | $labelLength = max($certPasswordLength,$certUsernameLength); |
1022 | - ?> |
|
1022 | + ?> |
|
1023 | 1023 | ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>" |
1024 | 1024 | !else |
1025 | 1025 | <?php $certPasswordLabel = WindowsCommon::sprint_nsi(_("import password:")); |
1026 | 1026 | $certPasswordLength = strlen($certPasswordLabel); |
1027 | - ?> |
|
1027 | + ?> |
|
1028 | 1028 | !insertmacro debug_cat 4 "Unpacking SB_cert.p12" |
1029 | 1029 | File "SB_cert.p12" |
1030 | 1030 | nsArray::Set Delete_files "SB_cert.p12" |
@@ -120,10 +120,10 @@ discard block |
||
120 | 120 | !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp" |
121 | 121 | !define MUI_COMPONENTSPAGE_SMALLDESC |
122 | 122 | |
123 | -!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>" |
|
124 | -!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi( _("Installation complete"))?>" |
|
125 | -!define FAREWELL_TEXT "<?php WindowsCommon::echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Your system is ready."))?>" |
|
126 | -!define FAREWELL_FAIL "<?php WindowsCommon::echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Please contact \${SUPPORT}."))?>" |
|
123 | +!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>" |
|
124 | +!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi(_("Installation complete"))?>" |
|
125 | +!define FAREWELL_TEXT "<?php WindowsCommon::echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Your system is ready."))?>" |
|
126 | +!define FAREWELL_FAIL "<?php WindowsCommon::echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Please contact \${SUPPORT}."))?>" |
|
127 | 127 | ;-------------------------------- |
128 | 128 | ;Languages |
129 | 129 | !insertmacro MUI_LANGUAGE "${LANG}" |
@@ -131,14 +131,14 @@ discard block |
||
131 | 131 | ;-------------------------------- |
132 | 132 | ; License file |
133 | 133 | !ifdef LICENSE_FILE |
134 | -LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi( _("Accept"))?>" |
|
134 | +LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi(_("Accept"))?>" |
|
135 | 135 | LicenseText "<?php WindowsCommon::echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>" |
136 | 136 | LicenseData ${LICENSE_FILE} |
137 | 137 | !endif |
138 | 138 | |
139 | 139 | ;----------------------------------- |
140 | 140 | |
141 | -MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi( _("Finish"))?>" |
|
141 | +MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi(_("Finish"))?>" |
|
142 | 142 | ;---------------------------------- |
143 | 143 | ; FUNCTIONS |
144 | 144 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | !macro install_ca_cert ca_file ca_fingerprint level |
173 | 173 | !insertmacro debug_cat 2 "locating certificate SHA=${ca_fingerprint} Level=${level}" |
174 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("searching for certificate"))?> ${ca_file}" |
|
174 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("searching for certificate"))?> ${ca_file}" |
|
175 | 175 | File "${ca_file}" |
176 | 176 | nsArray::Set Delete_files "${ca_file}" |
177 | 177 | !insertmacro debug_cat 2 "Testing machine store root" |
@@ -233,13 +233,13 @@ discard block |
||
233 | 233 | ${EndIf} |
234 | 234 | !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}" |
235 | 235 | !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}" |
236 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("installing certificate"))?> ${ca_file}" |
|
236 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("installing certificate"))?> ${ca_file}" |
|
237 | 237 | nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}' |
238 | 238 | Pop $0 |
239 | 239 | !insertmacro debug_cat 3 "certutil returned $0" |
240 | 240 | ${If} $0 != 0 |
241 | 241 | IfSilent +2 |
242 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("could not install certificate"))?> ${ca_file}" |
|
242 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("could not install certificate"))?> ${ca_file}" |
|
243 | 243 | !insertmacro debug_cat 1 "could not install certificate ${ca_file}" |
244 | 244 | ${EndIf} |
245 | 245 | no_install_${ca_file}: |
@@ -428,26 +428,26 @@ discard block |
||
428 | 428 | pop $R0 |
429 | 429 | ${If} $tkip_count > 0 |
430 | 430 | ${If} $aes_count > 1 |
431 | - StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
431 | + StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
432 | 432 | ${Else} |
433 | - StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
433 | + StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
434 | 434 | ${EndIf} |
435 | 435 | ${Else} |
436 | 436 | StrCpy $R1 "" |
437 | 437 | ${EndIf} |
438 | 438 | ${If} $profile_count > 0 |
439 | - StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
440 | -<?php WindowsCommon::echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
439 | + StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
440 | +<?php WindowsCommon::echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
441 | 441 | $R0.\ |
442 | 442 | $R1$\r$\n$\n\ |
443 | -<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
443 | +<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
444 | 444 | EMAIL: ${SUPPORT}$\r$\n\ |
445 | 445 | WWW: ${URL}" |
446 | 446 | ${Else} |
447 | -StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
448 | -<?php WindowsCommon::echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\ |
|
447 | +StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
448 | +<?php WindowsCommon::echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\ |
|
449 | 449 | $R1$\r$\n$\n\ |
450 | -<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
450 | +<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
451 | 451 | EMAIL: ${SUPPORT}$\r$\n\ |
452 | 452 | WWW: ${URL}" |
453 | 453 | ${EndIf} |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0 |
474 | 474 | ;TRANSLATION |
475 | 475 | nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\ |
476 | -$\r$\n$\r$\n<?php WindowsCommon::echo_nsi( _("Installer created with software from the GEANT project."))?>" |
|
476 | +$\r$\n$\r$\n<?php WindowsCommon::echo_nsi(_("Installer created with software from the GEANT project."))?>" |
|
477 | 477 | Pop $TEXT |
478 | 478 | |
479 | 479 | SetCtlColors $DIALOG "" 0xffffff |
@@ -585,18 +585,18 @@ discard block |
||
585 | 585 | ${If} $wireless_result == 1 |
586 | 586 | !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service" |
587 | 587 | IfSilent +2 |
588 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
588 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
589 | 589 | Call Cleanup |
590 | 590 | ${EndIf} |
591 | 591 | ${If} $wireless_result == 2 |
592 | 592 | IfSilent +2 |
593 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>" |
|
593 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>" |
|
594 | 594 | Call Cleanup |
595 | 595 | ${EndIf} |
596 | 596 | ${Else} |
597 | 597 | ${If} $wireless_result > 0 |
598 | 598 | IfSilent +3 |
599 | - MessageBox MB_YESNO "<?php WindowsCommon::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 |
|
599 | + MessageBox MB_YESNO "<?php WindowsCommon::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 |
|
600 | 600 | Call Cleanup |
601 | 601 | wired_yes: |
602 | 602 | Push 1 |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | ${If} $wired == 1 |
613 | 613 | ${If} $force_wired == 0 |
614 | 614 | IfSilent wired |
615 | - MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
615 | + MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
616 | 616 | Push 0 |
617 | 617 | Pop $wired |
618 | 618 | ${EndIf} |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | ;================================ |
648 | 648 | |
649 | 649 | Function ShowInstfiles |
650 | - !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Profiles installation"))?>" " " |
|
650 | + !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Profiles installation"))?>" " " |
|
651 | 651 | FunctionEnd |
652 | 652 | ;================================ |
653 | 653 | ; Check if a wireless profile exist and put it on delete list |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | |
667 | 667 | Function FindProfile |
668 | 668 | Pop $R8 |
669 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("Checking for profile \$R8"))?>" |
|
669 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("Checking for profile \$R8"))?>" |
|
670 | 670 | !insertmacro debug_cat 2 "Checking for profile $R8" |
671 | 671 | !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8" |
672 | 672 | nsExec::Exec '"$Netsh" wlan show profiles "$R8"' |
@@ -674,7 +674,7 @@ discard block |
||
674 | 674 | !insertmacro debug_cat 4 "netsh returned $0" |
675 | 675 | ${If} $0 == 0 |
676 | 676 | !insertmacro debug_cat 1 "found profile $R8" |
677 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("found profile \$R8"))?>" |
|
677 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("found profile \$R8"))?>" |
|
678 | 678 | Push 0 |
679 | 679 | ${Else} |
680 | 680 | !insertmacro debug_cat 1 "profile $R8 not found" |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | ${If} $Symantec_installed != 0 |
770 | 770 | !insertmacro debug_cat 3 "Symantec problem" |
771 | 771 | IfSilent +2 |
772 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::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_CONFASSISTANT['CONSORTIUM']['display_name']) ?>" |
|
772 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::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_CONFASSISTANT['CONSORTIUM']['display_name']) ?>" |
|
773 | 773 | Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"' |
774 | 774 | Quit |
775 | 775 | |
@@ -1002,7 +1002,7 @@ discard block |
||
1002 | 1002 | Function PFXCertificateSelect |
1003 | 1003 | !ifndef SILVERBULLET |
1004 | 1004 | ;TRANSLATION |
1005 | -!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>" |
|
1005 | +!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>" |
|
1006 | 1006 | ;TRANSLATION |
1007 | 1007 | IfSilent +2 |
1008 | 1008 | MessageBox MB_OK "<?php WindowsCommon::echo_nsi(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echo_nsi(_("Click OK to continue"))?> " |
@@ -1018,7 +1018,7 @@ discard block |
||
1018 | 1018 | $certPasswordLength = strlen($certPasswordLabel); |
1019 | 1019 | $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:")); |
1020 | 1020 | $certUsernameLength = strlen($certUsernameLabel); |
1021 | - $labelLength = max($certPasswordLength,$certUsernameLength); |
|
1021 | + $labelLength = max($certPasswordLength, $certUsernameLength); |
|
1022 | 1022 | ?> |
1023 | 1023 | ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>" |
1024 | 1024 | !else |
@@ -1035,11 +1035,11 @@ discard block |
||
1035 | 1035 | !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP"; |
1036 | 1036 | ${If} $VistaNoSP == 0 |
1037 | 1037 | !ifdef PFX_USERNAME |
1038 | - !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u" |
|
1039 | - !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u" |
|
1038 | + !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u" |
|
1039 | + !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u" |
|
1040 | 1040 | !else |
1041 | - !define LABEL_LENGTH "<?php echo($certPasswordLength*3.5)?>u" |
|
1042 | - !define TEXT_START "<?php echo($certPasswordLength*3.5 +5)?>u" |
|
1041 | + !define LABEL_LENGTH "<?php echo($certPasswordLength * 3.5)?>u" |
|
1042 | + !define TEXT_START "<?php echo($certPasswordLength * 3.5 + 5)?>u" |
|
1043 | 1043 | !endif |
1044 | 1044 | ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>" |
1045 | 1045 | ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u "" |
@@ -1226,7 +1226,7 @@ discard block |
||
1226 | 1226 | Section "-start" |
1227 | 1227 | SectionIn RO |
1228 | 1228 | |
1229 | -!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Installation"))?>" "<?php WindowsCommon::echo_nsi( _("Checking for existing wireless profiles"))?>" |
|
1229 | +!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Installation"))?>" "<?php WindowsCommon::echo_nsi(_("Checking for existing wireless profiles"))?>" |
|
1230 | 1230 | !ifndef PWD |
1231 | 1231 | !include "certs.nsh" |
1232 | 1232 | !endif |
@@ -185,7 +185,6 @@ |
||
185 | 185 | * - RETVAL_NOTCONFIGURED; needs CONFIG_DIAGNOSTICS['RADIUSTESTS']['TLS-discoverytag'] |
186 | 186 | * - RETVAL_INVALID (at least one format error) |
187 | 187 | * - RETVAL_OK (all fine) |
188 | - |
|
189 | 188 | * @return int one of two RETVALs above |
190 | 189 | */ |
191 | 190 | public function relevantNAPTRcompliance() { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | namespace core\diag; |
23 | 23 | |
24 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
24 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Test suite to verify that a given NAI realm has NAPTR records according to |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $this->NAPTR_executed = RADIUSTests::RETVAL_NOTCONFIGURED; |
170 | 170 | return RADIUSTests::RETVAL_NOTCONFIGURED; |
171 | 171 | } |
172 | - $NAPTRs = dns_get_record($this->realm . ".", DNS_NAPTR); |
|
172 | + $NAPTRs = dns_get_record($this->realm.".", DNS_NAPTR); |
|
173 | 173 | if ($NAPTRs === FALSE || count($NAPTRs) == 0) { |
174 | 174 | $this->NAPTR_executed = RFC7585Tests::RETVAL_NONAPTR; |
175 | 175 | return RFC7585Tests::RETVAL_NONAPTR; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | <?php if (empty($_REQUEST['idp'])) { ?> |
82 | 82 | <div id="front_page"> |
83 | 83 | <?php |
84 | - echo $divs->div_top_welcome(); |
|
84 | + echo $divs->div_top_welcome(); |
|
85 | 85 | // echo $divs->div_roller(); |
86 | 86 | // echo $divs->div_main_button(); ?> |
87 | 87 | </div> <!-- id="front_page" --> |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | ?> |
29 | 29 | |
30 | 30 | <!-- JQuery --> |
31 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script> |
|
32 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
33 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script> |
|
31 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script> |
|
32 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
33 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script> |
|
34 | 34 | <!-- JQuery --> |
35 | 35 | |
36 | 36 | <script type="text/javascript"> |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | $operatingSystem = $Gui->detectOS(); |
45 | 45 | $Gui->loggerInstance->debug(4, $operatingSystem); |
46 | 46 | if ($operatingSystem) { |
47 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
47 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
48 | 48 | } |
49 | 49 | |
50 | -print 'downloadMessage = "' . $Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
50 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
51 | 51 | //TODO modify this based on OS detection |
52 | 52 | if (preg_match('/Android/', $_SERVER['HTTP_USER_AGENT'])) { |
53 | 53 | $profile_list_size = 1; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | include("user/js/cat_js.php"); |
59 | 59 | ?> |
60 | 60 | var loading_ico = new Image(); |
61 | - loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>"; |
|
61 | + loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>"; |
|
62 | 62 | </script> |
63 | 63 | <?php $Gui->langObject->setTextDomain("web_user"); ?> |
64 | 64 | <!-- DiscoJuice --> |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | front_page = 0; |
68 | 68 | var lang = "<?php echo($Gui->langObject->getLang()) ?>"; |
69 | 69 | </script> |
70 | -<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" /> |
|
70 | +<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" /> |
|
71 | 71 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
72 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
72 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
73 | 73 | </head> |
74 | 74 | <body> |
75 | 75 | <div id="wrap"> |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | <?php echo $divs->div_heading($visibility); ?> |
78 | 78 | <div id="main_page"> |
79 | 79 | <div id="loading_ico"> |
80 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
80 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
81 | 81 | </div> |
82 | 82 | <div id="info_overlay"> <!-- device info --> |
83 | 83 | <div id="info_window"></div> |
84 | - <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
84 | + <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
85 | 85 | </div> |
86 | 86 | <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu --> |
87 | - <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
87 | + <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
88 | 88 | <div id="main_menu_content"></div> |
89 | 89 | </div> |
90 | 90 | <div id="main_body"> |