@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $this->realm = $profileQuery->realm; |
72 | 72 | |
73 | - $localValueIfAny = (preg_match('/@/', $this->realm) ? substr($this->realm, 0, strpos($this->realm, '@')) : "anonymous" ); |
|
73 | + $localValueIfAny = (preg_match('/@/', $this->realm) ? substr($this->realm, 0, strpos($this->realm, '@')) : "anonymous"); |
|
74 | 74 | |
75 | 75 | $internalAttributes = [ |
76 | 76 | "internal:profile_count" => $this->idpNumberOfProfiles, |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | "row" => $attributeQuery->row, |
168 | 168 | "flag" => $optinfo['flag'], |
169 | 169 | "device" => ($devicesOrEAPMethods == "DEVICES" ? $attributeQuery->deviceormethod : NULL), |
170 | - "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep() )]; |
|
170 | + "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep())]; |
|
171 | 171 | } |
172 | 172 | return $temparray; |
173 | 173 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function setRealmCheckUser($shallwe, $localpart = NULL) { |
269 | 269 | $this->databaseHandle->exec("UPDATE profile SET checkuser_outer = " . ($shallwe === true ? "1" : "0") . |
270 | - ( $localpart !== NULL ? ", checkuser_value = '$localpart' " : "") . |
|
270 | + ($localpart !== NULL ? ", checkuser_value = '$localpart' " : "") . |
|
271 | 271 | " WHERE profile_id = $this->identifier"); |
272 | 272 | } |
273 | 273 |
@@ -27,7 +27,7 @@ discard block |
||
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 | if (!isset($_REQUEST['test_type']) || !$_REQUEST['test_type']) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $testsuite = new \core\diag\RADIUSTests($check_realm, $my_profile->getRealmCheckOuterUsername(), $my_profile->getEapMethodsinOrderOfPreference(1), $my_profile->getCollapsedAttributes()['eap:server_name'], $my_profile->getCollapsedAttributes()['eap:ca_file']); |
51 | 51 | } else { |
52 | 52 | $my_profile = NULL; |
53 | - $testsuite = new \core\diag\RADIUSTests($check_realm, "@".$check_realm); |
|
53 | + $testsuite = new \core\diag\RADIUSTests($check_realm, "@" . $check_realm); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | // contains port number; needs to be redacted for filter_var to work |
67 | 67 | // in any case, it's a printable string, so filter it initially |
68 | 68 | |
69 | - $filteredHost = filter_input(INPUT_GET,'src', FILTER_SANITIZE_STRING) ?? filter_input(INPUT_POST,'src', FILTER_SANITIZE_STRING); |
|
69 | + $filteredHost = filter_input(INPUT_GET, 'src', FILTER_SANITIZE_STRING) ?? filter_input(INPUT_POST, 'src', FILTER_SANITIZE_STRING); |
|
70 | 70 | $hostonly1 = preg_replace('/:[0-9]*$/', "", $filteredHost); |
71 | 71 | $hostonly2 = preg_replace('/^\[/', "", $hostonly1); |
72 | 72 | $hostonly3 = preg_replace('/\]$/', "", $hostonly2); |
@@ -295,12 +295,12 @@ discard block |
||
295 | 295 | $returnarray['time_millisec'] = sprintf("%d", $testsuite->UDP_reachability_result[$host]['time_millisec']); |
296 | 296 | |
297 | 297 | if (preg_match('/verify error:num=19/', implode($opensslbabble))) { |
298 | - $printedres .= "<tr><td>"._("<strong>ERROR</strong>: the server presented a certificate which is from an unknown authority!") . $measure ."</td></tr>"; |
|
298 | + $printedres .= "<tr><td>" . _("<strong>ERROR</strong>: the server presented a certificate which is from an unknown authority!") . $measure . "</td></tr>"; |
|
299 | 299 | $my_ip_addrs[$key]["status"] = "FAILED"; |
300 | 300 | $goterror = 1; |
301 | 301 | } |
302 | 302 | if (preg_match('/verify return:1/', implode($opensslbabble))) { |
303 | - $printedres .= "<tr><td>"._("Completed.") . $measure . "</td></tr>"; |
|
303 | + $printedres .= "<tr><td>" . _("Completed.") . $measure . "</td></tr>"; |
|
304 | 304 | $printedres .= "<tr><td></td><td><div class=\"more\">"; |
305 | 305 | $my_ip_addrs[$key]["status"] = "OK"; |
306 | 306 | $servercertRaw = implode("\n", $opensslbabble); |
@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | $leftNum = (int) preg_replace($pat, $rep, $left); |
41 | 41 | $rightNum = (int) preg_replace($pat, $rep, $right); |
42 | 42 | return ($left != $leftNum && $right != $rightNum) ? |
43 | - $leftNum - $rightNum : |
|
44 | - strcmp($left, $right); |
|
43 | + $leftNum - $rightNum : strcmp($left, $right); |
|
45 | 44 | } |
46 | 45 | |
47 | 46 | |
@@ -118,8 +117,8 @@ discard block |
||
118 | 117 | $therealm = ""; |
119 | 118 | $theanonid = "anonymous"; |
120 | 119 | $useAnon = FALSE; |
121 | - $stringValuesFiltered = filter_input(INPUT_POST,'value', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY); |
|
122 | - $intValuesFiltered = filter_input(INPUT_POST,'value', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY); |
|
120 | + $stringValuesFiltered = filter_input(INPUT_POST, 'value', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY); |
|
121 | + $intValuesFiltered = filter_input(INPUT_POST, 'value', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY); |
|
123 | 122 | $pref = 0; |
124 | 123 | foreach ($_POST['option'] as $optindex => $optname) { |
125 | 124 | switch ($optname) { |
@@ -145,7 +144,7 @@ discard block |
||
145 | 144 | |
146 | 145 | if (isset($intValuesFiltered[$optindex . "-0"])) { |
147 | 146 | $filteredType = $intValuesFiltered[$optindex . "-0"]; |
148 | - if ($filteredType <0 || $filteredType >8) { |
|
147 | + if ($filteredType < 0 || $filteredType > 8) { |
|
149 | 148 | break; |
150 | 149 | } |
151 | 150 | $newprofile->addSupportedEapMethod(new \core\common\EAP($filteredType), $pref); |
@@ -205,7 +205,7 @@ |
||
205 | 205 | * @param int $rowid the HTML field base name of the option to be displayed |
206 | 206 | * @param string $optionName the name of the option to display |
207 | 207 | * @param string $optionValue the value of the option to display |
208 | - * @param mixed $optionLang the language of the option to display |
|
208 | + * @param null|string $optionLang the language of the option to display |
|
209 | 209 | * @return string HTML code |
210 | 210 | * @throws Exception |
211 | 211 | */ |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | $optioninfo = \core\Options::instance(); |
104 | 104 | |
105 | - if (is_array($prepopulate) && ( count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values |
|
105 | + if (is_array($prepopulate) && (count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values |
|
106 | 106 | foreach ($prepopulate as $option) { |
107 | 107 | if (preg_match("/$class:/", $option['name']) && !preg_match("/(user:fedadmin)/", $option['name'])) { |
108 | 108 | $optiontypearray = $optioninfo->optionType($option['name']); |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | $retval .= " |
340 | 340 | |
341 | 341 | <td> |
342 | - <button type='button' class='delete' onclick='deleteOption(" . ( $prefillValue !== NULL && $item == "general:geo_coordinates" ? $this->allLocationCount : 0 ) . ",\"option-S" . $rowid . "\")'>-</button> |
|
342 | + <button type='button' class='delete' onclick='deleteOption(" . ($prefillValue !== NULL && $item == "general:geo_coordinates" ? $this->allLocationCount : 0) . ",\"option-S" . $rowid . "\")'>-</button> |
|
343 | 343 | </td> |
344 | 344 | </tr>"; |
345 | 345 | return $retval; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | <head lang='" . $ourlocale . "'> |
25 | 25 | <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>"; |
26 | 26 | // diag area needs its own CSS at some point, but use the user area one for now |
27 | - $cssUrl = $gui->skinObject->findResourceUrl("CSS","cat.css.php"); |
|
27 | + $cssUrl = $gui->skinObject->findResourceUrl("CSS", "cat.css.php"); |
|
28 | 28 | echo "<link rel='stylesheet' type='text/css' href='$cssUrl' />"; |
29 | 29 | echo "<title>" . htmlspecialchars(_("Sanity check for dynamic discovery of realms")) . "</title>"; |
30 | 30 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | // checking our own stuff. Enable thorough checks |
48 | 48 | $check_thorough = TRUE; |
49 | 49 | $check_realm = $checkrealm[0]['value']; |
50 | - $testsuite = new \core\diag\RADIUSTests($check_realm, $my_profile->getRealmCheckOuterUsername(), $my_profile->getEapMethodsinOrderOfPreference(1), $my_profile->getCollapsedAttributes()['eap:server_name'] , $my_profile->getCollapsedAttributes()["eap:ca_file"]); |
|
50 | + $testsuite = new \core\diag\RADIUSTests($check_realm, $my_profile->getRealmCheckOuterUsername(), $my_profile->getEapMethodsinOrderOfPreference(1), $my_profile->getCollapsedAttributes()['eap:server_name'], $my_profile->getCollapsedAttributes()["eap:ca_file"]); |
|
51 | 51 | $rfc7585suite = new \core\diag\RFC7585Tests($check_realm); |
52 | 52 | } else { |
53 | 53 | $error_message = _("You asked for a realm check, but we don't know the realm for this profile!") . "</p>"; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | if ($check_realm) { |
68 | - $testsuite = new \core\diag\RADIUSTests($check_realm, "@".$check_realm); |
|
68 | + $testsuite = new \core\diag\RADIUSTests($check_realm, "@" . $check_realm); |
|
69 | 69 | $rfc7585suite = new \core\diag\RFC7585Tests($check_realm); |
70 | 70 | } else { |
71 | 71 | $error_message = _("No valid realm name given, cannot execute any checks!"); |
@@ -751,13 +751,13 @@ discard block |
||
751 | 751 | } |
752 | 752 | |
753 | 753 | if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT'] == "LOCAL") { |
754 | - $returnUrl = "../admin/overview_idp.php?inst_id=".$my_inst->identifier; |
|
754 | + $returnUrl = "../admin/overview_idp.php?inst_id=" . $my_inst->identifier; |
|
755 | 755 | } else { |
756 | - $returnUrl = CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT']."/admin/overview_idp.php?inst_id=".$my_inst->identifier; |
|
756 | + $returnUrl = CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT'] . "/admin/overview_idp.php?inst_id=" . $my_inst->identifier; |
|
757 | 757 | } |
758 | 758 | ?> |
759 | - <form method='post' action='<?php echo $returnUrl;?>' accept-charset='UTF-8'> |
|
760 | - <button type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_CLOSE; ?>'><?php echo sprintf(_("Return to %s administrator area"),$gui->nomenclature_inst); ?></button> |
|
759 | + <form method='post' action='<?php echo $returnUrl; ?>' accept-charset='UTF-8'> |
|
760 | + <button type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_CLOSE; ?>'><?php echo sprintf(_("Return to %s administrator area"), $gui->nomenclature_inst); ?></button> |
|
761 | 761 | </form> |
762 | 762 | <script> |
763 | 763 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | <div class='infobox' style='text-align:center;'> |
100 | 100 | <h2><?php echo sprintf(_("QR Code for %s download area"), $uiElements->nomenclature_inst); ?></h2> |
101 | 101 | <?php |
102 | - $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier; |
|
102 | + $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier; |
|
103 | 103 | $uri = "data:image/png;base64," . base64_encode(png_inject_consortium_logo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, 12))); |
104 | 104 | $size = getimagesize($uri); |
105 | 105 | echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>"; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | </td> |
133 | 133 | <td> |
134 | 134 | <form action='edit_idp_result.php?inst_id=<?php echo $my_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
135 | - <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button> |
|
135 | + <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "") . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button> |
|
136 | 136 | </form> |
137 | 137 | |
138 | 138 | </td> |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | if (isset($URL['device-specific:redirect'])) { |
337 | 337 | $displayurl = $URL['device-specific:redirect'][0]; |
338 | 338 | } else { |
339 | - $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&profile=" . $profile_list->identifier; |
|
339 | + $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&profile=" . $profile_list->identifier; |
|
340 | 340 | } |
341 | 341 | echo "<a href='$displayurl' style='white-space: nowrap; text-align: center;'>"; |
342 | 342 | $uri = "data:image/png;base64," . base64_encode(png_inject_consortium_logo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, 12))); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | echo $deco->pageheader(sprintf(_("%s: %s Customisation (submission completed)"), CONFIG['APPEARANCE']['productname'], $uiElements->nomenclature_fed), "FEDERATION"); |
29 | 29 | $my_fed = $validator->Federation($_GET['fed_id'], $_SESSION['user']); |
30 | 30 | if (isset($_POST['submitbutton'])) { |
31 | - if (( $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go |
|
31 | + if (($_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go |
|
32 | 32 | $fed_name = $my_fed->name; |
33 | 33 | echo "<h1>" . sprintf(_("Submitted attributes for %s '%s'"), $uiElements->nomenclature_fed, $fed_name) . "</h1>"; |
34 | 34 | echo "<table>"; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | // if we have a pushed close button, submit attributes and send user back to the overview page |
26 | 26 | // if external DB sync is disabled globally, the user never gets to this page. If he came here *anyway* -> send him back immediately. |
27 | -if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE ) || CONFIG['DB']['enforce-external-sync'] == FALSE) { |
|
27 | +if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE) || CONFIG['DB']['enforce-external-sync'] == FALSE) { |
|
28 | 28 | header("Location: ../overview_federation.php"); |
29 | 29 | exit; |
30 | 30 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | // right-hand side: external DB |
107 | 107 | $externalid = $my_inst->getExternalDBId(); |
108 | 108 | if (!$externalid) { // we are in SYNCED state so this cannot happen |
109 | - throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']."!"); |
|
109 | + throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . "!"); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | $extinfo = $cat->getExternalDBEntityDetails($externalid); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | } |
168 | 168 | // issue a big red warning if there are no link candidates at all in the federation |
169 | 169 | if (empty($buffer) && empty($candidates)) { |
170 | - echo "<tr><td style='color:#ff0000' colspan='2'>". sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclature_inst, $uiElements->nomenclature_fed)."</td></tr>"; |
|
170 | + echo "<tr><td style='color:#ff0000' colspan='2'>" . sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclature_inst, $uiElements->nomenclature_fed) . "</td></tr>"; |
|
171 | 171 | } |
172 | 172 | echo "</table><button type='submit' name='submitbutton' id='submit' value='" . web\lib\common\FormElements::BUTTON_SAVE . "' disabled >" . _("Create Link") . "</button></form>"; |
173 | 173 | } |
@@ -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 |